Shopify 的订单确认邮件、装箱单和员工订单通知只显示商品,不显示买家的个性化内容。Customix 已在每个订单行中保存设计图片和选项。在每个模板中粘贴一小段代码后,每个个性化商品下方都会显示:
- 设计图片;
- 买家所选的选项(技术字段会被隐藏;上传的照片会显示为 "View image" 链接);
- 在邮件中,显示可重新打开设计的 "View your design" 链接。
没有设计的商品显示方式与之前相同。
您可以在 Customix 应用的 设置 > 集成 > Store notifications 中找到代码,位于 通知模板代码 卡片,每个模板对应一个标签页,每段代码都有一个 复制 按钮。第 1 步中的模板名称是一个链接,可在 Shopify admin 中打开该模板。
订单确认邮件(订单确认 标签页)
1. 打开模板:Shopify admin > Settings > Notifications > Customer notifications > Order confirmation > Edit code(https://YOUR-STORE.myshopify.com/admin/email_templates/order_confirmation/edit)。
2. 在代码中找到第一个 {{ line.variant.title }},将下面的代码粘贴到其后的 {% endif %} 之后:
<div class="customix-options">
{% for property in line.properties %}
{% if property.first == '_cm-thumb-url' and property.last != blank %}
<img src="{{ property.last }}" width="120" alt="" style="display:block;width:120px;max-width:120px;height:auto;margin:4px 0;border-radius:8px;"/>
{% endif %}
{% endfor %}
{% for property in line.properties %}
{% assign cm_first_char = property.first | slice: 0 %}
{% if property.last != blank and cm_first_char != '_' %}
{{ property.first }}: {% if property.last contains 'https://' %}<a href="{{ property.last }}">View image</a>{% else %}{{ property.last }}{% endif %}<br/>
{% endif %}
{% if property.first == '_cm-customization-url' and property.last != blank %}
<a href="{{ property.last }}">View your design</a><br/>
{% endif %}
{% endfor %}
</div>3. 销售 Shopify 捆绑包吗?找到第一个 {{ component.quantity }},将下面的代码粘贴到其后的 <br> 之后:
<div class="customix-options">
{% for property in component.properties %}
{% if property.first == '_cm-thumb-url' and property.last != blank %}
<img src="{{ property.last }}" width="120" alt="" style="display:block;width:120px;max-width:120px;height:auto;margin:4px 0;border-radius:8px;"/>
{% endif %}
{% endfor %}
{% for property in component.properties %}
{% assign cm_first_char = property.first | slice: 0 %}
{% if property.last != blank and cm_first_char != '_' %}
{{ property.first }}: {% if property.last contains 'https://' %}<a href="{{ property.last }}">View image</a>{% else %}{{ property.last }}{% endif %}<br/>
{% endif %}
{% if property.first == '_cm-customization-url' and property.last != blank %}
<a href="{{ property.last }}">View your design</a><br/>
{% endif %}
{% endfor %}
</div>4. 保存模板,然后创建一笔测试订单进行检查。
装箱单(装箱单 标签页)
1. 打开模板:Shopify admin > Settings > Shipping and delivery > Packing slips > Edit(https://YOUR-STORE.myshopify.com/admin/settings/packing_slip_template)。
2. 找到第一个 {{ line_item.sku }},将下面的代码粘贴到其后的 </p> 之后:
<div class="customix-options">
{% for property in line_item.properties %}
{% if property.first == '_cm-thumb-url' and property.last != blank %}
<img src="{{ property.last }}" width="120" alt="" style="display:block;width:120px;max-width:120px;height:auto;margin:4px 0;border-radius:8px;"/>
{% endif %}
{% endfor %}
{% for property in line_item.properties %}
{% assign cm_first_char = property.first | slice: 0 %}
{% if property.last != blank and cm_first_char != '_' %}
{{ property.first }}: {% if property.last contains 'https://' %}<a href="{{ property.last }}">View image</a>{% else %}{{ property.last }}{% endif %}<br/>
{% endif %}
{% endfor %}
</div>3. 保存模板。
装箱单是打印出来的,因此不含 "View your design" 链接。
员工通知邮件(新订单 标签页)
1. 打开模板:Shopify admin > Settings > Notifications > Staff notifications > New order > Edit code(https://YOUR-STORE.myshopify.com/admin/email_templates/new_order_notification/edit)。
2. 找到第一个 {{ line.sku }},将与订单确认第 2 步相同的代码粘贴到其后的 {% endif %} 之后。
3. 销售捆绑包吗?找到第一个 {{ component_display }},将捆绑包代码(订单确认的第 3 步)粘贴到其后的 <br> 之后。
4. 销售捆绑包吗?找到第一个 {{ component.quantity }},将捆绑包代码粘贴到其后的 {% endif %} 之后。
5. 保存模板。
补充说明
- 这些步骤基于 Shopify 的默认模板。如果您修改过模板,请将代码粘贴到显示商品名称或选项的位置。
- 捆绑包相关步骤仅在您销售 Shopify 捆绑包时才需要。
- 如需恢复,请删除您粘贴的代码,或使用 Shopify 的 Revert to default。
- 您可以在代码中修改 "View image" 和 "View your design" 这两处文字以及图片宽度(120)。
- 没有设计图片? 如果买家将商品加入购物车时设计图片未能保存,该订单行只会显示选项,不显示图片。