- Posts: 9
- Thank you received: 0
Display Custom Fields above Options
10 years 2 months ago #249753
by jasonyon
Display Custom Fields above Options was created by jasonyon
-- 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.
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.
Less
More
- Posts: 12953
- Thank you received: 1778
10 years 2 months ago - 10 years 2 months ago #249794
by Mohamed Thelji
Replied by Mohamed Thelji on topic Display Custom Fields above Options
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 :
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 :
Code:
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: 10 years 2 months ago by Mohamed Thelji.
Please Log in or Create an account to join the conversation.
10 years 1 month ago #250221
by jasonyon
Replied by jasonyon on topic SOLVED - Display Custom Fields above Options
Found it around line 139. thanks!
Please Log in or Create an account to join the conversation.
Time to create page: 0.069 seconds