The customers/activate_account.liquid template is used to display the form for activating a customer account.

Ex activate account

Template Considerations

Previewing the activate_account.liquid template

To preview the activate_account.liquid template, first navigate to the Customers page in the Admin and click on a customer.

Activate 1

Click the Send account invite button. You will see a modal with the URL to the account activation form. Copy the URL and open it in your browser to view the activate_account.liquid template.

Activate 2

Customer account activation form

The customer account activation form must be wrapped in the form tag with "activate_customer_password" as its parameter.

Within the form tag block, there should be two inputs of type password, one for the password and another for confirming the password. They must have the attributes name="customer[password]" and name="customer[password_confirmation]", respectively.

Here is an example code snippet of a customer account activation form:

{% form 'activate_customer_password' %}

{{ form.errors | default_errors }}

<div class="password">
  <label for="password">Password</label>
  <input type="password" name="customer[password]" />
<div class="password_confirm">
  <label for="password_confirmation">Password Confirmation</label>
  <input type="password" name="customer[password_confirmation]" />
<div class="action_bottom">
  <input type="submit" value="Activate Account" />
  <input type="submit" name="decline" value="Decline Invitation" />

{% endform %}

Want to discuss this page?

Visit the Shopify Community