Product Variant layout changes back to default

  • Posts: 6
  • Thank you received: 0
10 years 7 months ago #189790

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6

Hello,
I have installer the starter Hikashop, and it's a great free component!
I am using a custom product details layout, I have edited both show_default and show_block_img and placed them in my template html override directory. The problem is that when I select a color characteristic, and the page changes to my product variant, the layout gets messed up. The image block layout reverts to the default one, as does the whole product details layout. There are some changes because of the css, but the phps loaded are clearly the default ones.
How can I make the product variants load my custom layouts?
Thank you!
Irina

Attachments:

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 7 months ago #189792

Hi,

The variants HTML is generated in the "show" file of the "product" view.
So you want to look at the code there.
Also, make sure you didn't mess with the divs with the ids finishing with _main in your show_default view file override because the variants system uses the data from the variants generated in the show file to replace the content of these _main divs when you change the variant selected. So for example, if you put the right area div inside the product name _main div, when you switch a characteristic, the system will replace the whole right area div with the product name of the variant and thus you'll get your design all messed up. If you don't need to have the data changing on the page when changing the variant selected, you can simply remove the variant data in the show file and the system won't do the replacement of the data removed.

The following user(s) said Thank You: irinuta14

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

  • Posts: 6
  • Thank you received: 0
10 years 7 months ago #189897

Thank you for your response Nicolas!
Made me realize the php is loaded properly, the divs are in the custom order, but the css was not properly loaded, because I had styled some ids that are appended with a number for the variant display. Now everything looks properly gorgeous in variant view as well.

Thank you!

Attachments:

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

Time to create page: 0.053 seconds
Powered by Kunena Forum