对弃单恢复电子邮件自动应用折扣
已于 Jan 25, 2021 打印了此页面。若要查看当前版本,请访问 https://help.shopify.com/zh-CN/manual/discounts/discounts-for-abandoned-checkout-recovery-emails。
您可以对弃单恢复电子邮件自动应用折扣。当您对弃单电子邮件应用折扣时,客户会通过电子邮件收到享受折扣价的预先加入商品的购物车。客户只需输入他们的付款详细信息即可完成结账。
准备工作
要开始为弃单恢复电子邮件设置折扣,请执行以下操作:
步骤:
-
请务必记下您在创建折扣码时指定的名称,例如
WelcomeBack
。您在创建折扣时需要为折扣码指定名称。
编辑弃单恢复通知
- 在 Shopify 后台中,转到设置 > 通知。
- 在 Shopify 应用中,转到商店 > 设置。
- 在 Store settings(商店设置)下,轻触通知。
- 在 Shopify 应用中,转到商店 > 设置。
- 在 Store settings(商店设置)下,轻触通知。
在订单下,单击弃单。
在电子邮件正文(HTML) 区域中,找到包含以下代码的行:
<td class="button__cell"><a href="{{ url }}" class="button__text">Items in your cart</a></td>
- 复制下面的代码片段:
{% if url contains '?' %}{{ url | append: '&discount=ABC' }}{% else %}{{ url | append: '?discount=ABC' }}{% endif %}
粘贴该代码片段以替换
{{ url }}
。找到包含以下代码的行:
<td class="link__cell">or <a href="{{ shop.url }}">Visit our store</a></td>
- 复制下面的代码片段:
{{ shop.url | append: '/discount/ABC' }}
粘贴该代码片段以替换
{{ shop.url }}
。将每个
ABC
实例替换为您的折扣码,例如WelcomeBack
。您的代码应如下所示:
<tr>
<td class="actions__cell">
<table class="button main-action-cell">
<tr>
<td class="button__cell"><a href="{% if url contains '?' %}{{ url | append: '&discount=WelcomeBack' }}{% else %}{{ url | append: '?discount=WelcomeBack' }}{% endif %}" class="button__text">Items in your cart</a></td>
</tr>
</table>
{% if shop.url %}
<table class="link secondary-action-cell">
<tr>
<td class="link__cell">or <a href="{{ shop.url | append: '/discount/WelcomeBack' }}">Visit our store</a></td>
</tr>
</table>
{% endif %}
</td>
</tr>
- 单击保存。
现在,所有弃单恢复电子邮件的 URL 都以 discount=WelcomeBack
或 /discount/WelcomeBack
结尾,并且可在结账时自动应用折扣。请确保您已设置折扣码,以便正确应用。