• Resolved Selah

    (@tubescreamer)


    Hello, i’m just wondering if this is normal behavior for adding items to the cart?
    When I add an item to the cart multiple times (simple product or variable product with the same variations) and the quantity is “1”, it updates the quantity of that product in the cart, but if let’s say I add a product and the quantity is “3” and then I add the same product again with the same quantity or a different quantity that’s higher than “1”, it gets added as a separate item instead of updating the quantity accordingly. Is that normal? Does WooCommerce only update the quantity of the item in the cart if the quantity is set to “1” and if the quantity is higher than “1” and the same product is added multiple times, it gets added separately?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @tubescreamer ,

    Okay, the description you have shared does not seem to be how WooCommerce works by default.

    For simple products, it does not matter how much quantity you are adding in one go, the quantity will update accordingly.

    For variable products, the cart will show separate product lines only when you select a different variation.

    The behavior you have described actually needs some customization to be enabled in WooCommerce. If your current theme/a plugin is making this possible you can find it out after following these steps:

    1. Switch to a default theme i.e. Twenty Twenty / Storefront
    2. Deactivate all plugins except WooCommerce and then activate them one by one to figure out the faulty one.

    Test your feature after each activation/deactivation.

    If the above does not help please share your WooCommerce configuration details from wp-admin > WooCommerce > Status so we can understand a bit more about the problem.

    Thank you ??

    Thread Starter Selah

    (@tubescreamer)

    Ah okay, I figured as much, because when I searched on Google, I found people trying to achieve what was currently happening to my cart with custom code, lol. It seemed as though it was a plugin conflict, I sorted it out now though, thanks!

    Hi there,

    Awesome!

    I am glad that you have got it sorted out. I am going to mark this thread as resolved. If you have any other queries, feel free to open a new thread.

    Thank you ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding same product to cart multiple times adds separate instead of updating qty’ is closed to new replies.