Terms and conditions checkbox not working (no popup) using Simple theme.

Solved
New Member
1 0 0

Hey,

 

Followed this guide https://help.shopify.com/en/themes/customization/cart/add-terms-and-conditions-checkbox

Got the checkbox to appear, but I can bypass it by not having to tick the box. There is no preventative pop-up

 

Could you help me out? Using the Simple theme.

 

Website is: https://sleekaesthetic.com/

0 Likes
Highlighted

Success.

Astronaut
835 95 178

You can add this in script tags in your cart.liquid at the bottom of the page:

 

<script>
$(".cart").submit(function(e) {
if($('#agree').prop('checked') != true){
alert('Please agree to the terms and conditions');
return false;
}else{
return true;
}
});
</script>
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D
1 Like