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
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024