Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Shopify add-to-cart button not working: app conflict fix

OPS-266High impactDetectedBy FunnelGuardPublished Updated
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.

Where an app conflict breaks the purchase path
  1. Product pageLoads normally
  2. Add to cart clickApp script errors or blocks the button
  3. CartNever receives the item
  4. CheckoutNever reached
  5. 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

Orders per day around an app conflictExample numbers
Orders per day around an app conflict (example)Day 1: 24 orders; Day 2: 26 orders; Day 3: 12 orders; Day 5: 3 orders; Day 7: 2 orders; Day 9: 25 orders010202426123225Day 1Day 2Day 3Day 5Day 7Day 9orders

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 add-to-cart yourself
  1. 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.

  2. Test on mobile and desktop

    Some conflicts only affect a browser or screen size, for example a sticky add-to-cart bar on mobile.

  3. 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.

  4. 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.

  5. 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.

A button that cannot be clicked

An app widget or overlay sits on top of the add-to-cart button, so clicks never reach it.

How to fix it

Find and fix the conflicting app
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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

Confirmation checklist
  • 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

Prevention habits
  • 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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.