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

Solved
Highlighted
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
Shopify Partner
1279 169 401

This is an accepted solution.

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 my solution helped you, please like and accept as solution!
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
Highlighted
Excursionist
18 1 0

I am having the same issue, I followed all the steps and added the code mentioned above, still not working. (added your code in cart-template.liquid)

 

Any tips on how to make it work?

0 Likes
Highlighted
Excursionist
18 1 0

 forgot to send my link

https://sweetclementinesco.com/

 

0 Likes
Highlighted
Excursionist
18 1 0