Shopify add to cart not working? Find the cause.

When the button does nothing, an app or a piece of code is usually in the way. Here is how to find which one, step by step.

CheckoutLeak teamUpdated 14 NOV 20266 min read
Product page · this weekFailing

Add to cart pressed1,284

Reached the cart1,202

Never reached the cart82

LikelyTwo cart drawer apps on the same button

Sample store

In short

  • A silent add-to-cart failure is usually two apps controlling the same button, a script error from another app, or code left behind by a removed app.
  • The browser console and a clean copy of your theme tell you quickly whether an app or your theme is the cause.
  • Turn off app embeds one at a time on a duplicate theme until the button works, then send the app’s developer the error.

A broken add-to-cart button is one of the most expensive problems a store can have, and one of the quietest. Shoppers don’t report it. They press the button, nothing happens, and they leave. It often affects only some devices, products or themes, so it can run for days before anyone notices.

Common causes

  • Two apps controlling the same button. Cart drawers, upsells, bundles, pre-orders and subscriptions often all hook into the add-to-cart button. When two do it at once, one cancels the other.
  • A script error from another app. One app’s error can stop the theme’s own scripts, so the button still shows but does nothing.
  • A theme update. An app written for the old theme code can break when the product form changes.
  • Leftover code. An uninstalled app can leave snippets in your theme that still load, or still try to change the cart.
  • Custom edits. Changes to the product form or variant picker can stop the correct variant from being sent.

How to find the cause

Reproduce it

Try the product in a private window on a phone and on a computer. Note which products, variants and devices fail.

Read the console

On a computer, open the browser’s developer tools (F12), go to Console, and press the button. A red error often names the app’s script or domain.

Compare with a clean theme

Preview a fresh copy of your theme from the Shopify theme store. If add to cart works there, the cause is an app or an edit in your live theme.

Turn off app embeds one at a time

In a duplicate of your theme, open the theme editor, go to App embeds, switch one off, and test in preview. Repeat until the button works. Online Store›Themes›Customize›App embeds

Check what changed recently

New apps, app updates and theme updates from the days before it broke are the first suspects.

Look for leftover code

Search theme.liquid and your snippets for the names of apps you’ve removed.

How to fix it

  • Send the app’s developer the console error, the product link and the device. A precise report gets fixed far faster.
  • If two apps do the same job, like two cart drawers, keep one.
  • Remove code left behind by uninstalled apps, after backing up the theme.
  • Update the theme and the apps that hook into the product form together, and test before publishing.

Know if it breaks again

Testing once doesn’t tell you how often it fails for real shoppers. The best sign is the gap between add-to-cart presses and items that actually reach the cart. A sudden fall in your add-to-cart rate after an app or theme change is worth checking straight away.

How CheckoutLeak will help

Store code and apps checks are coming soon to CheckoutLeak. They will record add-to-cart presses that never reach the cart on real visits, name the likely app with an honest confidence label, and suggest the fix. Some fixes, like a safety net for add to cart, will run in one click and undo the same way. See store code and apps.

Questions

Why does add to cart work on desktop but not on mobile?
Mobile often loads a different cart drawer, sticky bar or pop-up. Test with the same product on a phone and check which apps show only there.
Will uninstalling an app fix it?
Not always. Some apps leave code in your theme after you uninstall them. Search your theme for the app’s name and remove what’s left, after a backup.
How do I know how many shoppers it affected?
Compare add-to-cart presses with items that reached the cart. A sudden drop in your add-to-cart rate after an app or theme change is the clearest sign.

Keep reading

All guides →

CheckoutLeak

Find the leaks. Keep what you earn.

Scans only read, and the Free plan needs no card.