How to add “I agree to terms” checkbox on Shopify registration form
If you allow user registration on your website, you might want to add a Terms of Use and Privacy Policy checkbox to the Shopify registration form, especially now with all the GDPR frenzy going on.
Unfortunately, Shopify doesn’t have this implemented by default, but you can do that manually. In this tutorial, I will be showing us how to add the checkbox to Shopify registration form.
- From your Shopify admin, go to Online Store > Themes.
- Find the theme you want to edit, and then click Actions > Edit code.
- In the Templates directory, click
customers/register.liquid
. - Find the following Liquid tags in the code:
{% form 'create_customer' %}
and{% endform %}
- Find the HTML code for your checkout button. Look for a
<button>
or an<input>
element with thetype
attribute set tosubmit
. The code might look something like this:1<input class="btn" type="submit" value="Create"> - On a new line above the submit button, paste the following code:1<input type="checkbox"value="" required/> I have read and agree to the Terms of Use and Privacy Policy
- Click Save and you’re done.
The Terms and Privacy Policy checkbox should now appear on your Shopify registration form.
Hello! thank you so much, It worked for me.
I was wondering, is there a way to put it also in the check out or cart?
I tried it in both “sections” but it didn’t work.
Thanks again