Display Custom Fields above Options

  • Posts: 9
  • Thank you received: 0
9 years 5 days ago #249753

-- HikaShop version -- : Business 2.6.3

I want to know how to make my custom fields display above product options. I have a few instructions for the options. I have created a Custom Text custom field that I would like to show above the options, instead of underneath.

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

  • Posts: 12953
  • Thank you received: 1778
9 years 4 days ago #249794

Hello,

To do that the solution will be to directly edit the code of the "Show_default" file of the "Product" view of your front-end template via "Hikashop->Display->Views".
You'll just have to move these lines :

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') && $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();
	}
}

Last edit: 9 years 4 days ago by Mohamed Thelji.

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

  • Posts: 9
  • Thank you received: 0
8 years 11 months ago #250221

Found it around line 139. thanks!

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

Time to create page: 0.068 seconds
Powered by Kunena Forum