woocommerce cart is empty after adding products

I use woocommerce on wordpress. But have one problem with checkout page. I’m adding products to the cart, then it redirects to cart page(as I checked this option from Woocommerce Settings-> “Redirect to the cart page after successful addition”), in the cart page I have “Update Cart” and “Proceed to checkout” buttons, after clicking on both buttons I’m redirected to Empty Cart page.

I noticed a thing that cart is updated after some minutes and after that it works. What can cause this maybe cookie or session issue?

Related posts

Leave a Reply

6 comments

  1. The most simple solution:

    Go to settings, change from “https” to “http”, try it now, if it works there is a issue with woocommerce forcing autentication, you can simply leave it be, and use “Wp Force SSL” to keep runing the SSL certification and have no more problems with it.

    Worked for me

  2. I ran into this problem and tried a bunch of things:
    – installing a session plugin
    – updating woocommerce & theme
    – updating wordpress
    – updating my plesk server
    – adding session.autostart = 0 in PHP.ini
    – using expiresActive Off in .htaccess
    – removing AJAX on products and REST API in woocommerce settings
    – refreshing status in woocommerce system status

    The one thing that finally worked for me (i think) was installing WP Force SSL

    this sounds like an ad. I hope this helps!

  3. I did debug it and the issue was

    woocommerce_sessions: Table does not exist
    

    Deactivate and reactive the plugin, so that woocommerce plugin create a session table again.

  4. check the tick mark for Force secure checkout on woocommerce >> setting >> checkout.

    If you have https secure certificate it should ticked (marked).