- Posts: 78
- Thank you received: 5
champs personnalise
11 years 8 months ago #186345
by doyen
champs personnalise was created by doyen
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 2.5.28
Bonjours
j'ai cree un champs personnalisé dans ma page produit qui fonctionne tres bien
j'aimerais savoir si je peux modifier sa position
pour l'instant j'ai
characteristique
option
champs personnalise
j'aimerais avoir
champs personnalisé
characteristique
option
pouvez vous m'indiquer la marche a suivre SVP
merci
-- Joomla version -- : 2.5.28
Bonjours
j'ai cree un champs personnalisé dans ma page produit qui fonctionne tres bien
j'aimerais savoir si je peux modifier sa position
pour l'instant j'ai
characteristique
option
champs personnalise
j'aimerais avoir
champs personnalisé
characteristique
option
pouvez vous m'indiquer la marche a suivre SVP
merci
Please Log in or Create an account to join the conversation.
11 years 8 months ago #186347
by nicolas
Replied by nicolas on topic champs personnalise
Bonjour,
Oui, c'est possible.
Pour cela, il faut éditer le fichier show_default de la vue "product" via le menu Affichage>Vues et inverser le code
pour les caractéristiques et le code
pour les options et le code
pour les champs personnalisés.
Oui, c'est possible.
Pour cela, il faut éditer le fichier show_default de la vue "product" via le menu Affichage>Vues et inverser le code
Code:
if($this->params->get('characteristic_display') != 'list') {
//LAYOUT show_block_charasteristic
$this->setLayout('show_block_characteristic');
echo $this->loadTemplate();
?>
<br />
<?php
}
Code:
if (hikashop_level(1) && !empty ($this->element->options)) {
?>
<div id="hikashop_product_options" class="hikashop_product_options">
<?php
//LAYOUT option
$this->setLayout('option');
echo $this->loadTemplate();
?>
</div>
<br />
<?php
$form = ',\'hikashop_product_form\'';
if ($this->config->get('redirect_url_after_add_cart', 'stay_if_cart') == 'ask_user') {
?>
<input type="hidden" name="popup" value="1"/>
<?php
}
}
Code:
if (!$this->params->get('catalogue') && ($this->config->get('display_add_to_cart_for_free_products') || !empty ($this->element->prices))) {
if (!empty ($this->itemFields)) {
$form = ',\'hikashop_product_form\'';
if ($this->config->get('redirect_url_after_add_cart', 'stay_if_cart') == 'ask_user') {
?>
<input type="hidden" name="popup" value="1"/>
<?php
}
//LAYOUT show_block_custom_item
$this->setLayout('show_block_custom_item');
echo $this->loadTemplate();
}
}
Please Log in or Create an account to join the conversation.
Time to create page: 0.154 seconds