Items not added up, but added to cart separate

  • Posts: 45
  • Thank you received: 0
8 years 4 months ago #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_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.



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!

Attachments:

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 4 months ago #244358

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 or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 0
8 years 4 months ago #244404

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 or Create an account to join the conversation.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 4 months ago #244415

Hi,

You can use our contact form:
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 or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum