customers/register template renders the customer register page, which hosts the form for customer account creation.
customers/register template is located in the
customers directory of the theme:
You should include the customer register form in your
customers/register template or a section inside of the template.
The customer register formAnchor link to section titled "The customer register form"
The customer register form can be added with the Liquid
form tag and accompanying
'create_customer' parameter. Within the form tag block, you need to include the following:
When working with the
customers/register template, you should familiarize yourself with redirecting customers on account creation.
Redirect customers on account creationAnchor link to section titled "Redirect customers on account creation"
By default, when a customer creates an account, they're directed to the home page. However, you can specify a page to direct customers to using the
return_to parameter of the Liquid form tag.
For example, the following directs customers to the all-products collection page: