On this page
What this issue is
Many Shopify apps add JavaScript or theme code to your storefront: upsells, bundles, reviews, currency switchers, popups, sticky carts, page builders. Two scripts can clash. One may throw an error that stops other scripts, replace the theme's add-to-cart handler, or place an invisible layer over the button.
- Product pageLoads normally
- Add to cart clickApp script errors or blocks the button
- CartNever receives the item
- CheckoutNever reached
- Purchase trackingNo event sent to ad platforms
The break happens at the add-to-cart click, so every later step is lost.
Why it costs you leads or sales
Example: illustrative numbers for a store whose add-to-cart breaks after an app update on day 3 and is fixed on day 8.
How to check if your site has it
Test in a private window
Open a private or incognito window so extensions and your logged-in state do not interfere. Visit several products, including variants, and click Add to cart.
Test on mobile and desktop
Some conflicts only affect a browser or screen size, for example a sticky add-to-cart bar on mobile.
Open the browser console
Press F12 (Cmd+Option+J on Mac), choose Console, then click the button. Red errors that mention an app's file name point to a likely culprit.
Check the Network tab
Filter by 'cart'. A healthy click sends a request to /cart/add.js or /cart/add. No request, or a 4xx or 5xx response, means the click is blocked or the request fails.
Check what sits on top of the button
Right-click the button and choose Inspect. If another element receives the click, a popup, overlay or app widget is covering it.
An app widget or overlay sits on top of the add-to-cart button, so clicks never reach it.
How to fix it
Duplicate your themeShopify
In Shopify admin go to Online Store > Themes, open the menu next to your live theme and choose Duplicate. Preview the copy.
Turn off app embedsShopify
In the duplicate, open Customize > App embeds (the plug icon) and switch embeds off one at a time. Test add-to-cart after each change.
Check app blocks and theme codeShopify
Remove app blocks from the product page template. For older apps that edited theme files, look for app snippets in theme.liquid and product templates under Edit code.
Confirm the culprit
When add-to-cart works again, the last thing you switched off is the cause. Check whether two apps do the same job, such as two upsell or two cart drawer apps.
Fix, replace or remove
Check the app's settings for a cart or theme compatibility option, update it, and contact its support with the console error. If there is no fix, remove it or replace it with a compatible app.
Publish the fixed version
Once the duplicate passes tests, publish it, or repeat the same change on the live theme.
How to confirm it's fixed
- Add to cart works on at least three products, including one with variants
- Cart count and cart drawer or page update straight away
- Works on desktop and a real phone
- Works in Chrome and Safari
- No red app-related errors in the console on click
- Checkout button leads to checkout
- add_to_cart and begin_checkout events appear in GA4 DebugView or your pixel helper
How to prevent it happening again
- Test every new app in a duplicate theme before enabling it on the live theme
- Install one app at a time and test add-to-cart after each
- Avoid running two apps that do the same job
- Retest after app updates and theme updates
- Remove unused apps and clean leftover code
- Keep a short log of what was installed or changed and when
- Run an automated add-to-cart check on a schedule
How FunnelGuard handles this
Frequently asked questions
Questions people ask
Why is my Shopify add to cart button not working?
The most common causes are an app script error, two apps fighting over the cart, an overlay covering the button, or a broken theme edit. Open the browser console and click the button to see which file throws an error. Then test in a duplicate theme with app embeds turned off one by one.
How do I find which Shopify app is breaking add to cart?
Duplicate your theme, then switch off app embeds in Customize > App embeds one at a time and test after each. Also remove app blocks from the product template. The change that restores add-to-cart points to the culprit.
Can a Shopify app update break my add to cart button?
Yes. Apps can update their scripts automatically, which may clash with your theme or other apps without any change on your side. If add-to-cart stopped working with no edits from you, check recent app updates first.
Why does add to cart work for me but not for customers?
The problem may only affect certain browsers, devices, variants or markets, or you may be testing logged in or with cached data. Test in a private window, on a real phone, and in Safari as well as Chrome.
Does uninstalling an app remove its code from my theme?
Not always. Some apps leave snippets or script tags in your theme files, which can keep throwing errors. Search the theme code for the app's name and remove leftovers, or ask the developer for cleanup steps.
How can I be alerted when add to cart breaks on Shopify?
Use automated monitoring that runs the add-to-cart journey on a schedule. FunnelGuard does this with a robot visitor, re-checks a failure from a second region, then sends one alert with a screenshot and a likely cause.
Will a broken add to cart affect my ad tracking?
Yes. If shoppers cannot add items, add-to-cart, checkout and purchase events never fire, so GA4, Google Ads and Meta get less data to work with.
Related issues
- OPS-265Theme published with missing tracking or broken cartFix guide
- OPS-267Uninstalled app leaves broken script tagsFix guide
- OPS-268Checkout extensibility migration dropping pixelsFix guide
- OPS-269Customer events (web pixels) misconfiguredFix guide
- OPS-276Duplicate pixel via app + manual codeFix guide
- OPS-270Store password page enabledFix guide