@GARESIOVINI wrote:
Hello,
I've contacted for 25 dollars a shopify expert that worked on the code and
did a perfect job.
In just one day everything was working well. Honestly I'd advice this.
Best,
Which expert to recommend please? i need it
Has anyone figured out how to solve the issue with being able to proceed to checkout even if the checkbox isn't checked?
I have spent several hours troubleshooting with JS and HTML and can't seem to figure it out.
I would greatly appreciate some help. I am using the Supply theme if that helps.
Thanks!
Hi,
i have added this in my registration page, you can add the below code in your respective page where you want to see the "terms and policy".
##If you want to add this in your cart page, then just add name="register" in the respective input button line.
##put the script tag below your html code, at the last part.
hope that it works out for you.
Here i have added the code which works well for me in my registration page before entering into my store.
HTML Part:
<p style="float: none; text-align: right; clear: both; margin: 10px 0;">
<input style="float:none; vertical-align: middle;" type="checkbox" id="agree" required="required" />
<label style="display:inline; float:none" for="agree">
I agree with the <a href="your reference page link">terms and conditions</a>.
</label>
</p>
<p class="text-center">
<input id ="account_submit" type="submit" value="{{ 'customer.register.submit' | t }}" class="btn" name="register">
</p>
JS Part:
<script>
$(function() {
$('body').on('click', '[name="register"]', function() {
if ($('#agree').is(':checked')) {
$("#create_customer").submit();
}
else {
alert("You must agree with the terms and conditions of sales to register.");
return false;
}
});
});
</script>
User | Count |
---|---|
542 | |
209 | |
126 | |
80 | |
44 |