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.
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:
Input | Type | Name |
---|---|---|
Password | password | customer[password] |
Here's an example of how to implement the form:
<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>
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:
- In the SHOPLINE backend, create a test customer on the customers page using your own email.
- Click the Send Invite button located in the top right corner of the newly created customer details page.
- Check your email inbox for the Customer Account Invitation email.
- Click the link provided in the email. This link will direct you to the customer account activation page.