[Skip to main content](#vessel-content)

#   Product variants are shown incorrectly in the cart

##

- **[Kate\_Protopopova](/forum/user/54872-kate-protopopova "View Kate&#95;Protopopova's Profile")**
- [![Kate&#95;Protopopova's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/54872-kate-protopopova "View Kate&#95;Protopopova's Profile") Topic Author
- [ Offline](/forum/user/54872-kate-protopopova)

Less More

- Posts: 8
- Thank you received: 0
-
-

5 years 7 months ago [\#332087](#332087) by [Kate\_Protopopova](/forum/user/54872-kate-protopopova "View Kate&#95;Protopopova's Profile")  *[Product variants are shown incorrectly in the cart](/forum/27-checkout/902467-product-variants-are-shown-incorrectly-in-the-cart#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.")* was created by *[Kate\_Protopopova](/forum/user/54872-kate-protopopova "View Kate&#95;Protopopova's Profile")*

-- url of the page with the problem -- : [ ekoposeleniesemigorie.in.ua/nasha-produk...orekhovoj-pastoj-50g](https://ekoposeleniesemigorie.in.ua/nasha-produktsiya/keto-shokolad/product/165-shokolad-s-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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwMjQ2Ny1wcm9kdWN0LXZhcmlhbnRzLWFyZS1zaG93bi1pbmNvcnJlY3RseS1pbi10aGUtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14327
-
-

5 years 7 months ago [\#332089](#332089) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product variants are shown incorrectly in the cart](/forum/27-checkout/902467-product-variants-are-shown-incorrectly-in-the-cart#332089 "-- 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.")*

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](https://i.imgur.com/VAuOXrD.png)
Instead of being after it as it is the case by default:
[ i.imgur.com/tYwuIgP.png](https://i.imgur.com/tYwuIgP.png)
[ demo.hikashop.com/index.php/en/hikashop/...with-characteristics](https://demo.hikashop.com/index.php/en/hikashop/product-page/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](https://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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwMjQ2Ny1wcm9kdWN0LXZhcmlhbnRzLWFyZS1zaG93bi1pbmNvcnJlY3RseS1pbi10aGUtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.040 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
