Support » Plugin: WooCommerce » Cart not updating correctly when adding items quickly

  • Resolved dnmdgj



    On my website when adding items to cart quickly before the previous one has finished adding, the cart does not update correctly. I use plugins such as WPML translation which slow down the website, but even when every plugin is deactivated except for Woocommerce the problem is there.

    Here is a Sandbox example of a clean site with only Woocommerce plugin active:

    If waiting for the previous item to finish adding, and then adding the next one, there is no problem. But adding items very quickly does not update the cart correctly. On first try it might add correctly, but if you add items almost simultaneously the problem will be visible. Next to the item it will say that all the items are added to cart, but the cart will not show all of them.

    Can someone help with this please?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there,

    This usually happens because wc-ajax calls are made when you add a product to the cart. If you add quickly before completing the method, the method is overwritten or delayed. In order to fix this, you need to increase the performance of your website maybe by tweaking the server configurations so that the call is made quickly.

    I hope this helps!

    Plugin Support Hari Shanker R


    Automattic Happiness Engineer

    Hi @dnmdgj

    I hope the suggestions we offered you helped you in guiding you in the right direction. I would also recommend that you take a look at the list of suggestions here for more guidance:

    I’m marking this as Resolved, but feel free to reach out to us here in the forums if you have further questions. We’re happy to help!

    All the best!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.