Add to Cart Not Working After Selecting Variant on Entire Website

Hi everyone,

I’m encountering an issue on my Shopify website where the “Add to Cart” button stops working once a variant is selected. This problem is affecting the entire website, not just a specific product.

Details:

It’s not due to items being out of stock.

It’s not caused by any app conflicts.

I did modify the code a while ago to customize my swatches (as it wasn’t built-in), and I set the “Add to Cart” button to redirect straight to Checkout.

Unfortunately, I’m not a developer and don’t have much coding experience, so troubleshooting has been challenging. If anyone has encountered a similar issue or has suggestions on how to resolve this, your help would be greatly appreciated!

Thanks so much in advance!

Hi @HnP_Solutions , can you share your website URL? Have you tried rolling back your code changes?