Template override question

  • Posts: 228
  • Thank you received: 4
  • Hikashop Business
1 year 2 months ago #348230

-- url of the page with the problem -- : cotsperfumery.under-development.info/sho...h-rose-eau-de-parfum
-- HikaShop version -- : 4.7.0

Hello,
I have a template override for the display of custom fields on my product page by modifying the product / show_block_custom_main.php as shown when I enable frontend display view files. It works fine on the root product:

Product page link

The Click to view Ingredients is display a custom field using a Bootstrap accordion.

However when you then selelct a different size, this field defualts to using the default layout form the template. The Display View Files still shows the product / show_block_custom_main.php as the file.

What have I done wrong? is there another location for variant overrides?

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
1 year 2 months ago #348233

Hi,

The variants HTML is displayed in product / show.php
There, you'll find similar code to what you have in product / show_block_custom_main.php so you want to apply your modifications there too.

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

  • Posts: 228
  • Thank you received: 4
  • Hikashop Business
1 year 2 months ago #348247

Awesome, thanks that worked :-)

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

Time to create page: 0.061 seconds
Powered by Kunena Forum