Only first title of characteristic variant show on product page

  • Posts: 32
  • Thank you received: 2
5 years 4 months ago #300918

-- HikaShop version -- : 4.0.1
-- Joomla version -- : 3.9.0

Hi,

I'm facing an issue on the product page, product got many characteristicsand for each only the first title of characteristic is showing

I checked the configuration and turned "On" the "Display the characteristics name" but this doesn't solve this issue
The display of characteristic is "dropdown"

When i dump the "$characteristic" var in the "displayFE" function near the title rendered (Line 227) [HikashopCharacteristicType]
The first characteristic got a "characteristic_value" prop (for the title) but not for the other characteristic (other start with an "values" prop)

Last edit: 5 years 4 months ago by PortobelloDigital.

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
5 years 4 months ago #300930

Hello,

Do you have some overrides for your characteristics ?
I can see that the second dropdown do not have a correct "name"

<select id="hikashop_product_characteristic_" name="hikashop_product_characteristic[]" class="inputbox" size="1" onchange="return hikashopUpdateVariant(this);"
When it should be
<select id="hikashop_product_characteristic_3" name="hikashop_product_characteristic[3]" class="inputbox" size="1" onchange="return hikashopUpdateVariant(this);"
Since it's characteristic ID is 3.

Due to that problem, the JS cannot do its work since it cannot access to the characteristic value and determine which variant is selected.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 32
  • Thank you received: 2
5 years 4 months ago #300944

Hi,

I erased all override and reinstalled 4.0.1 but nothing changed (bug on 4.0.0 too)

Tested on protostar template too

Last edit: 5 years 4 months ago by PortobelloDigital.

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

  • Posts: 32
  • Thank you received: 2
5 years 4 months ago #300947

Well, i understand where the issue came from, this is not a bug from product view,

We are importing all products via CSV import, the issue i on our CSV eg:

Main product line :

product_nameproduct_parent_idproduct_quantityproduct_codeproduct_type...DimensionCouleur
test0-1010203main...10x10

Variant line :
product_nameproduct_parent_idproduct_quantityproduct_codeproduct_type...DimensionCouleur
010203-1010203-1variant...10x10blue
product_nameproduct_parent_idproduct_quantityproduct_codeproduct_type...DimensionCouleur
010203-1010203-2variant...10x20red

So if main product is missing "Couleur" but if all variant of this product got "Couleur", when showing on frontend, this lead to what we got actually
In administrator area, when editing product i can see only "Dimension" on the "characteristic" field but seem hikashop saved all variant possibility of "Couleur"

Sry about my bad english

Last edit: 5 years 4 months ago by PortobelloDigital.
The following user(s) said Thank You: Philip, smart web

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

  • Posts: 4502
  • Thank you received: 610
  • MODERATOR
5 years 4 months ago #300963

Hello,

Happy to learn that you were able to find a solution to your issue.
Thanks for your return.

Regards

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

Time to create page: 0.069 seconds
Powered by Kunena Forum