Product variants are shown incorrectly in the cart

  • Posts: 8
  • Thank you received: 0
3 years 6 months ago #332087

-- url of the page with the problem -- : ekoposeleniesemigorie.in.ua/nasha-produk...orekhovoj-pastoj-50g
-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.23
-- PHP version -- : 7.4.16
-- Browser(s) name and version -- : chrome 90.0.4430.85

Hello.
There always the last item from variant list is added to the cart. No matter what I choose.
Thanks for any help.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 years 6 months ago #332089

Hi,

It comes from the customization done to the product page layout you have on your website.
The variants HTML data is inside the form of the product page:
i.imgur.com/VAuOXrD.png
Instead of being after it as it is the case by default:
i.imgur.com/tYwuIgP.png
demo.hikashop.com/index.php/en/hikashop/...with-characteristics
Because of that, when you click on the "add to cart" button, the product_id of all the variants is sent to the server:
i.imgur.com/98csaUE.png
And in that case, only the last one is taken into account by the server and thus HikaShop only sees the last one.

This indicates that some closing div tags are missing at the end of the view file that has been customized.
The best in such case is to contact the person who made the customization (someone on your end or your template provider) so that they can fix the HTML of the customized layout.
Since we don't know what exact change has been made, it's hard to say what should be done exactly.
I'm not even sure which layout you're using. I would guess "show_default" but it could be "show_tabular" too.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum