Add to cart javascript check for custom field filled in

Add to cart javascript check for custom field filled in

beatkeeping
New Member
4 0 0

Hi, I want to ensure my custom field is filled in before adding the product to the cart.

 

I have tried adding required within the input tags but it doesn't work (I've read others saying the same). Where can I edit the javascript to check the custom field is populated before adding to cart?

Replies 0 (0)