“The cart is broken” can describe several different failures. Maybe the Add to Cart button does nothing. Maybe a product appears in the cart but its quantity resets. Or maybe checkout loads and a payment is declined. Those are different problems, with different owners.
Start by reproducing the exact customer journey rather than editing the theme at random.
Reproduce one purchase path
Open a product page in a private browser window. Select a valid variant, confirm the item is available, add it to the cart, change the quantity, then proceed toward checkout. Repeat on a phone.
Record the product URL, variant, browser, device, error text, and which step first goes wrong. If the issue is specific to one product, compare its inventory, options, shipping requirements, and template with a working product.
Determine whether it is a storefront or checkout problem
Before checkout: inspect the product template, add-to-cart behavior, cart drawer or cart page, scripts, and apps that alter these components. During payment: check Shopify's checkout and payment troubleshooting documentation and involve the payment provider or Shopify Support when the failure is outside the theme.
A declined bank transaction is not a theme bug. Conversely, a button that never adds an item does not become a payment-provider problem simply because the customer cannot buy.
Check recent theme and app changes
Did the issue begin after a new theme publish, custom code change, or app install? Shopify recommends checking theme errors, comparing storefront behavior, and evaluating whether apps are contributing to broken components.
Duplicate the theme before editing. Preview changes in a safe copy and note which app, script, or code section is responsible. Don't disable a live subscription, shipping, or loyalty integration without understanding the customer impact and rollback path.
Test more than a single button
A working cart button does not prove the entire purchase journey works. Verify product variants, discounts, shipping options, taxes, inventory behavior, cart totals, and order confirmation as appropriate.
Shopify provides supported methods for placing test orders. Use those tools and follow the platform's guidance for your payment setup; do not create unplanned live charges just to test a fix.
Keep a record of the diagnosis
Capture the original failure, the exact change, and the successful before/after test. Confirm that related templates and smaller screens still work. When the problem is tied to an app, make the vendor handoff specific: steps, device, affected product, logs if available, and what was already ruled out.
When to bring in a Shopify specialist
Bring in help when the bug is reproducible but the cause crosses theme scripts, multiple apps, cart logic, or configuration. A scoped repair should start with a diagnosis and finish with tested acceptance criteria, not a surprise full-store redesign.
Further reading from the platforms
These references can help your team validate the platform-specific steps before changing a production site.