customers/activate_account

The customers/activate_account template serves to display the customer account activation page, featuring a form for activating the customer's account.

customer-activate-account.png

Location

You can find the customers/activate_account template within the theme's directory structure under templates > customers:

└── theme
├── layout
├── templates
| └── customers
| ├── activate_account.json
| ...
...

Content

You can embed the account activation form directly within the customers/activate_account template or within a designated section of the template.

Account Activation Form

Utilize Handlebars' form tag with the parameter 'activate_customer_password' to incorporate the account activation form. Within this form, include the following input:

InputTypeName
Passwordpasswordcustomer[password]

Here's an example of how to implement the form:

{{#form "activate_customer_password"}}
<div class="field">
<div class="field__container">
<input
type="password"
class="field__input"
id="Password"
name="customer[password]"
required
placeholder="Password"
/>
<label for="Password" class="field__label body3">
Password
</label>
</div>
</div>
<button class="button submit" type="submit">
Activate
</button>
{{/form}}

Usage

When utilizing the customers/account template, ensure you understand how to preview the template.

Preview the Template

To preview the customers/activate_account template:

  1. In the SHOPLINE backend, create a test customer on the customers page using your own email.
  2. Click the Send Invite button located in the top right corner of the newly created customer details page.
  3. Check your email inbox for the Customer Account Invitation email.
  4. Click the link provided in the email. This link will direct you to the customer account activation page.
Was this article helpful to you?

Error loading component.

Error loading component.