Z O B A E R

Loading

Guide Shopify guide

Shopify Add to Cart Button Not Working: 11 Causes + Fixes

Every reason the Shopify add to cart button stops working, shows Sold out or disappears, with Dawn and Horizon fixes and a simple test routine.
Zobaer Hossain
Zobaer H.Shopify Select Partner · 10+ years
Shopify add to cart button not working: 11 causes and fixes, troubleshooting guide by Zobaer H.

Shopify add to cart button not working? A shopper picks a size, taps the button, and nothing happens. Or the button says Sold out when you know you have stock. Or there is no button at all. Every one of those clicks is a lost sale, so it is worth fixing today.

I have fixed this on many client stores. Usually the cause is one setting on the product or in the theme, not a Shopify bug. This guide covers every cause I check, in order, for Shopify’s free themes, Dawn and Horizon.

Here is what you will learn:

  • What each button state is telling you
  • 11 reasons for add to cart not working, with a fix for each
  • What to do when the add to cart button is missing
  • A 10-minute test routine to find app and code conflicts
  • Common mistakes that bring the problem back

Start by reading the button

Before you change anything, open the product in a private browser window. Pick two or three variants and watch the button. Each state points to a different cause.

What you seeUsual causeCheck
Button says Sold outNo stock, or stock at the wrong locationCauses 1, 2, 9
Button says UnavailableThat option combination doesn’t existCause 1
No button on the product pageBlock hidden, colors or templateCauses 4, 5
No button on collection pagesQuick add is offCause 6
Click works, nothing opensCart type settingCause 7
Red message near the buttonStock limit or purchase optionsCauses 8, 9
Spins forever or does nothingScript error from an app or codeCauses 10, 11
Product page shows a 404Not published or not in the marketCause 3

The red messages come from Shopify’s cart. The most common are “You can’t add more [product] to the cart”, “The product ‘[product]’ is already sold out” and “Cannot find variant”. Write down the exact text.

Shopify add to cart button not working: Add to cart, Sold out, Unavailable and hidden button states and what each one means
The button’s text tells you where to look before you touch any setting.

Shopify add to cart button not working? Check these 11 causes

Work down this list in order. Most fixes take a minute. The last few need some testing.

1. The variant is sold out or unavailable

Dawn and Horizon both disable the button when the selected variant can’t be bought. If you track stock and the variant has 0 available, the button says Sold out. If the shopper picks a combination you never created, such as Red in XL, it says Unavailable.

Fix: go to Products, open the product and click the variant. In the Inventory section, check the Available number and add stock. For pre-orders or made-to-order items, click Sell when out of stock and choose Continue selling when out of stock. That option only appears when Track quantity is on.

2. You have stock, but the product says sold out

Shopify only counts stock at locations that fulfill online orders. If 50 units sit at a retail-only location and your online location shows 0, the product says sold out. Shopify’s help also notes that dropshipping app products can show as out of stock when the app’s location is missing shipping rates.

Fix: move stock to a location that fulfills online orders, or turn on online fulfillment for that location under Settings, then Locations. If you dropship, check the app’s shipping rates in your shipping settings.

3. The product isn’t on the Online Store or in the shopper’s market

Customers can buy a product only when its status is Active or Unlisted and it is published to that sales channel. A duplicated product starts as Draft, which catches many people out. Markets add one more layer: if a product isn’t available in a shopper’s market, they see your 404 page.

Fix: open the product and set Status to Active. In the Publishing section, click the icon, tick Online Store and the markets you sell to, click Done and Save.

Shopify product says sold out: the Inventory, Publishing, Purchase options and Theme template settings to check
Four sections of the product page cause most add to cart problems.

4. Add to cart button not showing: the Buy buttons block is hidden

Go to Online Store, find your theme and click Edit theme. In the drop-down at the top, choose Products, then Default product.

  • Dawn: in the Product information section, look for the Buy buttons block. If it has a crossed-out eye icon, click it to show the block. If it is gone, click Add block and choose Buy buttons.
  • Horizon: in Product information, open the Details group and find Buy buttons. Inside it are Quantity, Add to cart and Accelerated checkout. These inner blocks can’t be deleted, but they can be hidden, so check the eye icon on Add to cart too.

Then open the product in your admin and check Theme template. If it isn’t Default product, edit that template instead.

Add to cart button not showing: the Buy buttons block and cart Type setting in the Dawn and Horizon theme editor
Where the Buy buttons block and the cart Type setting live in Dawn and Horizon.

5. The button blends into the background

An add to cart button not showing can simply be the same color as the page. Shopify’s own theme troubleshooting guide suggests this exact check: make sure your button colors are different and contrasting.

Fix: in the theme editor, open Theme settings, then Colors, and edit the scheme your product section uses. In Dawn, compare Solid button background and Solid button label with Background. In Horizon, check Primary button background and Primary button text. Horizon’s Add to cart block also has a Style setting (Primary, Secondary or Custom), so check that too.

6. Quick add is off on collection pages

Product cards on collection pages only get a button when quick add is on.

  • Dawn: open a collection template, click the Product grid section and set Quick add to Standard or Bulk. It is None by default. The Featured collection section has the same setting.
  • Horizon: go to Theme settings, then Product cards. Quick add is on by default, but Mobile quick add is off. That is why the button often shows on a laptop but not on a phone.

7. The button works, but the cart doesn’t open

Many reports of add to cart not working are false alarms. The item goes into the cart, but the shopper doesn’t see it.

  • Dawn: Theme settings, then Cart, has a Type setting: Drawer, Page or Popup notification. If an app or a custom header removes the drawer, Dawn sends the shopper to the cart page instead.
  • Horizon: the Type options are Page (the default) and Drawer. On a product page, Horizon keeps the shopper on the page, shows a short animation and updates the cart count. The drawer only opens by itself when “Add to cart” auto-opens drawer is ticked, and it is off by default.

Fix: tick the auto-open option in Horizon, or pick a cart type that makes the add obvious.

8. The product can only be bought with a subscription or pre-order

Subscription and pre-order apps add purchase options to products. In your admin, the product’s Purchase options section has a box called Only show this product with these purchase options. When it is ticked, the cart needs a plan attached. If the app’s widget isn’t on your product template, shoppers get “Variant can only be purchased with a selling plan”.

Fix: add the app’s block above the buy buttons with Add block, then Apps. If the offer has ended, untick the box, because some pre-order apps leave it ticked.

9. Quantity rules or a stock limit block the add

If a shopper asks for more units than you have, Shopify adds what is left and shows “You can’t add more [product] to the cart”. The same happens when all your stock is already in their cart. That is normal, not a bug.

B2B stores have one more trap. Quantity rules in Markets, then Catalogs, can set a minimum. If the minimum is higher than your stock, the button says sold out even though some units are left. Lower the minimum or add stock. If you use a purchase limit app, check its rules too.

10. An app or app embed is breaking the button

Cart drawer, upsell, bundle, sticky add to cart and currency apps all hook into the add to cart action. If one of their scripts fails, the click can do nothing, spin forever, or add the item twice. When every setting looks right, this is the usual reason for a Shopify add to cart button not working.

Apps reach your theme through app blocks, app embeds, or code added to theme files. You switch app embeds on and off under the App embeds icon in the theme editor. Code added by an app can stay after you uninstall it. The test below finds the guilty app.

11. Your theme is outdated or its code was edited

In Dawn and Horizon, the click is handled by a file called product-form.js. An old or edited copy can leave add to cart not working when an app expects a newer version.

Fix: go to Online Store and click your theme’s version number. If an update is out, click Add to draft themes, then preview the new version. If you know which file was changed, the code editor’s Timeline view lets you restore an earlier version of that file. My guide to changing your Shopify theme covers switching safely.

Add to cart not working only for you? Rule out the browser

If add to cart is not working only on your device, test another one first, as Shopify’s troubleshooting guide suggests.

  • Ad blockers can block app scripts. Test in a private window with extensions off.
  • Old cache can show yesterday’s page. Do a hard refresh or try mobile data.
  • Private mode (the password page) hides every page from visitors without the password. Check the access menu on the Online Store page. It should say Public once you launch.
  • The theme editor preview can behave differently from the live store. Test the real storefront.

Add to cart not working after all that? Run this 10-minute test

This routine finds the problem without touching your live store.

  1. Repeat the problem. Open the product in a private window and note the button text and any red message.
  2. Open the browser console. Press F12, or right-click the page and choose Inspect, then open the Console tab. Click the button again. Red errors usually show a file name, and app files often include the app’s name.
  3. Duplicate your theme. In Online Store, open the theme’s actions menu (the … button) and click Duplicate. You now have a safe copy to test on.
  4. Turn app embeds off one by one. In the copy, click Edit theme, then the App embeds icon. Switch off cart, upsell and bundle embeds, save, and preview. If the button works, switch them back on one at a time until it breaks again.
  5. Test a clean theme. Add a fresh Dawn or Horizon from the Theme Store as a draft and preview the same product. If it works there, your theme’s code is the problem. If not, look at product settings and apps.
  6. Send the evidence. Give the app developer the console error and the steps to repeat it.
Shopify add to cart not working test routine: duplicate the theme, turn off app embeds one by one, check the browser console
The safe way to test a Shopify add to cart button not working: on a copy of your theme.

Common mistakes to avoid

  • Testing only in the theme editor. Test the live store on a phone and a computer.
  • Turning on Continue selling when out of stock everywhere. It lets you oversell. Use it for pre-orders and made-to-order items.
  • Editing Default product when the product uses another template. Check Theme template on the product first.
  • Uninstalling an app and forgetting its code. Leftover scripts can keep breaking the cart.
  • Removing the quantity selector without a plan. With quantity rules, shoppers need it to pick the right amount. My guide on removing the quantity selector shows when it is safe.

Once the button works, place a test order from your phone. If shoppers add to cart but still don’t buy, see my guide on how to get your first sale on Shopify.

Frequently asked questions

Why is my Shopify add to cart button not working?

Usually the variant is sold out, the product isn’t published to the Online Store or the shopper’s market, or an app script is failing. Read the button text first, then check the causes above in order.

Why is the add to cart button not showing in Shopify?

An add to cart button not showing usually means the Buy buttons block is hidden, the product uses another template, or the button color matches the background. On collection pages, turn on quick add.

Why do all my Shopify products say sold out?

Inventory is tracked and the location that fulfills online orders shows 0 available, so every product says sold out. Add stock there, or choose Continue selling when out of stock for items you make or order after a sale.

Why is add to cart not appearing in Shopify Horizon?

Check that the Add to cart block inside Buy buttons isn’t hidden. On collection pages, turn on Quick add, and Mobile quick add for phones, under Theme settings, then Product cards.

Why is my Shopify cart drawer not working?

Check that the cart Type is set to Drawer. In Horizon, the drawer only opens by itself when “Add to cart” auto-opens drawer is ticked. If add to cart is still not working, turn off cart app embeds one by one.

Why is the Buy it now button not showing?

In Dawn, turn on Dynamic checkout buttons in the Buy buttons block. In Horizon, check that the Accelerated checkout block isn’t hidden. Horizon also hides it when the selected variant can’t be added to the cart.

A Shopify add to cart button not working costs sales every hour, so it is the first thing I check on any store. For more practical fixes, see my Shopify tips. If you would rather have someone find the cause for you, I do this as part of my Shopify store management service. Message me on WhatsApp and I will take a look.

Zobaer Hossain, Shopify designer

Written by Zobaer H.

Shopify Select Partner with 10+ years of experience and 5,000+ clients. I design and build Shopify stores, and I write these guides from real client work.

Shopify Select Partner badge

In this guide

    ★★★★★ 4.9 from 1,350+ client reviews

    Let's start

    Ready to start your store?

    Send me your idea or store link. I'll reply with honest advice and a fixed quote.

    ✓ Free quote✓ Fixed price✓ You own everything