All things Shopify and commerce
I am trying to add mandatory check buttons to 2 of my custom product pages. I have the boxes but it is allowing to not check boxes and checkout. I have tried all the things I have found on here and google and nothing works
myself. I have managed doing all without trouble
I tired both and neither worked where would I put the java one? maybe im putting in wrong place
this is how its typed
$(document).on('click', '.checkout-btn', function(event) { if ($('.Yes I have uploaded high resolution files (PNG 300dpi, SVG, EPS, Illustrator), Yes I have uploaded with transparent background:checkbox:checked').length < 2) { event.preventDefault(); alert('Please select both checkboxes before proceeding to checkout.'); } });
bolded are checkbox names
I think his code can solve your probem
https://edcodes.gumroad.com/l/terms-checkbox?layout=profile
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025