champs personnalise

  • Posts: 78
  • Thank you received: 5
9 years 8 months ago #186345

-- 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

Please Log in or Create an account to join the conversation.

  • Posts: 82545
  • Thank you received: 13285
  • MODERATOR
9 years 8 months ago #186347

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

if($this->params->get('characteristic_display') != 'list') {
		//LAYOUT show_block_charasteristic
		$this->setLayout('show_block_characteristic');
		echo $this->loadTemplate();
		?>
		<br />
	<?php
	}
pour les caractéristiques et le 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
		}
	}
pour les options et le 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();
		}
	}
pour les champs personnalisés.

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum