Skip to content
Hire Me Login
WOOCOMMERCE MOBILE

WooCommerce Cart Not Showing on Mobile? Bring It Back for Every Shopper

On desktop the cart works. On a phone the cart icon disappears, the cart page says “Your cart is currently empty”, or the page loads blank. Here’s how to find the real cause and fix it without breaking the rest of your store.

By Md Juwel Rana, WordPress & WooCommerce Developer · Last updated · 12 min read

“WooCommerce cart not showing on mobile” covers a few related problems: the cart icon is missing from the mobile header, the mini cart count doesn’t update, the cart page is empty even after a product was added, or the cart page loads broken or blank on a phone while desktop looks fine. They all end the same way: shoppers can’t see what they’re buying, so they leave.

I’m Md Juwel Rana, a WordPress and WooCommerce developer at Web Relife with more than 10 years of experience. When I’m asked to fix a WooCommerce cart not showing on mobile, the cause is almost never WooCommerce itself. It’s usually a header setting that hides the cart on small screens, a cache serving the wrong copy of the page to phones, or a cookie the phone’s browser won’t keep. This guide walks through each one in the order I check them.

Why Is My WooCommerce Cart Not Showing on Mobile?

Short answer: A WooCommerce cart not showing on mobile is usually caused by a header or Elementor element set to hide on mobile, page caching that serves a cached (empty) cart to phones, the cart fragments script no longer loading since WooCommerce 7.8, session cookies blocked by a www/non-www or HTTPS mismatch, JavaScript delay or minify settings, or CSS that hides or overflows the cart on small screens. Test in a private window first, then check the header, the cache and cookies.

Phones get treated differently in more places than people expect. Many caching plugins build a separate mobile cache. Themes and page builders have separate mobile headers. Safari on iPhone is stricter about cookies. So a store can look perfect on a laptop and still lose its cart on mobile.

KEY TAKEAWAYS
  • Find out which symptom you have first; each one has a different cause.
  • Never cache the cart, checkout or My Account pages, including in the mobile cache.
  • Exclude WooCommerce cookies from caching so phones don’t get someone else’s cart.
  • Since WooCommerce 7.8, cart fragments only load where the classic Cart widget is used.
  • Use one site address (www or not, always HTTPS) so the session cookie isn’t lost.
WooCommerce cart not showing on mobile - cart icon and items missing on a phone
The cart badge disappears and the cart page says it’s empty, but only on phones.

What Exactly Do Your Mobile Shoppers See?

Pick the symptom that matches your store. You’ll get the steps to start with.

On a phone, the shopper sees…

What Causes the WooCommerce Cart Not Showing on Mobile?

CauseTypical signFix
Header element hidden on mobileIcon visible on desktop, gone on phonesStep 2
Cart page in the page cache or mobile cacheEmpty cart, or another visitor’s itemsStep 3
Cart fragments not loadingCount updates only after a reloadStep 4
Session cookie lostCart empties when moving between pagesStep 5
CDN or Cloudflare caching HTMLWorks when you bypass the CDNStep 6
JavaScript delay, combine or deferMini cart won’t open until you scroll or tapStep 7
Wrong cart page or builder widgetBlank cart page on mobileStep 8
Mobile CSS hiding or overflowingCart table cut off or invisibleStep 9
Plugin or theme conflictStarted after an updateStep 10

How Do I Fix WooCommerce Cart Not Showing on Mobile?

Back up your site before changing cache, theme or code settings, and try code changes on a staging copy first. Then work through these steps. The first three solve most cases of WooCommerce cart not showing on mobile.

1

Confirm the problem in a private window

Open your store on a phone in a private or incognito tab, on mobile data rather than Wi-Fi. Add a product and open the cart. Then do the same on desktop in a private window. If it only fails while you’re logged out, caching is the likely cause. If it fails on every phone, it’s the site, not the device.

2

Check the mobile header and visibility settings

Most themes have a separate mobile header. In Astra, Kadence, Blocksy or OceanWP, open the header builder, switch to the mobile view and make sure the Cart element is placed in a row. In Elementor, select the Menu Cart widget, go to Advanced > Responsive and check that “Hide on Mobile” is off, and check that its parent section isn’t hidden either. Theme Builder headers often have a separate mobile section that simply has no cart in it.

3

Exclude cart pages and WooCommerce cookies from cache

WooCommerce’s caching guide says the Cart, Checkout and My Account pages must stay dynamic because they show data for one customer. Exclude those URLs, and exclude the cookies woocommerce_items_in_cart, woocommerce_cart_hash and wp_woocommerce_session_. If your cache plugin has a “separate cache for mobile” option, check the exclusions apply there too, then clear all caches.

4

Restore cart fragments for the mini cart

Since WooCommerce 7.8, the cart fragments script is no longer loaded on every page by default, according to WooCommerce’s cart fragments guidance. Header carts built by some themes or Elementor that relied on it stop updating, so the count stays at 0. The cleanest fix is switching to the Mini-Cart block or updating your theme. If you need the old behavior, enqueue it in a child theme or a snippets plugin:

add_action( 'wp_enqueue_scripts', function () {
    wp_enqueue_script( 'wc-cart-fragments' );
} );

Also check you don’t have a “disable cart fragments” option switched on in WP Rocket, Perfmatters or your theme.

5

Fix the session cookie

WooCommerce links a shopper to their cart with the wp_woocommerce_session_ cookie. If the phone visits example.com and is sent to www.example.com, or switches between HTTP and HTTPS, that cookie may not follow, and the cart looks empty. Make sure Settings > General uses one address with https, redirect every other version to it, and check that your CDN or a security plugin doesn’t strip Set-Cookie headers.

6

Bypass CDN and server cache for the cart

Cloudflare APO, “Cache Everything” rules, LiteSpeed, Varnish or host-level caches can cache the cart page even when your plugin doesn’t. Add a bypass rule for /cart, /checkout and /my-account, and for requests that carry WooCommerce cookies. Turn off Rocket Loader as a test, since it changes how scripts load.

7

Exclude cart scripts from JavaScript optimization

“Delay JavaScript execution”, combine and defer settings often apply more aggressively to mobile. The mini cart then won’t open until the user scrolls or taps twice. Exclude jquery, wc-cart-fragments, woocommerce and your theme’s cart script from delay and combine, or turn delay off on cart and checkout pages.

8

Check the cart page itself

In WooCommerce > Settings > Advanced, confirm the right page is set as the Cart page. That page should contain the Cart block or the [woocommerce_cart] shortcode. If you built it with Elementor’s Cart widget, open it in the mobile view of the editor and check for hidden sections. A blank cart page with only the header usually means a builder template with nothing visible on mobile, or a PHP error in the cart template.

9

Look for mobile CSS that hides or breaks the cart

Custom CSS inside a @media (max-width: 768px) rule can hide the cart with display: none or push the table off screen. On your phone or in Chrome DevTools device mode, inspect the cart and look for hidden elements or a table wider than the screen. Wrap wide tables so they scroll instead of pushing the page sideways.

10

Test for plugin and theme conflicts

On a staging copy, or with the Health Check & Troubleshooting plugin so only you are affected, switch to Storefront and disable everything except WooCommerce. If the cart now works on mobile, re-enable plugins one at a time. Side carts, currency switchers, AMP, mobile app and “fly to cart” plugins are the usual suspects.

Losing mobile sales right now? I’ll find why your WooCommerce cart isn’t showing on mobile and fix it on a staging copy first, so nothing else on your store breaks.

Fix my mobile cart

Which Cache and Cookie Settings Stop the Cart Showing on Mobile?

Short answer: Exclude /cart/, /checkout/ and /my-account/ from page caching (including any separate mobile cache and your CDN), and exclude the woocommerce_items_in_cart, woocommerce_cart_hash and wp_woocommerce_session_ cookies so a page with an active cart is never served from cache.

WooCommerce works natively with WP Super Cache and asks it not to cache the cart, checkout and account pages. Other tools need you to check this yourself, and a missed exclusion is the most common reason for a WooCommerce cart not showing on mobile. Here’s where to look in common setups:

Newer WooCommerce versions also clear empty guest sessions to improve caching, which is good for speed. But it makes correct cookie exclusions even more important once something is in the cart.

How Do I Test the WooCommerce Cart on a Real Phone?

Emulators miss cookie and cache problems, so the only reliable way to confirm a WooCommerce cart not showing on mobile is fixed is to test on real devices after every change:

  1. Clear your plugin, server and CDN caches.
  2. On an iPhone (Safari) and an Android phone (Chrome), open a private tab on mobile data.
  3. Add two products, check the header count, open the mini cart, then open the cart page.
  4. Go back to a product page and return to the cart to make sure the items stay.
  5. Continue to checkout. If checkout fails on phones too, see my guide to WooCommerce checkout not working on mobile.

If the cart shows but shipping options don’t, that’s a separate issue covered in WooCommerce shipping not showing on the cart page. And if the checkout page hangs instead, read WooCommerce checkout not loading.

Who Fixes WooCommerce Cart Not Showing on Mobile?

Web Relife, run by Md Juwel Rana, fixes WooCommerce cart not showing on mobile for US stores: mobile header carts, Elementor and theme builder issues, cache and CDN rules, session cookies, cart fragments and plugin conflicts. Every fix is tested on real phones and done with a backup first.

Send your store URL and what shoppers see through the Hire Me page or WhatsApp.

WooCommerce Cart Not Showing on Mobile: FAQ

Why does my cart work on desktop but not on mobile?

Phones often get a separate cached copy of the page, a separate mobile header, and stricter cookie handling in Safari. Check the mobile header settings, cache exclusions and your site address.

Why is the cart icon missing from my mobile header?

The cart element is usually hidden on mobile in Elementor’s Responsive settings or not added to the mobile row in your theme’s header builder.

Why does the cart count stay at zero on mobile?

Since WooCommerce 7.8, cart fragments only load where the classic Cart widget is used, and JavaScript delay settings can block it. Switch to the Mini-Cart block, update your theme, or enqueue wc-cart-fragments.

Why does the cart page say my cart is empty on mobile?

The cart page is being served from cache, or the session cookie is lost because of a www or HTTPS mismatch. Exclude cart pages and WooCommerce cookies from every cache layer.

Can Cloudflare cause the WooCommerce cart to disappear?

Yes. If HTML is cached with APO or a Cache Everything rule and cart pages or WooCommerce cookies aren’t bypassed, shoppers can see an empty or wrong cart.

Does the cart block fix mobile cart problems?

The Cart and Mini-Cart blocks avoid the old cart fragments request and work well on phones, but they won’t fix caching, cookie or header visibility issues.

How long does it take to fix?

Header and cache settings usually take under an hour. Conflicts with custom themes or server caching can take a few hours to trace and test.

Get Your Mobile Cart Working Again

I’m a WordPress and WooCommerce developer with 10+ years of experience. I’ll find why your cart is hidden or empty on phones and fix it safely:

  • Mobile header, Elementor and theme builder cart fixes
  • Cache, CDN and Cloudflare rules for WooCommerce
  • Session cookie, domain and HTTPS problems
  • Cart fragments, JavaScript optimization and plugin conflicts, tested on real phones

Sources

JR
Md Juwel Rana is a full stack WordPress and WooCommerce developer at Web Relife with over 10 years of experience. He fixes WooCommerce cart, checkout, payment and email problems, and repairs and secures WordPress stores for US businesses. Need a hand? Hire me here.