cart error

Solved
Highlighted
Excursionist
13 1 0

Hello, 

in my stores cart , there is opoup massage coming up to agree to terms and conditions to proceed further. But there is no box where i can ticked that agreed. 

I am on brookly theme. 

Can somebody help me? Thanksshopify cart.PNG

 

0 Likes

Success.

Shopify Partner
1053 113 167

It looks for a checkbox to get checked, but I haven't found any HTML code to support that. If you don't know where it is coming from (most probably a custom code or some left overs from an app) and you just want to get rid of the popup go to Themes code editor, open your theme.js file and look for this snippet:

$(document).ready(function() {
    $('body').on('click', '[name="checkout"], [name="goto_pp"], [name="goto_gc"]', function() {
      if ($('#agree').is(':checked')) {
        $(this).submit();
      }
      else {
        alert("You must agree with the terms and conditions of sales to check out.");
        return false;
      }
    });
  });

Just comment it out so it looks like this, and give it another try:

/*$(document).ready(function() {
    $('body').on('click', '[name="checkout"], [name="goto_pp"], [name="goto_gc"]', function() {
      if ($('#agree').is(':checked')) {
        $(this).submit();
      }
      else {
        alert("You must agree with the terms and conditions of sales to check out.");
        return false;
      }
    });
  });*/

note the /* at the begging and */ at the end of the snippet.

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
1 Like
Excursionist
13 1 0

This worked, 

thank you so much for your help.

0 Likes