Why isn't my add to cart button functioning properly?

Topic summary

A Shopify store owner’s add-to-cart button stopped working after installing and uninstalling an app. The issue extends beyond the ATC button—other cart functions like changing quantities and removing items are also broken, and items only appear in the cart after page refresh.

Root Cause Identified:
Multiple JavaScript files are corrupted or broken:

  • global.js
  • cart.js
  • product-modal.js
  • media-gallery.js
  • predictive-search.js

Other site features (like image zoom) are also non-functional, indicating widespread JavaScript failure.

Solution Provided:

  1. Download a fresh copy of the Origin theme
  2. Copy code from the broken files and paste into the current theme
  3. If this doesn’t work, reinstall a fresh copy of Origin or hire a developer

Resolution: The original poster confirmed the suggested fix worked successfully.

Summarized with AI on November 24. AI used: claude-sonnet-4-5-20250929.

Please help. My add to cart button isn’t working, and this has started happening after I added an app and later uninstalled it.

If I add to cart, it will just sit there loading forever, but when I refresh the page it goes in to the cart. My cart buttons are also non-functional, such as changing quantity and removing item.

Store: https://www.pumplife.shop

@zack19

Not only the ATC is not working, but all Javascript of your website is broken. You can try clicking on the zoom button of the images and it won’t work either.

Apparently there is broken JS in the following files:

global.js
cart.js
product-modal.js

media-gallery.js

predictive-search.js

The best way to quickly fix this is to:

  1. Download a fresh copy of the Origin theme
  2. Copy all the code from the broken files and paste it in your current theme

If this doesn’t work just install the fresh copy of Origin or hire a developer. I hope it helps.

Kind regards,
Diego

Thank you, this worked