Add a customer registration form to your store

You can add a customer registration form to your store to let customers set up their own accounts. You can customize the appearance of the customer registration form in your Shopify admin.

Enabling customers to create accounts

Create a customer registration form to let customers set up accounts for themselves while shopping on your store:

  1. From your Shopify admin, click Settings, then click Checkout.

  2. Scroll down to the Customer accounts section.

  3. Check Accounts are optional:

    Customer accts optional
  4. Click Save.

Note

Now that your customers can create accounts for themselves, you will have to include a link to the customer registration form page.

Linking to the customer registration form

You can place the code to include the link in any of your Liquid templates. For this example, follow the steps below to place it next to the "Log in" link in your 'theme.liquid' file:

  1. From your Shopify admin, click Online Store, and then click Themes (or press G W T).

  2. Find the theme you want to edit, click the ... button, and then click Edit HTML/CSS.

  3. Click theme.liquid to open it up in the online code editor:

    Theme liquid
  4. In the online code editor, locate the 'Log in' code:

    
    {{ 'Log in' | customer_login_link }}
    
    
  5. Place this snippet of code next to it:

    
    {% if shop.customer_accounts_optional %}
      {{ "Sign up" | customer_register_link }}
    {% endif %}
    
    
  6. Click Save.

Note

You might want to make a few design changes to the customer registration page. In order to make this page fit in with your shop design, you'd need to make a few additions or changes in your 'style.css.liquid' file.

Redesigning the customer registration page

  1. From your Shopify admin, click Online Store, and then click Themes (or press G W T).

  2. Find the theme you want to edit, click the ... button, and then click Edit HTML/CSS.

  3. In the Templates folder, look to see if your theme already has a "customers/register" template. You can make changes to this template by clicking on it to open it in the online code editor. You can also edit the look of your customer/register template through your CSS stylesheet. You can find your CSS stylesheet in the Assets folder:

    Customer register 2
  4. If you don't have a customers/register template, click on the Add a new template link.

    In the drop-down menu, select customers/register:

    Customer register
  5. Click Create template.

Make your changes to your new customer/register template.

Not what you were looking for? Try one of these tutorials:

Want to discuss this page?

Visit the Shopify Community