Move custom fields below product fields

  • Posts: 190
  • Thank you received: 2
9 years 2 months ago #243763

-- url of the page with the problem -- : www.veggievore.com/advice/one-hour-custom-coaching-consultation
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 7.0.6

I am hoping you can point me to the correct file that I need to edit.

I want to place:

<div id="hikashop_product_custom_item_info" class="hikashop_product_custom_item_info">

Below:

<div id="hikashop_product_bottom_part" class="hikashop_product_bottom_part">

on the pages in my Advice section.

So far the pages are located at

www.veggievore.com/advice/one-hour-custom-coaching-consultation

www.veggievore.com/advice/half-hour-cust...oaching-consultation

Thank you, Sean

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

  • Posts: 84313
  • Thank you received: 13702
  • MODERATOR
9 years 2 months ago #243770

Hi,

It's the file "show_default" that you want to change.
The code:
<div id="hikashop_product_custom_item_info" class="hikashop_product_custom_item_info">
is displayed by:
$this->setLayout('show_block_custom_item');
echo $this->loadTemplate();

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

  • Posts: 190
  • Thank you received: 2
9 years 2 months ago #244343

Thank you so much Nicolas,

I am sorry that I was so slow to reply here. I did not actually find the string you suggested in the file but I found one that was similar and tried to put it to the very bottom. It did not actually work for me though. (I am so grateful you have it set up to so easily remove customization!)

This is the block of code I tried to put at the very bottom of the file but it did not make the pages change.

<?php
if(!empty($this->fields)){
$this->setLayout('show_block_custom_main');
echo $this->loadTemplate();
}

if(HIKASHOP_J30) {
$this->setLayout('show_block_tags');
echo $this->loadTemplate();
}

?>

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

  • Posts: 84313
  • Thank you received: 13702
  • MODERATOR
9 years 2 months ago #244357

Hi,

The code:
$this->setLayout('show_block_custom_main');
echo $this->loadTemplate();
is for the display of the custom product fields, not the custom item fields, so it's normal that you didn't saw any change.
Both pieces of code are only separated by 30 lines in the code of show_default:
take.ms/rZbu1

The following user(s) said Thank You: scarney

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

  • Posts: 190
  • Thank you received: 2
9 years 2 months ago #244523

Sorry I missed that. I moved it down below to where I want it and like it much better.

Sean

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

Time to create page: 0.043 seconds
Powered by Kunena Forum