编辑 Shopify 确认邮件以包含产品选项
默认情况下,Shopify 的订单确认邮件不会显示如预订日期和时间等订单商品属性。你可以自定义它以包含这些信息。
此更改的内容
完成此编辑后,你的 Shopify 订单确认邮件将在商品信息旁显示预订详情(日期、时间、时长以及任何自定义字段)。
步骤
前往 Shopify > 设置 > 通知
点击 订单确认
在邮件模板中,搜索:
list__item-title将以下代码片段直接放在该行下方:
{% assign property_size = line.properties | size %}
{% if property_size > 0 %}
<p>
{% for p in line.properties %}
{% if p.first contains "_options" %}
{% continue %}
{% endif %}
{% unless p.last == blank %}
<small>{{ p.first }}:</small>
{% if p.last contains '/uploads/' %}
<a target="_blank" href="{{ p.last }}"><small>链接</small></a>
{% else %}
<small>{{ p.last }}</small>
{% endif %}
<br>
{% endunless %}
{% endfor %}
</p>
{% endif %}点击 保存
结果
编辑完成后,订单确认邮件将显示以下预订属性:
日期: 2026 年 3 月 15 日
时间: 上午 10:00
时长: 60 分钟
预订期间收集的任何自定义字段
相关
最后更新于
这有帮助吗?
