WooCommerce Cart Not Updating
Ibrahim Monir
Full-Stack Developer

WooCommerce cart not updating? It is almost always caching or a JavaScript/AJAX conflict. Here is how to fix it — exclude cart pages from caching, clear caches, and find the script conflict.
A customer clicks "Add to Cart," and… nothing. The cart count stays at zero, the quantity won't change, or the totals don't refresh until they reload the page. A WooCommerce cart that won't update quietly kills sales — shoppers assume the store is broken and leave. The cause is almost always caching or a JavaScript conflict, and it's very fixable. Here's how I diagnose and solve it.
Quick answer: A WooCommerce cart that won't update is nearly always caused by caching the cart page or an AJAX/JavaScript conflict. Fix it by excluding the Cart, Checkout, and My Account pages from all caching, clearing every cache (plugin, server, CDN), and disabling the plugin or theme script that's breaking WooCommerce's AJAX. Enabling "AJAX add to cart" correctly usually seals it.
Why won't the WooCommerce cart update?
WooCommerce updates the cart dynamically with AJAX — it changes quantities and totals without a full page reload. Anything that interferes with that live request breaks the cart. The usual causes are:
- Caching the cart — a cached (frozen) copy of the cart/checkout page is being served.
- A JavaScript conflict — another plugin or the theme throws a JS error that stops WooCommerce's AJAX.
- Aggressive optimization — minifying, combining, or deferring the wrong scripts breaks cart functionality.
- A theme that isn't WooCommerce-compatible or is missing cart fragment support.
- CDN or server caching ignoring WooCommerce's "don't cache" cookies.
Step 1: Exclude cart pages from caching (the #1 fix)
This solves the majority of cases. WooCommerce's dynamic pages must never be cached. In your caching plugin (WP Rocket, LiteSpeed, W3 Total Cache, etc.), add these to the "never cache" / cache exclusion list:
- Cart
- Checkout
- My Account
Most caching plugins with WooCommerce support do this automatically — but verify it, because a misconfiguration here is the number one cause of a stuck cart. Also make sure caching respects the woocommerce_items_in_cart and woocommerce_cart_hash cookies.
Step 2: Clear every cache
After excluding the pages, purge all caches so the frozen version stops being served:
- Your caching plugin's cache.
- Your host/server cache (many managed WordPress hosts cache at server level).
- Your CDN cache (Cloudflare, etc.) — and make sure Cloudflare isn't caching the cart via a page rule.
- Your browser — hard refresh to be sure.
Test in an incognito window so you're seeing a fresh, uncached experience like a real customer.
Step 3: Check "AJAX add to cart" settings
Go to WooCommerce → Settings → Products and review the two AJAX options:
- "Enable AJAX add to cart buttons on archives" — lets shoppers add from shop/category pages without a reload.
- "Redirect to the cart page after successful addition" — if AJAX is misbehaving, temporarily enabling redirect confirms whether the item is actually being added (isolating an AJAX issue from a cart-storage issue).
If items add fine with redirect on but not with AJAX, you've confirmed the problem is a script conflict — move to Step 4.
Step 4: Find the plugin or script conflict
A JavaScript error from another plugin can stop WooCommerce's cart scripts cold. To find it:
- Open your browser's developer console (F12) and watch for red JavaScript errors when you click "Add to Cart." The error usually names the guilty file/plugin.
- Deactivate plugins one by one (especially other AJAX, cart, or optimization plugins), testing the cart after each.
- In your optimization plugin, turn off minify/combine JavaScript and defer/delay JS for WooCommerce scripts — over-aggressive JS optimization is a classic cart-breaker.
Step 5: Test with a default theme
If plugins aren't the cause, your theme might be. Temporarily switch to a default theme like Storefront (WooCommerce's own theme) or Twenty Twenty-Four. If the cart works there, your theme is missing proper WooCommerce support or its cart fragments — contact the theme developer or add the missing AJAX fragment support.
Quick diagnosis table
| Symptom | Most likely cause & fix |
|---|---|
| Cart count doesn't change | Cached cart page — exclude from caching & purge |
| Totals update only after reload | AJAX/cart fragments blocked — check JS console |
| Quantity won't update | JS conflict — deactivate plugins one by one |
| Broke after enabling optimization | Disable JS minify/combine/defer for WooCommerce |
| Works on default theme only | Theme missing WooCommerce cart fragments |
Don't forget the basics
- Update WooCommerce, your theme, and plugins — the bug may already be patched.
- Confirm your theme declares WooCommerce support and includes cart fragments.
- Check your SSL/site URL settings — mixed content (http vs https) can block AJAX requests.
- Regenerate WooCommerce pages if the Cart/Checkout pages were deleted or reassigned.
Frequently asked questions
Why is my WooCommerce cart not updating?
The most common reasons are caching the cart page and JavaScript conflicts that block WooCommerce's AJAX. A cached copy of the cart shows stale totals, while a JS error from another plugin or aggressive optimization stops the cart from refreshing live. Excluding cart pages from caching and finding the script conflict fixes almost all cases.
Why does my cart only update after refreshing the page?
If the cart updates only on reload, WooCommerce's AJAX "cart fragments" are being blocked — usually by a caching layer serving a static page, or by minified/deferred JavaScript breaking the fragment request. Exclude the cart from caching and stop optimizing WooCommerce's cart scripts.
Should I cache the WooCommerce cart page?
No. The Cart, Checkout, and My Account pages are dynamic and personal to each visitor, so they should never be cached. Add them to your caching plugin's exclusion list; most WooCommerce-aware caching plugins do this automatically, but you should always verify.
How do I fix an "add to cart" button that does nothing?
Open your browser console (F12) and click the button — a red JavaScript error will usually name the conflicting plugin or script. Deactivate that plugin, and turn off JS minify/combine/defer for WooCommerce scripts in your optimization plugin. Test with a default theme to rule out theme issues.
Final thought
A WooCommerce cart that won't update is frustrating but rarely serious. In almost every case it comes down to caching the cart or a JavaScript conflict. Exclude the Cart, Checkout, and My Account pages from caching, purge every cache, check the browser console for JS errors, and dial back aggressive script optimization. Do that and your "Add to Cart" button will spring back to life — and stop leaking sales.
Cart still stuck and costing you orders? Get in touch and I'll fix your WooCommerce cart fast so customers can actually check out.


