WooCommerce: Solving the “Cart is Empty” issue

For some reason, sometimes you add products to cart but the cart page stays empty (even if you can clearly see the cart widget has products). But don’t worry – it might just be a simple cache issue (and if you don’t know what cache is that’s no problem either).

Here’s your “Empty Cart” troubleshooting check-list you can follow without any technical knowledge.

Fix 1. Make sure there is no “red alert” under WooCommerce / System Status

WooCommerce System Status OK
WooCommerce System Status OK

Fix 2. Click the following buttons under WooCommerce / System Status / Tools

WooCommerce: fix the cart is empty issue
WooCommerce: fix the cart is empty issue

Fix 3. Check your Theme, WooCommerce & WordPress are using updated, compatible versions

Some premium themes won’t notify you if there is an update available. You have to make sure you’re using the latest, Woo-compatible version. Check with your theme vendor, plugin developers and see if anything has been reported.

For example, you might have updated WooCommerce too soon – sometimes premium plugins/themes require a few days/weeks before they can adapt to the new changes (if major) and become 100% compatible.

Fix 4. Save (flush) your permalinks

Go to WordPress/Settings/Permalinks and click on “save”. This should flush the permalinks and give you a chance to test the cart again.

Fix 5. Check you have no spaces in your checkout end-points

Go to WooCommerce/Settings/Checkout and make sure you have no spaces in your end-points. This happened to a client a while ago and it too me ages to find out (who would think the permalinks had been changed?):

WooCommerce Checkout Endpoints
WooCommerce Checkout Endpoints

Fix 6. Properly set up your WordPress cache plugin

Cart and Checkout pages should not be cached – if your WordPress cache plugin is for some reason caching WooCommerce pages, your cart will probably show as empty. Make sure to select a WooCommerce-compatible cache plugin πŸ™‚

Also: ask your hosting to disable or properly set up server cache

Some hosts have their own cache system and this is sometimes applied to your website by default. Create a ticket or give them a quick call to find out if they have anything like that and if they can disable that as soon as possible.

For example:Β WPEngine uses its own cache. This might affect your WooCommerce Cart. Please contact support so they can create a caching exception list for WooCommerce and/or ajax files

Fix 7. Disable all plugins but WooCommerce

This is a typical troubleshooting operation. Disable all plugins and see if the Cart is back functioning. If YES, reactivate one plugin at a time and test the Cart again. As soon as you find the “guilty” plugin – yay! – time to substitute that plugin or see if there is an update available!

Fix 8. Try switching to a default WordPress Theme (e.g. TwentySixteen)

This is to prove the error is not theme-related. You won’t lose any content if you switch between themes, so don’t worry. If the error goes away, then check with your theme developers and report the bug πŸ™‚

Where to add this snippet?

You can place PHP snippets at the bottom of your child theme functions.php file (before "?>" if you have it). CSS, on the other hand, goes in your child theme style.css file. Make sure you know what you are doing when editing such files - if you need more guidance, please take a look at my free video tutorial "Where to Place WooCommerce Customization?"

Does this snippet (still) work?

Please let me know in the comments if everything worked as expected. I would be happy to revise the snippet if you report otherwise (please provide screenshots). I have tested this code with Storefront theme, the WooCommerce version listed above and a WordPress-friendly hosting on PHP 7+.

If you think this code saved you time & money, please join other Business Bloomer supporters and avail of 365 days of WooCommerce benefits. Thank you in advance :)

Need Help with WooCommerce Customization?

Check out these free video tutorials. You can start learning how to customize WooCommerce without unnecessary plugins. Watch me code and learn by example!

  • how-to-edit-woocommerce-with-php-snippets
  • woocommerce-hooks-add_action-list-visual
  • woocommerce-customize-single-product-page-PHP

Rodolfo Melogli

Author, WooCommerce expert and WordCamp speaker, Rodolfo has worked as a WooCommerce freelancer since 2011. His goal is to help entrepreneurs and developers overcome their WooCommerce nightmares. Rodolfo loves travelling, chasing tennis & soccer balls and, of course, wood fired oven pizza.

216 thoughts on “WooCommerce: Solving the “Cart is Empty” issue

  1. Hi,
    I did all the steps and my problem is not resolved. still cart empty after adding items from the store page.

    what I will do? Could you please help me.

    1. Try reinstalling WooCommerce

  2. For me (WC 3.8.1, Dec 2019 with default twentytwenty theme) the probem was this:
    Cart page was both, “Posts Page” and “Cart Page”. This won’t work.
    Recreate the Cart page so it won’t be listed as “Posts Page”.

    1. Cool

  3. Thanks,
    Your provided code is working.

    1. Cheers

    2. Maybe I am just dumb but I dont see the snippet to add I just see if in case you want to add a snippet?

  4. Hi Rodolfo

    Is it standard for WordPress to clear the cart if there is 1 product in the cart, and then the user clicks update cart.

    Is this a bug? I tried everything in your post, but it still does this.

    If there is 1 product added to the cart, and you click update cart, it clears the cart.

    If there is 1 product in the cart, and you modify it, like adding more quantity, then it is fine.

    Im confused.

    1. Uhm, the “update cart” button is disabled unless you change quantity. Maybe you have a plugin/theme conflict

  5. This save my life!! After all the steps the cart was working

    1. Thank you!

  6. I went around and around and finally found an article to reset my google analytics. Work like a charm!

    1. Cool!

  7. Hi Rodolfo,
    Thanks a lot for this helpful article.
    I have this issue just in my Instagram Shop.
    I set up shopping business account in Instagram two days ago and today they approved my shop account.
    I can checkout my cart in website, from Facebook Shop which is connected to my WooCommerce Website but I can not see anything when I am adding products in my cart. It says “Your cart is currently empty.”
    It should be a cache issue but there is no improve after following the steps you suggested.
    Would you please help me with it.

    1. Mary, thanks so much for your comment! Yes, this is definitely possible, but I’m afraid it’s custom work. If you’d like to get a quote, feel free to contact me here. Thanks a lot for your understanding!

    2. Hi Mary,
      Check this Stackoverflow question https://stackoverflow.com/q/57802180/2810384. That issue is quite similar to your case and also relates to Instagram Shop.

      Hope it helps.

  8. Thanks a lot. It’s very helpfull!

    1. Great!

  9. Hi there! I’m not sure if I have a particular challenge with this issue, so I thought I’d comment and see if anyone had thoughts. Some of my clients see the cart empty error when they hit checkout. The problem is this happens sporadically and I can’t reverse engineer what is happening. I’ve asked so many people to no avail. The only conclusion I can come up with is that it’s a caching thing – someone adds an item to their cart, leaves my site and comes back. Doesn’t happen when I do it, though! And, one client told me he had the problem, but switched browsers. I understand glitches, but it’s really hard to fix the glitch when it has no consistency. Perhaps number 6 is what I need to do? Contact the server to not automatically cache my site. Thanks for listening!

    1. Yes Lydia, I’d try to contact your hosting

  10. Thank you a lot, This was very helpful.

    1. Awesome!

  11. Hi, This is my problem. One thing is I have a red alert in the system status: where can I see the page# of the cart and checkout?

    1. How to correct those error in the cart – it says “page does not contain the shortcode” – how to add the shortcode like #6 – /checkout/?

      1. Hi Mimi, just open the page in edit mode and enter [[woocommerce_checkout]] in the text editor. Hope this helps

  12. Hello sir,
    I have tried all of your tips regarding the empty cart. I have tried Fix 7. Disable all plugins and found that my advance custom field plugin conflict with this issue.
    1. I tried update advance custom field plugin but no result
    2. I tried my custom ajax with ob_start() and ob_get_clean() though no result.

    Please notify me. I will really appreciate.

    1. Please contact the plugin support πŸ™‚

  13. I will give this a shot. Hopefully it works.

    1. Good luck!

  14. THANK YOU.

    I disabled all – and the offender was “GA Google Analytics” by Jeff Starr

    Great run-through. Maybe collect a list of the offending apps so that the creators can know about their product’s interference?

    1. Fantastic, thank you!

  15. Thank you so much for this, solved my problem.


    1. Yay!

  16. In my case none of the solutions in the post helped. But after deleting all the entries in wp_woocommerce_sessions in the database the cart is now finally getting updated.

    1. Ah, nice! Thank you πŸ™‚

    2. I was following these steps to fix the empty cart issue: WooCommerce / Status / Tools / Clear transients, Clear expired transients, Recount Terms, Clear customers sessions, Update database (wait a few minutes until database was updated) then WordPress settings / Permalinks / Flush. After 20 or 30 minutes of struggle, these steps fixes the problem but only temporary (24 hours only). I had to manually do these steps every single day for more than a month (The frustration level is over 9,000). Tried everything else mentioned in this article, and the issue always came back.

      Now, I read this comment, opened my site’s database in the web-host and deleted all entries in wp_woocommerce_sessions table. The issue was immediately fixed! I hope it last more than 24 hours. Fingers crossed. And thanks for this awesome article.

      1. Cool!

  17. Wow! This was soo helpful and i learned new stuff about WooCommerce. Thank you a lot, you saved me a ton of work and wasted time.

    1. Awesome!

  18. Hello! I’ve been doing all this, but still products are not being added to cart at all… Tried everything… Even with storefront theme is the same issue. There is the notification about product being added in to cart but when i check it is empty. Sometimes it adds only one which will be permanently there… without update or delete it; and no other products get in the cart.

    1. Not sure Csabi, sorry πŸ™‚

    2. I went through the steps. I found my issue to be at the Host. They refreshed the cache and the cart worked again. Thanks for the checklist!

      1. Awesome πŸ™‚

  19. Hi,
    I have the same issue and i followed all the steps you mentioned above.

    But does not work for me.

    1. Sorry to hear that πŸ™

    2. I have resolved this by correcting database tables and then it start working again.

      The main issue was no index key, proper structure of table and no auto increament key in the table. So that new entries are being saved with id with 0.

      The issue caused by wrong transfer of site from one host to another.

      1. Great!

  20. I would love to see someone resolve the varnish + woocommerce cart issue on cloudways, other than simply turning it off.

    Varnish is awesome for performance, but it’s a pain in the ass when not working properly.

    1. Agree πŸ™‚

    2. Did you ever get a fix for Varnish on Cloudways so that it works well with Woo?

  21. Hi, very useful post! Unfortunately, it did not solve my issue.. I have a multilingual site, I tried deactivating all plugins, activate another theme etc only to find out that is it the Woocommerce plugin that is currently causing the issue in the English cart page only and in Chrome only!
    If I add a product in the Greek cart page, it appears fine (https://www.nisosjewelleryandsandals.com/cart/) but if I switch to English cart page (or navigate in the English website and add a product to cart – https://www.nisosjewelleryandsandals.com/en/cart-2/), the page does not refresh, that’s the actual problem, if I refresh the page, I see the recently added product! It’s like a caching issue, only i do not have any caching plugins!
    Any ideas?

    1. Hey Vivi, thanks for your comment! Maybe it’s your multilingual plugin though πŸ™‚

    2. Hi, i have exactly the same problem with you, did you resolve the issue ? Best regards

  22. Looks like the suggestion for #2 worked for me. This is a very handy checklist and very easy items to check without having to get filthy into the code. Thank you for the great resource, I’ll be bookmarking this site for future issues.

    1. Thanks Andrew!

  23. I tried everything you suggested None of it worked.

    1. Sorry to hear that πŸ™‚

  24. Thanks so much for sharing your experiences with this issue.

    Fix 5 solved it for me – somehow a space had been introduced into one of the checkout endpoints, so every time an order was submitted, it couldn’t get to the ‘order received’ page. As soon as I removed the space and saved the settings, the order process was back to normal.

    1. Awesome πŸ™‚

  25. I was looking for an answer, checking for varnish settings for hours… even without any cache I was seeing these cookies disapear ad reapear… and I came there :

    Fix 1. Make sure there is no β€œred alert” under WooCommerce / System Status

    During my migration all my prec_woocommerce_* tables didn’t migrate (don’t know why…). I had a lot of red in my status of woo… I did an import from the old site and… miracle ! it worked ! Next time, check the status before checking google :p

    1. Excellent πŸ™‚

  26. Hi ! Mr. Rodolfo. Thanks for your post that important for me. The solution that step by step is so useful.
    Every steps were checked by myself. I was focused on about “php session” and it’s so complex. I disabled all of plugins without wocommerce, it wasn’t helpful. And than I checked up checkout endpoints. I wasn’t leave blank any of them but put in Turkish alphabet character. I fixed it, the problem being solved. Thank you again !
    Best Regards.

    1. Awesome, thank you Mehmet πŸ™‚

  27. I tried everything you suggested None of it worked, Finally I copied the codes from the website
    And pasted them into the pages. Not sure why, but they work now. The problem is, the pop up card view shows $9.99 and not the right price. Another problem is, I want to give away books without having to go through a card screen. I suppose I may figure it out.

    1. Uhm, this is weird πŸ™‚ Are you using an old version of WooCommerce?

  28. Hi Rodolfo,

    Thanks for the brief article! Although I tried all the methods listed and none of them worked.
    It wasn’t issue with hosting as well, because I had another woo site on same server and it was showing cart products for non-logged in users!
    So I was looking into database tables, and in wc_woocommerce_sessions, I saw difference between two databases for this table. One I was having issue with was not having anything set as primary and index key. Other was having session_id as index and session_key as primary key.
    So I exported correct table from working database, and imported it into non-working database (after dropping the non-working table).
    And it started working!

    1. Good to know, thanks Shubham πŸ™‚

    2. Can you please tell which one is working? I have the same problem

  29. #2 did the trick for me **note if you are installing in a different language** these tools might be arranged in a different order (e.g. german install) so be sure to click precisely the correct resets as outlined in #2…took me a while to realize that.

  30. Very thanks for your article!
    I have the inverse issue: after order are passed and payed, some users back (few weeks after) on the website but cart is full of the last order πŸ™
    It occure for about 5% of the users.
    Have you an idea?

    1. ey Johson, thanks for your comment! I don,t I’m afraid, but take a look at this tutorial to see how to troubleshoot: https://businessbloomer.com/woocommerce-troubleshooting-mistakes-to-avoid/

  31. This was very helpful. I also had to turn of Varnish caching and Breeze plugin on Cloudways, but then the cart update worked.

  32. Fix#5 I was translated text. Now working! Thanks πŸ™‚

  33. I found that WPEngine our host was caching the shopping basket page. In the UK we use the term basket rather than cart for that page, and although they automatically do not cache the cart page they do cache the basket page.
    They can also remove basket from the /cache/ though really easily.

    1. Great Mark, thanks for your valuable feedback!

  34. Hi
    I did everything all according to instructions of 1 to 8 and nothing happen solutions not solve. I still have Cart is Empty problems. I am now a days trying to solve the problem and I’m really desperate. What is to be done ?

    1. Hey Sari, thanks for your comment! Maybe your theme (or another plugin) is messing/conflicting with my snippet?

      To troubleshoot, go to WP Dashboard > WooCommerce > System Status: what errors do you see in red font?

      Also, take a look at this tutorial to see how to troubleshoot: https://businessbloomer.com/woocommerce-troubleshooting-mistakes-to-avoid/

      Finally, can you try switching temporarily to “Twentyseventeen” or “Storefront” theme and let me know if it works?

      Hope this helps!


  35. We turned off Varnish on our Cloudways application and this solved the empty cart problem.



    1. Same here as Adrian, disable Varnish cache on Cloudways got it solved.

  36. Hi Rodolfo
    Your step-by-step plan does resolve the issue.
    I take the fast way:
    then deactivate the plug in “WP Menu Cart Pro”. reactivate it.
    Problem solved. cart is no more empty again.
    Thanks a lot – where can i donate you?

    1. Brilliant, great to hear this helped Padeshi πŸ™‚ Instead of blog donations, I launched a Business Bloomer “supporters” project. You can join for as little as $9: https://businessbloomer.com/bloomer-armada/. Thank you in advance!

  37. I am facing cache issue with my wordpress website.

    Here is step about what happen.

    > Add product to cart.
    > Go to cart page.
    > Remove product from cart page.
    > reload cart page. (this is issue point)
    > go to shop and add product again.
    > Go to cart page again but shows no product.

    So if I reload empty cart page it never shows products again on cart page. How ever cart widget on menu bar shows the count of product added but cart page remains empty. Only option to resolve is switch theme to other theme and again selecting original theme back. But I have to do it every time when this happen.

    But I tested this process with default theme Twenty Fifteen as well, same issue happens. So theme is not the issue.

    I went through every points you suggested. Updated everything. Disabling every plugin but not woocommerce. Everything but no change.

    Please help…. πŸ™

    1. Hey Harsh, thanks so much for your comment! Unfortunately this is custom troubleshooting work and I cannot help here via the blog comments. Thanks a lot for your understanding! ~R

  38. Thanks, this solved my issue!!

  39. I my case, it was a broken mysql import. was missing the auto increment config

    1. Interesting! Thanks for your feedback Marcelo πŸ™‚

  40. Not working at site ground πŸ™

    1. Have you asked their Support team for help?

  41. OMG! Thank you for this! My WooCommerce cart was always showing empty no matter how many items a customer put it in. I’ve been losing sales for days while I’ve been trying to figure out the problem. Your “Fix #2” did the trick! THANK YOU!

    1. Awesome to hear that Trishah πŸ™‚

    2. Fix #2 worked for me too! Thanks

      1. Delighted to hear that πŸ™‚

  42. I got my hosts to turn of varnish cache and it solved the problem instantly.

  43. Fix 5. Check you have no spaces in your checkout end-points

    I translated all terms in French πŸ™‚ That’s way it shows always “your cart is empty”.

    Thank you so much for your help

  44. OMG my cart works!!!

    Thank you thank you thank you sososososo much!!!!!!!!!!!!!!!!

  45. In my case I had just migrated to a new host, and somehow WooCommerce tables got corrupted or didn’t come across. I deactivated and reactivated WooCommerce, which fixed the tables. Check WooCommerce system status – if tables are missing this might be your fix.

    1. Awesome, thanks for your help Kristin!

  46. Thanks for this post, this saved me lots of frustration! haha!

  47. Hi, When I click add to cart button the product is added in the cart widget. But when click on view cart button the table is not showing the products only the headings product, price…..

    1. Hey Alex, thanks for your comment! Have you followed all the steps above?

  48. Hi Rodolfo,

    Great post, I have tried every step listed but unfortunately nothing has worked. The problem only started when woocommerce updated and I had to update the template overrides found in system status. Switching themes and disabling every plugin and it still displays ‘Checkout is not available whilst your basket is empty.’ Any other ideas, I feel I have tried everything…

    1. Hey Mark, thanks for your comment! I guess you’ve switched theme to 2016 or 2015 theme, and removed ALL plugins but WooCommerce. In this case, it would have to work, unless your database is broken.

      Try to reinstall WordPress and WooCommerce from scratch as your last resort – let me know!

  49. Hi, I am having an issue with an empty cart, after I add to product to it. This issue is only with safari on an iphone. when I debug the safari browser I get these messages… Is it a theme issue, or ?

    Failed to load resource: the server responded with a status of 404 (Not Found)

    it references this link:


    I also get these:

    [Warning] Invalid CSS property declaration at: ; (cart-3, line 226)
    [Warning] Invalid CSS property declaration at: ; (cart-3, line 226)
    [Warning] Invalid CSS property declaration at: ; (cart-3, line 226)
    [Warning] Invalid CSS property declaration at: ; (cart-3, line 226)
    [Warning] Invalid CSS property declaration at: ; (cart-3, line 226)
    [Warning] Invalid CSS property declaration at: ; (cart-3, line 226)
    [Warning] Invalid CSS property declaration at: ; (cart-3, line 226)
    [Warning] Invalid CSS property declaration at: ; (cart-3, line 226)

    1. Hey Joe thanks for your comment! Hard to say in this case, but you can try switching theme temporarily to see if the problem goes away. Let me know!

  50. Hi,
    One fix isn’t mentioned. Sometimes the db tabel woocommerce_sessions can get corrupted and needs to be repaired.
    Using debug=true will show this warning if it is the case. Using repair within phpmyadmin wil fix this.

    Also when the above is the case, the actions in FIX 2 won’t be performed although there are no warnings if clearing client sessions doesn’t succeed.


    1. Thank you so much for your input Marcellino!

  51. THANK YOU! No 5 helped me! You save me weeks of wondering.

    1. Awesome! Thanks for your feedback πŸ™‚

  52. Many many thanks, thanks to your inputs I was able to resolve my problem!

    1. Glad tohe hear that Michele, thank you!

  53. Hi Everyone!

    I also had the empty cart issue and fixed it. My WooCommerce cart widget was always empty, and I also installed WooCommerce Cart Tab plugin and it was also empty on my homepage, but they were both working on other pages. After hours of unsuccessful attempts I noticed that my Merge & Minify & Refresh plugin was loading different JS files on my pages. I realized that it didn’t refresh the merged JS after installing widgets and plugins, so clearing my cache solved it.

    Hope this helps someone

    1. Thanks so much for your help Szurdoki!

  54. Hello, i love this post, the problem i am having the SMALL CHECKOUT Box is working but the main page Check is saying Empty,

    please what should be the problem?

    1. Hey Okija, thanks for your comment! Unfortunately this seems totally depending on your own combination of theme/plugins. Try the standard troubleshooting and see if that gives you an answer: https://businessbloomer.com/woocommerce-troubleshooting-mistakes-to-avoid/

  55. Hi Rodolfo,

    I am really scratching my head here. With all the things done: emptying cache, disabled all plugins but woocommerce, change to another template that (also) has a mini cart, i get the error “no products in cart”.

    However. I see that it loads the total, but it gets overridden to 0. Going to the /cart page, and updating the cart, also updates the mini cart now correctly. Deleting items from the cart, works fine too. When the cart is empty, and adding a new product, it briefly flashes the correct value, and then hits 0 as a display. I’ve tried to use chrome’s timeline inspector and found that it ‘changes’, which you can see on screenshots.

    I’m clueless right now.

    1. Hey Josh, thanks for your email! Couple of things – check the Woo/WP are using a compatible version and second ask your host, as they might add a cache functionality you’re not aware of. If all else fails, reinstall Woo&WP on another site and retest. Let me know!

    2. Reading Josh’s comment I think I am having a similar issue. When products are placed in the cart, the cart icon briefly flashes the correct numbers but then goes to 0. I’ve tried everything on this page and nothing has solved the issue. I have uninstalled and reinstalled WooCommerce. I have asked my host if they are using a caching system and they said no. I created a new instance of WP/Woo in a subdomain and everything works fine there! What does that mean then? Is it a corrupted database and if so what can I do to fix it?

      1. Hey Cathy πŸ™‚ Yes, try to reinstall WordPress from Dashboard > Updates. Let us know!

  56. THANK YOU!!!!! I LOVE YOU! No 5 – helped me! I you are amazing!!!!

    1. Thanks for the love G! πŸ˜€

      1. You really helping people. Thanks again.

  57. One thing I haven’t seen mentioned anywhere (and on other websites) is the fact that WordPress will redirect URLs to match its WP_SITEURL/WP_HOME setting. When it does this redirect, it strips the query parameters (as of WordPress 4.6.1). For us this was a problem when the user was visiting the non-www version of our website (which is static HTML) and then clicked to go to the cart where WordPress’s site URL used www. We fixed it in Nginx by forcing all non-www URLs to redirect to use www. Then the content URL matched our store URL, and WordPress no longer would redirect and strip the query parameters (specifically add-to-cart).

    1. Thanks for your valuable input Kevin!

  58. Hey, great post. Your first step saved me a lot of headaches. I simply didn’t have the shortcode on the Checkout page. πŸ™‚ Thanks.

    1. Awesome to hear that Chad! Thanks a million πŸ™‚

  59. Great post!

    What solved it for me was disabling the cache, Varnish, at the server level. We’ll see how things go from here.


    1. Brilliant, thanks for your feedback Mari!

    2. Thank you, Mari! This solved it for me, too — it was ok to have a Caching plugin in WP, but the server’s Varnish caching messed it up.

  60. Had the same issue on my site – took me FOR EVER!!! to fix, also took me a while to find if you are logged in the problem does not appear However for outside users it is epic frustration. I thought i tried everything, host was a pain to have any changes made – in the end it was Varnish on the server causing the issue, which can be changed at the user end from their optimization interface. Thankfully the server and my whole system has been checked over with a fine tooth comb hopefully there wont be any more issues.

    Thanks for the post was very helpful.

    1. Excellent Dylan, thanks for your valuable feedback!

  61. I am new in woocommerce and m facing Isue :When i click on add to cart button the cart items number appear with price in header right but when i cliked on cart symbol we redirect to cart page but get message is

    Your cart is currently empty.

    Return To Shop

    how to resolve that
    pls help me

    1. Hello Raj, thanks for your comment! Did you already try all the options I provided in the blog?

      1. Hey Rodolfo,
        I have done few experiment but esme was still there but due to some reason I install another theme and letter again I install my theme after that cart items are showing well but after two day I again face “your cart is empty” . May I know actualy what is happening?

        1. Hey Raj, thanks for your comment! Try contacting your hosting to see if they’re caching your website, that could be the reason πŸ™‚

  62. Hi Rodolfo,
    I am having similar problem on my site at the moment.
    When you click “Add to Cart” the product appears in the cart. However, when you continue shopping and select any additional products to “Add to Cart” they do not appear in the cart. Only the first product appears in the cart. When you click “Checkout” the products appear again. If you delete any products from the cart the cart does not update again until you checkout! This is obviously proving very confusing for customers and I am losing sales by the hour! I have tried all the steps above, but nothing seems to be fixing it. My gut says maybe it is a caching issue, but I am not using any caching plugin. Please help!

    1. Ben, thanks for your comment. This is weird, and if you really tried everything I would try contacting your hosting to see if they have their own cache enabled on the server – you never know. R

      1. Hi Rodolfo,
        That is exactly the problem! Managed to find the settings for the server caching this afternoon and for some reason the host company seemed to have turned them all on! Everything seems to be working now.
        Great article – it really helped me out. It may be worth putting the server cache option as a fix in the main article above. I think server caching may be a common occurrence as web hosting companies want to maximise the speed for their users as this is how they are judged by many people.
        Thanks again.
        All the best,

        1. Excellent! And will definitely add that to the check-list πŸ™‚ Cheers!

  63. Hi Rodolfo. I have the trouble with the cart. Simple products are not added to the cart, variable products are added but not deleted from the cart). But I noted than I change permalinks to “Plain” in the WordPress admin panel, it works without any issues. But I can’t run on plain permalinks, I need “Post name” ones. Please help!

    1. Hello Anjela, and thanks for your comment! I just tested the add to cart and it worked πŸ™‚ This looks like a cache problem to me?

      1. hmmm… I just tested too and I still have that issue. I cleaned the history in several brousers, don’t use any cash plugin and pressed buttons “Clear Transients”, “Expired Transients”, “Recount Terms” and “Clear All Sessions”. Maybe I do something wrong?

      2. Anjela, try deactivating all your plugins (but WooCommerce) and switching theme temporarily. Does the problem go away?

        1. Yep, I switched to Twenty Fifteen theme and deactivate all plugins, than cleaned the history in brouser and pressed buttons β€œClear Transients”, β€œExpired Transients”, β€œRecount Terms” and β€œClear All Sessions” again but it didn’t help(

          1. Uhm – weird. Are you saying nothing works even if you use 2015 theme + WooCommerce only (and nothing else)? This is impossible, unless there is something wrong with your hosting (contact them), or you’ve setup products inappropriately (why variable products work and simple ones don’t?). Let me know, hope you can fix this!

      3. Rodolfo, have you any idea about fix this issue? I hope for your help

        1. Anjela, as I said in the last comment try contacting your hosting or checking if you correctly created products in WooCommerce. Also, copy your site on another install and test again – there is definitely something wrong and it’s not because of Woo if you followed all the troubleshooting steps. Hope this helps

  64. hey Rodolfo Melogli

    can you help me pls

    i have an problem in my amazon store

    the problem is when i checkout its redirect me to amazon website but i got “there are no items in your cart”

    im using wordpress with kingdom theme and woozone

    1. Hey Robert, thanks for your comment! This seems to me like a problem with WooZone or your theme. Please contact the plugin/theme developers and they should be able to help πŸ™‚

  65. Hi Rodolfo. Thanks for the article but I still have this issue:

    simple products are not adding to the cart once I click on add to cart button, a pop up message says the product has been added succesfully and then when I click check out the cart says (empty cart). For variable products works fine but Im having the issue with the simple products. Can you please help me u can see this samples in my site. Also when u click on the X button to delete the product or click on update button it does not delete the product added… would you mind helping me with this?

    1. Hey Andrea, thanks for your comment! I took a look and there is definitely something wrong with the theme (is it up to date) or a plugin conflict. If you don’t know how to troubleshoot this, take a look at this tutorial: https://businessbloomer.com/woocommerce-troubleshooting-mistakes-to-avoid/. Let me know how you get on πŸ™‚

  66. Hi Rodolfo. Thanks for the nice guide. But is wasn’t helping me to solve my problem. My problem is:
    When i add a item to the cart, i automaticity directed to cart site, and the items indicator in menu show 1 item. But when I go to another page, the items indicator in menubar show 0 items? When I click 0 items, I land on cart page and its show 1 item.

    Please help me

    1. Mik, thanks so much for your comment! To me, this sounds more like a bug within your theme (or your theme is out of date). Did you ask your theme developers already?

  67. Hi Rodolfo,

    I have a e-commerce set up using woocommerce. I am creating orders from wp-admin for some of my customers. After all details are entered properly, the order invoice mail goes to the user with payment link. When user click on the link he goes to the checkout page with all the details displayed properly and payment gateways. But on clicking on place order button on the checkout page, it takes to cart page and says Cart is empty. Can you please help me with this issue.

    1. Hello Swati, thanks for your comment! This is an interesting issue πŸ™‚ Could you send me a screenshot of your manually created order page? Error could be there or it could be something completely different – that would be my first troubleshooting step

      1. Hi Rodolfo, I am also facing the same issue that swati mentioned. Is there any solution for this.

        1. Hey Vignesh, thanks for your comment! What issue are you having exactly?

    2. Hi! Rodolfo , I have the same issue.

      1. Hey Ricardo & Co., it could be a cache issue or if not a plugin/theme conflict. Try switching to 2017 theme, no plugins but Woo and test again.

  68. Hi Rodolfo,

    Thanks for your article. On my webshop the shopping cart widget stay empty when I order something on a product page.
    But I can see the order on my cart page.

    Strange thing. When I order products on the shop page ( collection of products) there is no problem. The widget shows on all pages the order.

    Any idea about this?

    1. Hello Gerardo and thanks for your comment! To me this looks like a plugin/theme conflict. If you disable all plugins but WooCommerce and even switch theme is the problem still there?

  69. Hello Rodolfo,

    Seems you know a lot about Woocommerce! I have the following issue: when running WC 2.0 there was a “cart stays empty” issue which I was able to resolve: too many pages with weird parent pages. I cleaned it up and it worked….for a while. Now I have upgraded to WC 2.5.5 nothing works! I think that the too-many-pages error is in place, but I am not sure what to do with the endpoints.
    My specific question:

    1) is it safe to remove all “old” pages and re-install the WC 2.5.5 pages?;
    2) does WC 2.5.5 automatically add the endpoints to the appropriate URL’s?.

    Hope you can point me in the right direction!



    1. Hey Ricardo, thanks for your comment! Your issue is very strange but yes – it is safe to remove the WC pages and reinstall them. You will not lose any content in the database (products, orders, etc.). When you delete pages, make also sure to “permanently delete” them before recreate them, otherwise WordPress will start creating URLs such as /cart-2, /checkout-2, etc. Let us know how you get on!

    2. This worked for me. If you’re using a caching plugins (such as WP Super Cache or W3 Total Cache), make sure you exclude the following pages from the cache through their respective settings panels:

      My Account

      These pages need to stay dynamic since they display information specific to the current customer.

  70. Thank you so much, Rodolfo
    my problem solved and You have a lot of information

    1. Thank you Mehran! Your feedback is invaluable πŸ™‚

  71. I did all the instructions as you wrote and still my cart was showing β€œno products” but after refreshing the page the cart products appears again.

    Now, only when I am logged on as Admin the cart appears normal. When I am trying to go to the cart page VIA all browser, the problem persists.

    And works On the smartphone the problem is completely gone.

    1. Hello Isaac, thanks for your message. Unfortunately this is custom work and I cannot provide this solution on the blog right now. If you would like to get a quote, feel free to go here. Thank you! R

    2. You most likely have a caching plugin like W3 Total Cache that’s causing this issue. By default, they don’t cache pages for logged in users which is why your cart appears normal when logged in.

      If using caching plugins, make sure you exclude the following pages from the cache through their respective settings panels:

      My Account

  72. STILL NOTHING! I am so depressed right now. I have tried everything.. πŸ™

    1. Ah, sorry dude πŸ™‚ I did my best here!

  73. Hi, i followed your indications but i have the same problem. Can you helo me please?

    1. Ouch – I’ll try to add more information to this blog so that you can troubleshoot.

  74. Thank you so much, Rodolfo !
    I had this issue with only safari and It was helpful to solve it.
    I buried my head in my hands and spend too much time…
    You made my day πŸ™‚

    1. Excellent thank you πŸ™‚

  75. Hi there Rodolfo and thank you for your great post!
    I did all the insturctions as you wrote and still my cart was showing “no products” but after refreshing tha page the cart products appears again.

    I’ve increased MEMORY_LIMIT to – 96M instead of 64 on wp-config.php file and cleared all kind of cache on my website (using W3TC).

    Now, only when I am logged on as Admin the cart appears normal. When I am trying to go to the cart page VIA Incognito browser, the problem persists.

    By the way, On the smartphone the problem is completely gone.

    Any ideas?

    And again, Thank you!

    1. Asaf, thanks for your comment. I think W3TC could be your problem. Try removing this and see if that does the trick. R

  76. I tried your fixes and still no luck πŸ™ I do have the multisite feature enabled. That seems to be a common issue with wordpress multisites and the cart not working upon my searches. Any help would be greatly appreciated. I’m lost on this one…

    1. Ouch, I wouldn’t be an expert of multisite I’m afraid!

  77. Hi Rodolfo,
    I followed your suggestion, but i still have the empty cart issue.
    Thought it might be a cache issue, but the host said there’s no cache active.
    If i am logged on as admin, there is no problem at all.
    It’s about http://www.onkruidzout.nl
    Any suggestions would be gratefull!
    Thanks Kees

    1. Ouch! If you go to Woocommerce > System Status do you see any error in red font?

    2. Do you have multisite enabled? I’m running into the same issue. It works when logged in as an admin, but getting an empty cart otherwise.

  78. Hi good day.

    I’m having similar issues.

    I’ve followed all the instructions mentioned here – http://docs.woothemes.com/document/increasing-the-wordpress-memory-limit/.

    I’ve also followed the instructions in your article.

    When I clear the cache of the browsers (Chrome and Firefox), I’m able to add a product and I can successfully remove that product.

    However, I cannot add another product the second time around. I end up with the same issue (click Add to Cart, page refreshes and no message is shown above… “you’ve successfully added XYZ”)

    Any ideas??

    Thanks. Yuri

    1. Yuri, thanks for your feedback and sorry for being late. Did you sort this out?

      1. Hi, my apologies for this late reply.

        No, I haven’t been able to sort this out. Any ideas?

        1. I’m updating this blog so I hope it can help πŸ™‚

  79. Thank you. I was about to roll up my sleeves and get to work tinkering with my theme & plugins before finding this post. You’ve saved me hours and my sanity!

    1. Thank you Jason, glad I was able to help!

  80. Thank You Mr Rodolfo, It worked. I initially had this problem when accessing the add cart on mobile but it kept on working on the browser. Then your solution made the difference. To others out there, check the add cart functionality on mobiles and ensure it works clearly.

    1. You’re welcome πŸ™‚

  81. You have to put this generated code on your root wp-config.php file.


    Hope u got solution.

  82. Hi Rodolfo

    I’m also having this issue – and it seems very sporadic by visitor and even by different browsers on the same computer.

    You can see what I’ve tried here: https://wordpress.org/support/topic/empty-cart-after-adding-products?replies=5#post-7053502

    Your solution is #10.

    Any further thoughts that I’ve not tried?

    1. Tony, do you use a cache plugin?

      1. Nope. That’s what I first thought – that something on the server was caching something?

        It’s very odd, I can be on the site in several browsers across mac/pc and some work and some don’t

        The support post on wordpress.org is up-to-date as far as this issue goes.

        1. This is weird – and I guess you disabled all plugins and themes and you still get the same problem?

          1. Yes, disabled all plugins and even tried TwentyFifteen, but the issue still cropped up.

          2. The only other thing I think might be unique to my set up is that the site is a multisite?

            1. I see on the Internet that many people like you have the same problem… sorry but I can’t help you with Multisite πŸ™‚

  83. Hoping this solves my issue with the cart!It does not happen to everyone just some of my customers. How often does this need to be done?

    1. Hopefully Kelli! I think you only need to do this when there is a major update of Woocommerce, which is not that common anyway. I hope this works for you. Also check your cache plugins and make sure they are not caching the Cart and Checkout page. Thank you πŸ™‚

  84. HI,
    Dear i am facing the same issue.
    The checkout page is empty blank,
    and i am only facing this issue on the current active theme.

    I am myself a developer too but still checking how to fix it…


    i will appreciate your help…


    1. Hey Furry thanks for your feedback πŸ™‚ I tested your checkout and it works perfectly – did you get to fix this? On a side note, I saw that on the cart page the “cart totals and checkout button” are repeated twice – that’s definitely an outdated theme or plugin.

  85. Thanks heaps mate, this problem was driving me crazy and I was about to start over from scratch. You’re a Legend!!!

    P.S You should post this on the wordpress/woocommerce forum

    1. Awesome John, and thanks a lot for your feedback πŸ™‚

  86. Thanks, this is exactly what I was looking for – was scratching my head big time over the page “no products in cart” … thought it was an issue with outdated template files because of WooCommerce upgrade …

Questions? Feedback? Support? Leave your Comment Now!

If you are writing code, please wrap it between: [php]code_here[/php]. Failure to complying with this (as well as going off topic) will result in comment deletion. You should expect a reply in about a week - this is a popular blog but I need to get paid work done first. Please consider joining #BloomerArmada to ask me 1-to-1 WooCommerce questions. Thank you :)

Your email address will not be published. Required fields are marked *