Shopify add to cart not working? Here's what to check
An add to cart button that does nothing rarely shows up as an error in your admin. It shows up as a lower conversion rate. Here are the usual causes on Shopify and how to track down which one you have.
Start free trial →14-day free trial. Installs in one click from the Shopify App Store.
First, reproduce it
Try the product page on a phone, in a private window, on more than one browser. Many add to cart failures only happen on one browser, one device, or for one variant.
Common causes
- A JavaScript error earlier on the page. If a script crashes before the cart code runs, the button can stop working entirely. Check the browser console for red errors.
- App conflicts. Upsell, bundle, subscription and cart drawer apps often hook into the same add to cart event. Two of them can interfere.
- A theme update. Updates can change the markup your apps rely on. If it broke right after an update, start there.
- Variant problems. A variant that is unavailable, or a product form missing the variant ID, makes the cart request fail.
- A failed request. In the Network tab, look for the request to /cart/add. A 4xx or 5xx response tells you the cart rejected it.
How to narrow it down
- Preview your theme with apps disabled where possible and see if the button works.
- Re-enable apps one at a time.
- Compare against the previous theme version if the problem started after an update.
Why you might not know it's broken
Shoppers rarely report it. They tap, nothing happens, they leave. Your analytics records a visit without an add to cart, which looks like someone who wasn't interested.
Bloodhound captures JavaScript errors and failed cart requests on every real visit and ranks them by the revenue they are likely costing, so a broken add to cart shows up at the top.
Catch it on every visit
Bloodhound monitors real shoppers for errors and slowdowns, ranked by revenue. 14-day free trial.
Start free trial →14-day free trial. Installs in one click from the Shopify App Store.