kukuvara

Shopify troubleshooting guide

Shopify Add to Cart not working?

First, find out if the item never makes it into the cart or if the cart drawer simply fails to show it. The two problems look almost identical to a shopper, but they’re fixed in different places.

Kukuvara · Shopify design and development

  1. Check the cart page after you tap

    Reproduce the problem, then open /cart in the same tab or browser session. If the correct item is there but the drawer stayed empty or never opened, start with the drawer refresh or event handler. If the cart is empty, start with the product form and the selected variant. If the item is in the cart and the failure only starts when you tap Checkout, that’s a separate problem.

  2. Try a second variant and a second browser

    Record the product URL, selected size or color, device and browser. Test the default variant and one alternate, ideally on iPhone Safari and desktop Chrome. A broken size selector can look like an Add to Cart bug. If the failure follows one variant, check its availability and whether the form is still trying to add the previous selection.

  3. Compare with a duplicate theme

    If this started after a theme or app change, test a duplicate or a known-good preview theme instead of editing production. Use the same product and variant. If the preview works, compare the product template, cart settings and app embeds one at a time. Some app settings apply to the whole store, so don’t disable them on the live shop just to test.

  4. Read the add-to-cart request

    If you’re comfortable with browser DevTools, open Network, clear the list and tap once. On a typical Shopify Ajax cart, look for a request ending in /cart/add.js. No request points you back to the form or button handler. A request with an error is a reason to read Shopify’s response and check the variant, quantity or availability. A successful response with nothing shown in the drawer is a reason to check the theme’s UI update. Custom storefronts may use a different endpoint.

  5. Retest the actual buying path

    In preview, verify the right product, variant, quantity and price appear in both the drawer and cart. Check another variant, a second tap, and both browsers you tested before. Open checkout from the cart if appropriate. You don’t need to place a real order to confirm that adding to the cart works.

Also worth checking: a variant marked sold out despite inventory or shipping rates missing at checkout.

Shopify references: Ajax Cart API and duplicating a theme.