• Resolved dcrandjsc

    (@dcrandjsc)


    We have an issue with a client’s site. On occasion, users will add products to their cart and the cart would still be empty once they open their cart. We have tried the following to debug the issue:
    ? Forcing SSL on checkout
    ? Clearing cookies and cache
    ? Deactivating all the plugins but Woocommerce and seeing if there was an offending plugin. The issue was still present with only Woocommerce activated.
    ? It was difficult to consistently replicate the issue on Chrome, sometimes it functions correctly, sometimes it would not. Using Safari the cart was empty every time.
    ? Updating the plugins and Woocommerce.

    These have not resolved the issue and cannot produce the issue reliably on the host server. On a staging environment with other hosts, we do not encounter the issue at all. Would anyone happen to know if this could be a server-side issue? We’ve done some research and this thread came up. https://www.ads-software.com/support/topic/plugin-woocommerce-cart-brokennot-adding-products/. Could some data be corrupted on a hosting server or a PHP session not set up correctly? I’ve seen other threads for this issue and it seems like it can be caused by a large number of variables.

    Any insight on this would be helpful, thanks.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    @dcrandjsc The most common cause for this type of issue is aggressive caching.

    If the issue didn’t go away with only WooCommerce enabled, you must either not be using any caching plugins or they are not the cause of the issue. In that case, I’d recommend reaching out to your host to ask about caching at the server level. It’s common for hosts to enable some level of caching on their side, which can cause this type of issue. It’s important that any type of caching that works on your site excludes all WooCommerce pages from its functionality.

    Thread Starter dcrandjsc

    (@dcrandjsc)

    @fhaps thanks for your advice. Do you have any caching plugins that you recommend that I use?

    Are there other causes for this kind of issue?

    Thread Starter dcrandjsc

    (@dcrandjsc)

    @fhaps I contacted the host, they have a server cache that refreshes automatically every 8 hours. But there’s a manual cache flushing option available to me to use. I’ve tried doing some testing with it and the empty cart issue still persists. There seems to be a browser dependency with this as well. I cannot reproduce the issue on Chrome but on Safari, the cart is initially fine but if I refresh on that page it tells me the cart is empty even when it’s not. If I go to another page it’ll show that all the items are still in the cart. Is this a database issue or something else?

    Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    The best way to resolve this is to exclude the My Account, Cart, and Checkout pages from being cached.

    Here’s our documentation on configuring caching plugins that explains a bit more.

    Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please feel free to start a new thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WooCommerce Empty Cart Issue’ is closed to new replies.