Repeat product description for each product varian

  • Posts: 4
  • Thank you received: 0
11 years 9 months ago #57845

I'm not understanding the need for repeating product description for all of the variants in the HTML source code. For example, the product that is visible on the page has an id of "hikashop_product_description_main". Then there are variants of the product, which are simply different colors. These items are given unique ids such as "hikashop_product_description_n" where the last character is actually a number from one to five. Each of these variants also have their style set to display:none. It seems unnecessary to repeat the product description and hide it from view, when the only thing changing is the color. Is there any way to control the number of times that a product is repeated on the HTML source code page?

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

  • Posts: 81564
  • Thank you received: 13071
  • MODERATOR
11 years 9 months ago #57891

That will actually be changed for new installations of HikaShop from next release on.
It's done like that because you can potentially enter a different description for each variant of the product. And when a variant doesn't have a description, it uses the main product's description instead. It's the same for the rest:
the product name, the images, etc.

If you don't want that, you can remove the corresponding code in the file "show" of the view "product" via the menu Display->Views.

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

Time to create page: 0.050 seconds
Powered by Kunena Forum