• Resolved wpshushu

    (@wpshushu)


    We use https://xootix.com/plugins/side-cart-for-woocommerce/ as our shop’s side cart solution. This plugin builds its ajax add to cart functionality on WooCommerce core. But we found that it could fail adding products to cart if customer navigates away to cart page right after she sees the “Added to cart” message. This issue is not easily reproducible. But it appears to be easier when we enable WPML. We have consulted xootix developer and they have confirmed that their plugin has no compatibility issues to either WooCommerce or WPML. Our staff have managed to record the issue here: https://www.loom.com/share/7263c1ec09c84d35b5695e1d48940f62 But in terms of troubleshooting, we have hit a wall. We did try switching off some plugins but wasn’t able to draw the conclusion which plugin caused this, because switching any combination of plugins could reduce its occurrence or even make it unreproducible.

    Could WooCommerce team shed a light on what “might” have caused “ajax add to cart” failure? Thanks!

    • This topic was modified 1 month, 2 weeks ago by wpshushu.

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

Viewing 1 replies (of 1 total)
  • Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hey @wpshushu ,

    The issue you’re describing can be tricky due to the combination of factors involved, but I’m happy to share a few factors that could be at play here!

    • If the user navigates away from the page immediately after seeing the “Added to cart” message, the asynchronous Ajax request to add the item to the cart might not fully complete before the new page is loaded. This could cause the item not to be added to the cart correctly.
    • If you have caching mechanisms in place (such as a caching plugin, server-side caching, or a CDN like Cloudflare), they could interfere with WooCommerce’s dynamic Ajax requests. Caching could prevent real-time updates to the cart, causing intermittent issues.
    • WooCommerce relies on cookies and sessions to manage cart functionality. If there is a delay or issue with the session being updated (due to caching, plugin conflicts, or server-side issues), the cart may not be properly updated when the user navigates to the next page.
    • There might be conflicts with other plugins or scripts on your site, especially if they’re using similar Ajax calls or hooking into WooCommerce’s cart functionality.

    I hope this helps!

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