• Resolved exellartech

    (@exellartech)


    Hi,
    I have enabled ajax add to cart option for archive products pages.

    When you click on add to cart…. the product is added to the mini cart widget on the left sidebar. But when I continuously add products at the same time (when the ajax loader is spinning) it removes the previously added product from the cart widget.

    Please check the url given for testing.

    Thanks

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Ryan Ray, a11n

    (@ryanr14)

    Hi there,

    I tested this same scenario with a pretty vanilla install of WooCommerce and it works the same way, that says to me this is by design and just the way the AJAX request works. I’m not certain there is a way around, plus it doesn’t seem a likely habit that shoppers have.

    Do you see requests for this way of shopping, where you quickly add products to the cart by rapid-fire clicking?

    Thread Starter exellartech

    (@exellartech)

    Yes in my case the product is just one with different color variation and the customer will keep adding colors in the cart quickly.

    So it needs to be real quick and optimize in terms of adding to cart.

    Or either even while loading it should allow other products to be added.

    Please help this is last error remain in terms of deliverables.

    Thanks!

    Kenin

    (@kbassart)

    Automattic Happiness Engineer

    Hi there,

    I took a look at your site and it’s all working as it should other than that the site is loading rather slowly. I’m afraid there’s no way to modify this behavior as the issue isn’t with the AJAX functionality, it’s with the overall speed of the site.

    You’ll want to work on optimizing your site speed so that the add to cart function executes more quickly with each click. Here’s some info on optimizing your site’s speed: https://docs.woocommerce.com/document/troubleshooting-a-slow-site/

    Thread Starter exellartech

    (@exellartech)

    Hi,
    I implemented wpcache plugin… also compressed all the images through wpsmush pro.

    It has improved the site loadtime but the ajax cart issue is still the same taking too much time to be added to cart

    Seems like the error is with ajax only.

    Kenin

    (@kbassart)

    Automattic Happiness Engineer

    Hi there,

    You may want to see if some of the plugins, or the theme, you have installed on the site are causing issues as well. In order to do so, you can complete a conflict test as outlined here: https://docs.woocommerce.com/document/woocommerce-self-service-guide/#section-4

    Thread Starter exellartech

    (@exellartech)

    Hi I also tried with with the new woocommerce install on the twenty sixteen theme. It reduced the ajax add to cart loadtime… But when I continuously add products at the same time (when the ajax loader is spinning) it removes the previously added product from the cart widget.

    Kenin

    (@kbassart)

    Automattic Happiness Engineer

    Yes, if you add to cart while the spinner is spinning, that is the expected behavior. The user should wait until the spinner stops before adding another. You can keep working on speed issues to reduce the amount of time the spinner is present, but if they choose more than one at a time, while the spinner is there, the issue will always be present.

    Plugin Author Julia Amosova

    (@jamosova)

    Hi @exellartech, you haven’t connected with us here for over a week. Can we help with anything else or should we mark this thread as Resolved? Thank you and looking forward to your reply!

    Plugin Author Julia Amosova

    (@jamosova)

    Hi @exellartech,

    Looks like you are all set for now so I am going to mark this thread as Resolved. Feel free to connect with us again should you have any additional questions!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Ajax Add to cart error’ is closed to new replies.