Skip to content

customer-register ​

The customer-register template renders the page that creates a customer account.

Location ​

The customer-register template is located in the templates directory of the theme.

bash
└── theme
    ├── layout
    ├── templates
    │   ...
    │   ├── customer-register.json
    │   ...
    ...

Usage ​

It renders at /account/register. Without this template the store shows its built-in page. When the store disables customer accounts, the page redirects to the home page. Logged in customers go to the home page.

Use the create_customer form.

liquid
{% form 'create_customer' %}
  {{ form.errors | default_errors }}
  <input type="text" name="first_name" value="{{ form.first_name }}">
  <input type="email" name="email" value="{{ form.email }}">
  <input type="password" name="password">
  <input type="password" name="password_confirmation">
  <button type="submit">Create account</button>
{% endform %}