How to add “I agree to terms” checkbox on Shopify registration form

Hura Product Showcase Builder

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.

DEMO

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.

  1. From your Shopify admin, go to Online Store > Themes.
  2. Find the theme you want to edit, and then click Actions > Edit code.
  3. In the Templates directory, click customers/register.liquid.
  4. Find the following Liquid tags in the code:{% form 'create_customer' %} and {% endform %}
  5. Find the HTML code for your checkout button. Look for a <button> or an <input> element with the type attribute set to submit. The code might look something like this:
  6. On a new line above the submit button, paste the following code:
  7. Click Save and you’re done.

The Terms and Privacy Policy checkbox should now appear on your Shopify registration form.

Hura Theme Blocks

You may also like...

1 Response

  1. alina van eickelen says:

    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

Leave a Reply

Your email address will not be published. Required fields are marked *