customers/order

customers/order模板渲染客户订单页面,显示客户过去订单的详细信息。

提示
请参阅 Dawn 中的客户/订单模板及其主要分区,了解实施示例。

位置

customers/order模板位于主题的templates > customers目录中:

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

内容

您应在customers/order模板或模板中的一个分区包含 order 对象 。

提示
如果您使用的是 JSON 模板,那么任何 HTML 或 Liquid 代码都需要包含在模板引用的分区中。

订单对象

您可以访问订单对象来显示订单的详细信息。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注