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

#   Items not added up, but added to cart separate

##

- **[Squashtoppertje](/forum/user/39506-squashtoppertje "View Squashtoppertje's Profile")**
- [![Squashtoppertje's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39506-squashtoppertje "View Squashtoppertje's Profile") Topic Author
- [ Offline](/forum/user/39506-squashtoppertje)

Less More

- Posts: 45
- Thank you received: 0
-
-

10 years 4 months ago [\#244351](#244351) by [Squashtoppertje](/forum/user/39506-squashtoppertje "View Squashtoppertje's Profile")  *[Items not added up, but added to cart separate](/forum/27-checkout/885334-items-not-added-up-but-added-to-cart-separate#244351 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.2 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome  Hi,  I've got a strange error. I'm using the listing&#95;table. When a product is already added to the cart and I select the same product again in the listing&#95;table, the product does not add up, but a &quot;new&quot; line is added.  So instead of adding up 1 + 1 = 2, two of the same products are in the cart on separate lines. Both with quantity 1.  I've checked the database and in the hikashop&#95;cart&#95;product table I see the same product&#95;id, all with quantity 1. See attachment.  I also got a testing environment which has got no problem (like the live one before) and I have compared both listing&#95;table.php and cart.php. However there are no differences. So the difference must be somewhere else.  Do you know what goes wrong here? Where can I look for the solution? Any clues?  Thanks!")* was created by *[Squashtoppertje](/forum/user/39506-squashtoppertje "View Squashtoppertje's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.2
-- PHP version -- : 5.5
-- Browser(s) name and version -- : Chrome

Hi,

I've got a strange error. I'm using the listing_table. When a product is already added to the cart and I select the same product again in the listing_table, the product does not add up, but a "new" line is added.

So instead of adding up 1 + 1 = 2, two of the same products are in the cart on separate lines. Both with quantity 1.

I've checked the database and in the hikashop_cart_product table I see the same product_id, all with quantity 1. See attachment.

[ ![cart.jpg](/forum/attachment/32389) ](/forum/attachment/32389 "cart.jpg")

I also got a testing environment which has got no problem (like the live one before) and I have compared both listing_table.php and cart.php. However there are no differences. So the difference must be somewhere else.

Do you know what goes wrong here? Where can I look for the solution? Any clues?

Thanks!

- [ ![cart.jpg](/forum/attachment/32389) ](/forum/attachment/32389 "cart.jpg") [ ](/forum/attachment/32389?download=1 "cart.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NTMzNC1pdGVtcy1ub3QtYWRkZWQtdXAtYnV0LWFkZGVkLXRvLWNhcnQtc2VwYXJhdGU/dG1wbD1tYXJrZG93bg==) 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: 86359
- Thank you received: 14296
-
-

10 years 4 months ago [\#244358](#244358) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Items not added up, but added to cart separate](/forum/27-checkout/885334-items-not-added-up-but-added-to-cart-separate#244358 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.2 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome  Hi,  I've got a strange error. I'm using the listing&#95;table. When a product is already added to the cart and I select the same product again in the listing&#95;table, the product does not add up, but a &quot;new&quot; line is added.  So instead of adding up 1 + 1 = 2, two of the same products are in the cart on separate lines. Both with quantity 1.  I've checked the database and in the hikashop&#95;cart&#95;product table I see the same product&#95;id, all with quantity 1. See attachment.  I also got a testing environment which has got no problem (like the live one before) and I have compared both listing&#95;table.php and cart.php. However there are no differences. So the difference must be somewhere else.  Do you know what goes wrong here? Where can I look for the solution? Any clues?  Thanks!")*

Hi,

In HikaShop, it's possible that the same product has several lines in the cart.
For example, if you select different variants, or different options or enter different things in the custom item fields of the product.
However, when the product added has the same variant/options/custom fields of a product already in the cart, the system detects it and instead of creating a new row, adds the quantity.
So I guess it might be something linked to how you configured your products.
Hard to say more without being able to reproduce the problem.
Could you provide the necessary steps to reproduce the problem on your website ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NTMzNC1pdGVtcy1ub3QtYWRkZWQtdXAtYnV0LWFkZGVkLXRvLWNhcnQtc2VwYXJhdGU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Squashtoppertje](/forum/user/39506-squashtoppertje "View Squashtoppertje's Profile")**
- [![Squashtoppertje's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39506-squashtoppertje "View Squashtoppertje's Profile") Topic Author
- [ Offline](/forum/user/39506-squashtoppertje)

Less More

- Posts: 45
- Thank you received: 0
-
-

10 years 4 months ago [\#244404](#244404) by [Squashtoppertje](/forum/user/39506-squashtoppertje "View Squashtoppertje's Profile")  Replied by *[Squashtoppertje](/forum/user/39506-squashtoppertje "View Squashtoppertje's Profile")* on topic *[Items not added up, but added to cart separate](/forum/27-checkout/885334-items-not-added-up-but-added-to-cart-separate#244404 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.2 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome  Hi,  I've got a strange error. I'm using the listing&#95;table. When a product is already added to the cart and I select the same product again in the listing&#95;table, the product does not add up, but a &quot;new&quot; line is added.  So instead of adding up 1 + 1 = 2, two of the same products are in the cart on separate lines. Both with quantity 1.  I've checked the database and in the hikashop&#95;cart&#95;product table I see the same product&#95;id, all with quantity 1. See attachment.  I also got a testing environment which has got no problem (like the live one before) and I have compared both listing&#95;table.php and cart.php. However there are no differences. So the difference must be somewhere else.  Do you know what goes wrong here? Where can I look for the solution? Any clues?  Thanks!")*

Hi Nicolas,

There are no variants or options for the products. I understand it is hard to see the problem this way.

Can I send you login credentials is some way to have a look? The "shop" is only for registered users.

Recently there was a change in all the product codes. Maybe it has something to do with that. I'm not sure if the problem already persisted before that.

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NTMzNC1pdGVtcy1ub3QtYWRkZWQtdXAtYnV0LWFkZGVkLXRvLWNhcnQtc2VwYXJhdGU/dG1wbD1tYXJrZG93bg==) 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: 86359
- Thank you received: 14296
-
-

10 years 4 months ago [\#244415](#244415) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Items not added up, but added to cart separate](/forum/27-checkout/885334-items-not-added-up-but-added-to-cart-separate#244415 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.2 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome  Hi,  I've got a strange error. I'm using the listing&#95;table. When a product is already added to the cart and I select the same product again in the listing&#95;table, the product does not add up, but a &quot;new&quot; line is added.  So instead of adding up 1 + 1 = 2, two of the same products are in the cart on separate lines. Both with quantity 1.  I've checked the database and in the hikashop&#95;cart&#95;product table I see the same product&#95;id, all with quantity 1. See attachment.  I also got a testing environment which has got no problem (like the live one before) and I have compared both listing&#95;table.php and cart.php. However there are no differences. So the difference must be somewhere else.  Do you know what goes wrong here? Where can I look for the solution? Any clues?  Thanks!")*

Hi,

You can use our contact form:
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)
Please make sure that you provide the necessary steps and a link to this thread too.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NTMzNC1pdGVtcy1ub3QtYWRkZWQtdXAtYnV0LWFkZGVkLXRvLWNhcnQtc2VwYXJhdGU/dG1wbD1tYXJrZG93bg==) 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.047 seconds

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