Posted on

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.

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 code?

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 delicate files - if you need more guidance, please take a look at my free WooCommerce Customization video tutorial.

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?

Check out these free videos, tutorials and tips!

  • how-to-edit-woocommerce-with-php-snippets
  • woocommerce-hooks-add_action-list-visual
  • woocommerce-customize-single-product-page-PHP
  • woocommerce-customize-shop-page-PHP
  • woocommerce-advanced-customization
  • how-to-edit-woocommerce-cart
  • woocommerce-customize-checkout-page-PHP
  • woocommerce-email-customization
  • woocommerce-conditional-logic

Rodolfo Melogli

Author, WooCommerce expert, WordCamp speaker and Internet marketer, Rodolfo Melogli has worked as a WooCommerce freelancer since 2011. He helps entrepreneurs and developers overcome their WooCommerce nightmares :) Rodolfo is the organiser of WordCamp Dublin, the Dublin WooCommerce Meetup, the Dublin Ecommerce Meetup and the Dublin WordPress Meetup. He enjoys interacting with people, travelling and chasing tennis & soccer balls. Of course, he loves pizza too.

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

  1. 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!

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

    1. Sorry to hear that ๐Ÿ™‚

  3. 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 ๐Ÿ™‚

  4. 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 ๐Ÿ™‚

  5. 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 ๐Ÿ™‚

  6. 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?

  7. 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

  8. #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.

  9. 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:

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

    1. Brilliant ๐Ÿ™‚

  11. Fix#5 I was translated text. Now working! Thanks ๐Ÿ™‚

  12. 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!

  13. 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:

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

      Hope this helps!


  14. 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.

  15. 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: Thank you in advance!

  16. 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

  17. Thanks, this solved my issue!!

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

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

  19. Not working at site ground ๐Ÿ™

    1. Have you asked their Support team for help?

  20. 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

    3. Delighted to hear that ๐Ÿ™‚

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

  22. 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

  23. OMG my cart works!!!

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

  24. 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!

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

  26. 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?

  27. 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!

  28. 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!

  29. 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!

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

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

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

    1. Glad tohe hear that Michele, thank you!

  32. 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!

  33. 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:

  34. 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?

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

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

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

    2. You really helping people. Thanks again.

  36. 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!

  37. 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 ๐Ÿ™‚

  38. […] e intenta agregar productos al carrito nuevamente. Quizรก te pueda ser รบtil ver el siguiente enlace al […]

  39. 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.

  40. 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!

  41. 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?

    2. 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?

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

  42. 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

    2. 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,

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

  43. 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?

    2. 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?

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

    4. 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(

    5. 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!

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

    7. 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

  44. 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 ๐Ÿ™‚

  45. 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: Let me know how you get on ๐Ÿ™‚

  46. 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?

  47. 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

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

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

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

    5. 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.

  48. 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?

  49. 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.

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

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

  51. 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

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

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

  53. 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.

  54. 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 ๐Ÿ™‚

  55. 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

  56. 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!

  57. 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
    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.

  58. Hi good day.

    I’m having similar issues.

    I’ve followed all the instructions mentioned here –

    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?

    2. Hi, my apologies for this late reply.

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

    3. I’m updating this blog so I hope it can help ๐Ÿ™‚

  59. 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!

  60. 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 ๐Ÿ™‚

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

    Hope u got solution.

    1. Thanks for the tip!

  62. 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:

    Your solution is #10.

    Any further thoughts that I’ve not tried?

    1. Tony, do you use a cache plugin?

    2. 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 is up-to-date as far as this issue goes.

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

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

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

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

  63. 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 ๐Ÿ™‚

  64. 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.

  65. 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 ๐Ÿ™‚

  66. 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 …

    1. Cool, glad it helped!

Questions? Feedback? Support? Leave your Comment Now!
If you're writing code, please wrap it between: [php] code_here [/php]

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.