- Posts: 32
- Thank you received: 2
Only first title of characteristic variant show on product page
- PortobelloDigital
-
Topic Author
- Offline
Less
More
7 years 9 months ago - 7 years 9 months ago #300918
by PortobelloDigital
-- 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)
-- 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: 7 years 9 months ago by PortobelloDigital.
Please Log in or Create an account to join the conversation.
7 years 9 months ago #300930
by Jerome
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.
Replied by Jerome on topic Only first title of characteristic variant show on product page
Hello,
Do you have some overrides for your characteristics ?
I can see that the second dropdown do not have a correct "name"
When it should be
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,
Do you have some overrides for your characteristics ?
I can see that the second dropdown do not have a correct "name"
Code:
<select id="hikashop_product_characteristic_" name="hikashop_product_characteristic[]" class="inputbox" size="1" onchange="return hikashopUpdateVariant(this);"
Code:
<select id="hikashop_product_characteristic_3" name="hikashop_product_characteristic[3]" class="inputbox" size="1" onchange="return hikashopUpdateVariant(this);"
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.
- PortobelloDigital
-
Topic Author
- Offline
Less
More
- Posts: 32
- Thank you received: 2
7 years 9 months ago - 7 years 9 months ago #300944
by PortobelloDigital
Replied by PortobelloDigital on topic Only first title of characteristic variant show on product page
Hi,
I erased all override and reinstalled 4.0.1 but nothing changed (bug on 4.0.0 too)
Tested on protostar template too
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: 7 years 9 months ago by PortobelloDigital.
Please Log in or Create an account to join the conversation.
- PortobelloDigital
-
Topic Author
- Offline
Less
More
- Posts: 32
- Thank you received: 2
7 years 9 months ago - 7 years 9 months ago #300947
by PortobelloDigital
Replied by PortobelloDigital on topic Only first title of characteristic variant show on product page
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 :
Variant line :
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
We are importing all products via CSV import, the issue i on our CSV eg:
Main product line :
| product_name | product_parent_id | product_quantity | product_code | product_type | ... | Dimension | Couleur |
| test | 0 | -1 | 010203 | main | ... | 10x10 |
Variant line :
| product_name | product_parent_id | product_quantity | product_code | product_type | ... | Dimension | Couleur |
| 010203 | -1 | 010203-1 | variant | ... | 10x10 | blue |
| product_name | product_parent_id | product_quantity | product_code | product_type | ... | Dimension | Couleur |
| 010203 | -1 | 010203-2 | variant | ... | 10x20 | red |
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: 7 years 9 months ago by PortobelloDigital.
Please Log in or Create an account to join the conversation.
7 years 9 months ago #300963
by Philip
Replied by Philip on topic Only first title of characteristic variant show on product page
Hello,
Happy to learn that you were able to find a solution to your issue.
Thanks for your return.
Regards
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.199 seconds