customers/activate_account
customers/activate_account
模板渲染了客户帐户激活页面,该页面包含了激活客户帐户的表单。
位置
customers/activate_account
模板位于主题的 templates/customers
中:
└── theme
├── layout
├── templates
| └── customers
| ├── activate_account.json
| ...
...
内容
你可以将帐户激活表单包含在 customers/activate_account
模板中或模板内的某个 section 中。
提示
如果你使用的是 JSON templates,那么任何 HTML 或 Handlebars 代码都需要包含在模板引用的 section 中。
帐户激活表单
客户账号激活表单可以通过使用 Handlebars form helper 以及相应的 'activate_customer_password'
参数来添加。在表单标签内,你需要包含以下内容:
输入 | 类型 | 名称 |
---|---|---|
Password | password | 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>
用法
在使用 customers/activate_account
模板时,你应该熟悉如何预览该模板。
预览模板
要预览 customers/activate_account
模板,请执行以下步骤:
- 从你的 SHOPLINE admin 后台,在客户页面上使用你自己的电子邮件地址添加一个测试客户。
- 点击你新创建的客户详情页面右上角的发送邀请按钮。
- 检查你的电子邮件收件箱中是否有客户帐户邀请电子邮件。
- 点击电子邮件中的链接。这将带你前往客户帐户激活页面。
这篇文章对你有帮助吗?
Error loading component.