Change the order in product page

  • Posts: 84
  • Thank you received: 1
  • Hikashop Business
5 years 11 months ago #292762

Hi there!
In product page i have characteristics, options and custom fields with this order.
i'd like to change the order and to have: first the Options second the custom fields and third the characteristics.
i think it would be In dispaly > show_default.
So to change only the order of characteristic to put in last!

what is the code line of characteristics to change the orders?

Thanks in advance!

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

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
5 years 11 months ago #292776

Hi,

It's indeed there.
This is the code displaying the characteristics:

if($this->params->get('characteristic_display') != 'list') {
		// LAYOUT show_block_charasteristic
		$this->setLayout('show_block_characteristic');
		echo $this->loadTemplate();
?>
		<br />
<?php }
This is the code displaying the options:
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
		}
	}
This is the code displaying the custom fields:
if(!$this->params->get('catalogue') && ($this->config->get('display_add_to_cart_for_free_products') || ($this->config->get('display_add_to_wishlist_for_free_products', 1) && hikashop_level(1) && $this->params->get('add_to_wishlist') && $this->config->get('enable_wishlist', 1)) || !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();
		}
	}

The following user(s) said Thank You: oxygenvisual

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

Time to create page: 0.055 seconds
Powered by Kunena Forum