Why is my 'add to cart' button not working on the product page?

I have an ‘add to cart’ button on front page that IS working, but on the product page it’s NOT working - here it’s just grayed out (see attached file). I’m quite sure it’s because I changed some code in order to make the color swatch function work (same product but different colors). I ended up installing a GVariant app in stead that did the job, but I’m not sure how to undo the (potential) damage I’ve done on the product pages!?

On the product pages I can click a color, it changes the product images perfectly, then I click “add to basket” but get the error “This field is required” in red below.

Any ideas?

@Thomasmbie
I see in the screenshot you have not select any color swatch.
Please share the Store URL?

1 Like

Thanks for fast reply! I have selected a color, but maybe it doesn’t register!?

https://drip-aps.myshopify.com/
Pass: merrild

LetsCode added some code and made it work :slightly_smiling_face: