Frontend product - Choosing variants and specifications display

  • Posts: 32
  • Thank you received: 2
7 years 2 months ago #289466

-- HikaShop version -- : 3.3.0
-- Joomla version -- : 3.8.5
-- PHP version -- : 7.0.27
-- Browser(s) name and version -- : Firefox - quantum - 58.0.2 (64 bits)

Hi,

Following this post No specification displayed for variants but with a private post.

My issue : when choosing variants on product page, specification are "removed"

For each product, i got some variants :

- Parfum
- Conditionnement

Each product got 1 specification (1 custom field) : Short description
(see attachments)

If i comment line 313~345 in the file "show" from "product", nothing changed.

What i want : Choosing eg "parfum" : "chocolat" and "conditionnement" : "500g (20doses)" dont remove "short description" on product page.

Hope you understand me, sry for bad english

Attachments:
Last edit: 7 years 1 month ago by PortobelloDigital. Reason: closed

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

  • Posts: 83778
  • Thank you received: 13564
  • MODERATOR
7 years 2 months ago #289470

Hi,

The problem is that you have the custom product fields specification area inside the price area.
But the price is also replaced on the product page when you change the variant.
So what happens is this:
- you change the variant
- the system replace the price area with the price from the variant selected
- since the hidden data of the variants only have the price in the price area, the custom product fields area is removed
- the system tries to replace the custom product fields area but that area doesn't exist anymore so it can't do anything

So your problem is a customization problem. You need to move the product custom fields area outside of the price area in the show_default view file and it will work properly, like it does by default.

Last edit: 7 years 2 months ago by nicolas.
The following user(s) said Thank You: PortobelloDigital

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

  • Posts: 32
  • Thank you received: 2
7 years 2 months ago #289522

i'm sry, forgotten to tell you about customization of the area "hikashop_product_custom_info_main" in the "show_default",
Works like you did, thx alot

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

Time to create page: 0.060 seconds
Powered by Kunena Forum