

WooCommerce add to cart not working is one of the quietest failures in a store. The customer has found the product, made a choice, and pressed Add to cart. If nothing happens, the sale ends before your checkout can help. These failures often hide from store owners because they may affect a logged-out browser, one product type, or a cached page version an admin never receives.
Treat the symptom as evidence. A short, structured check usually points to the right layer before you change a single setting.
Resist the urge to disable plugins at random. First describe exactly what the shopper sees, because each version of this problem leaves a different trail.
How an add to cart failure presents itself
A quick symptom-to-cause guide
| What the shopper sees | Likely explanation | Cause |
|---|---|---|
| No spinner, no reload, no response | A script error prevents the handler from running | 1 |
| Spinner runs, cart count remains at zero | The background request fails or its response is cached | 2 |
| Item appears, cart is empty on the next page | The session does not persist | 3 |
| Only variable products fail | Incomplete variation data | 4 |
| Button replaced by a notice or a link | Product is not purchasable | 5 |
| Button missing from some product layouts | A theme template override | 6 |
| It worked yesterday, no one edited the store | An automatic update or changed integration | 7 |
WooCommerce needs front-end JavaScript to handle many add to cart interactions. If another script fails early enough, the button still looks normal but never receives a working click handler. It is a familiar scene: the product page looks polished, the hover state works, and the purchase action has quietly stopped.
Check the console before you touch settings:
The offending script does not have to belong to WooCommerce. A slider, review widget, consent tool, or product enhancement can stop code that loads after it. That is why the eventual fix often lives in a plugin that appears unrelated to the cart.
Check optimization settings early
On archive pages, AJAX add to cart can send a background request and update the cart without a reload. That is convenient until a cache treats part of the exchange as reusable. When add to cart AJAX is not working, the page may look as if it accepted the click while the request or its response never behaves like a personal cart action.
Cart fragments are a common pressure point. WooCommerce refreshes cart details through a separate request. If that request is blocked or its response is stale, the count can remain unchanged. Verify the cart page too, because a stale header count and a genuinely empty cart are different failures.
Exclude cart, checkout, and account pages from every layer you run:
Review exclusions for cart, checkout, and account pages at every layer. The same caching pattern can also break checkout after an update, so read our guide to a checkout broken after an update when cart symptoms appear alongside checkout failures.
When an item appears and later vanishes, the initial add may have worked. The failure is often the session that should carry the cart across pages. WooCommerce associates that session with cookies, so a misplaced cache rule, cookie restriction, or inconsistent origin can make a real cart look empty after navigation.
Test this as a shopper, not as an admin. Add a product, browse two other pages, then open the cart. That small detour forces the session to survive the kind of navigation a real customer makes.
If simple products work while variable products do not, pause the script hunt. The product configuration is the more likely place to look.
A variation was not fully saved
A variable product needs a saved variation that matches the selected attributes, and that variation needs the data WooCommerce requires to sell it, including a price. If the selected variation is not purchasable, the button may remain disabled. Bulk edits and CSV imports are worth checking because the parent product can still look complete in the product list.
Renamed attributes can create the same symptom. If a term was deleted and recreated, the visible choice may no longer resolve to the stored variation.
The selection never completes
Sometimes the button is behaving exactly as the stock rules require. The useful question is whether those rules match the buying experience you intended.
Stock state to button behavior
| Stock state | What the customer gets |
|---|---|
| In stock | Normal add to cart button |
| Out of stock | Button replaced by an out of stock notice |
| Backorders allowed | Button works, with a backorder note |
| Backorders off, stock at zero | No usable button |
| Sold individually, item already in cart | Quantity capped or button blocked |
Check stock at variation level, not only on the parent. A parent product can show as in stock while the specific variation a shopper selected is unavailable. To the shopper, that distinction can look exactly like a broken button.
Themes can override WooCommerce templates by copying them into the theme. When WooCommerce changes a template and the copied version is no longer compatible, the button can lose markup, its form, or the hook that outputs it. Page builders create a similar outcome in another way: a custom product layout can simply omit the add to cart element with no visible error.
Confirm it in this order:
While you are there, check where the button sends shoppers. If it redirects to the cart when you expected them to stay on the page, review the redirect to cart setting in WooCommerce. A redirect can look like a dead button when shoppers land somewhere unexpected. After you change that behavior, test your WooCommerce checkout end to end so the full path still completes.
When the button broke overnight and nobody knowingly changed the store, look for an automatic update or an external configuration change.
Isolate the issue on staging: use a default theme, deactivate plugins, then restore them in small groups until the button fails again. It is methodical work, but it gives you a defensible answer instead of a guess. If the failure began after a release, the process in our guide to a checkout broken after an update applies here too.
Do not bypass purchasable checks
Add to cart sits at the first committed step in the buying path. A payment failure affects shoppers who reached checkout. An add to cart failure can affect every shopper who reached a product page. That wider reach is what makes a small-looking button failure commercially serious.
Cost comparison of a broken checkout versus a broken add to cart button
Analytics can make this failure hard to spot. Sessions may still arrive, bounce rate may rise gradually, and revenue can fall without a failed-payment trail. From the server’s point of view, the customer may never have submitted a purchase attempt at all.
That is the uncomfortable part. Shoppers who cannot add a product rarely open a support ticket. They usually try another store.
A manual test proves the store worked at one moment. It does not cover the morning after an automatic plugin update, a revised cache rule, or a theme deployment.
Our walkthrough for how to test your checkout end to end covers the manual pass and is worth using after every update. It cannot run itself before the day’s first customer arrives.
ShopMonitor covers that browser path on a schedule. It opens a product page, clicks Add to cart, verifies the item is in the cart, and continues through checkout to the order-received page. If a step fails, the browser test fails and ShopMonitor alerts you. It verifies the browser checkout and thank-you path, not whether a confirmation message reached an inbox. Inbox delivery needs a separate check.
ShopMonitor runs scheduled browser checkout and form tests and alerts you when a path breaks. No code changes. No plugins. Set up a first test in about five minutes.
No credit card required.

About the author
Written by the team at Winning Solutions, the agency behind ShopMonitor. We help WooCommerce teams investigate broken buying paths, then verify the browser purchase flow from product page to thank-you page.