Shopify helpStorefront

Why is my Shopify Add to cart button not working?

Quick answer

Select an available size or color, tap Add to cart once, then open the full cart. If the right item is there, check the drawer or confirmation. If the cart is empty, compare the same variant in a clean theme preview.

In this guide

Did the item reach the cart?

What one click tells you
Full cart after one clickNext check
Correct variant and quantityThe add succeeded. Check the drawer, header count or success message that failed to update.
Empty and the button keeps spinningRepeat on a second available product, then compare theme previews.
Different size or colorRepeat from the initial page load and note the option change that selected the wrong variant.
A sold-out or quantity messageCheck the requested variant and available stock before investigating the button.

Start with an empty cart in a private window. Choose one available size or color and quantity one. After clicking the button once, open the store’s full cart page in the same tab. If the header icon only opens the drawer, use the storefront’s cart URL, usually /cart on the same domain. Keep the same language and market. A new private session would give you a different cart.

Buy it now goes straight to checkout. A successful test with that button can tell you that the product reaches checkout, but it skips the cart interaction your shopper reported.

Sources for this section (3)

Test the exact variant and the button the shopper used

Record the product URL, the option the shopper selected and the button they tapped. A product-page button, a sticky mobile button and Quick add on a collection are different controls. If the product page fails, try the same variant and quantity through Quick add if your theme offers it.

For example, the default small shirt goes into the cart. After switching to medium, the drawer still shows small. Remove it, select medium again and check the full cart. If small appears there too, give the theme or product-options app developer the exact size sequence. If medium appears in the cart and small appears only in the drawer, report the drawer mismatch instead.

Sources for this section (2)

Compare a clean theme preview without changing the live store

  1. In Online Store → Themes, add a fresh copy of your theme or a free Shopify theme to the theme library. Use its menu to open Preview. Keep your current live theme published.
  2. In the preview, open the same product, select the same option, click once and inspect the full cart. If this version works, focus on differences in the affected theme, including its custom sections and app integrations.
  3. Duplicate the affected theme and open the duplicate in the theme editor. If the issue followed a cart or product-options app change, test its block or App embeds switch in that duplicate. Change one setting, save the draft and repeat. If all themes fail, include that result when you check product settings or contact support.

Use the same storefront language, item and option in both versions. A duplicate of your live theme keeps its customizations, so it is a useful place to try a change. A freshly added, uncustomized theme gives you a separate baseline.

Sources for this section (4)

If the button only fails on mobile or in the shopping app’s browser

Open the same product link on the affected phone and select the reported variant. Tap the button in the same place as the shopper. A sticky banner, a consent prompt or a product-options panel can cover part of the button at one screen size. Dismiss the panel if possible and test the same spot again. Then open the link in the phone’s regular browser and repeat it.

If one browser fails, record its name and version and whether a private window changes the result. If the same phone fails on both browsers but the desktop works, include a recording from variant selection through the tap. A desktop-sized theme preview alone can miss that interaction.

Sources for this section (1)

Confirm that one tap adds one correct item

Empty the test cart and repeat the original failing action. One tap should show the expected confirmation and add exactly one unit of the selected variant. Reload the full cart and check its size, quantity and price. Repeat with a second option and on the device that first failed. You can stop at the cart.

If the failure persists, send the product link, device, variant, theme name and the full-cart result to the team responsible for the part that failed. “Medium reaches the cart, but the drawer stays empty on iPhone” gives them a reproducible starting point.

Sources for this section (1)