Signup

Terms and conditions checkbox support

If you have a terms and conditions checkbox on your shopping cart page you may need to implement some additional code to support it. 


Step 1

Within your storepickup-addons.liquid file add the following code:

<script type="text/javascript">
  window.customCheckoutValidation = function() {
    if ($("#terms").is(":checked")) {
      $("#cart_form").submit();
      return true;
    }

    return false;
  }
</script>


Step 2

Ensure that your terms and conditions checkbox as the ID of terms.


Step 3

Ensure your cart form field has the ID of cart_form.

A
Andrew is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.