Skip to content

Instantly share code, notes, and snippets.

@ECkurt
Last active December 13, 2017 19:47
Show Gist options
  • Save ECkurt/05744d23f16e1e18d192b10cd5ec8fb5 to your computer and use it in GitHub Desktop.
Save ECkurt/05744d23f16e1e18d192b10cd5ec8fb5 to your computer and use it in GitHub Desktop.
Subject: do you need any help with your order?
{% if billing_address.first_name %}Hi {{ billing_address.first_name }},
{% elsif shipping_address.first_name %}Hi {{ shipping_address.first_name }},{% endif %}
<p>Friendly check-in from {{ shop.name }}.</p>
<p>I saw you put together a shopping cart on our site but didn’t finish your order.</p>
<p>Did you need any help? Or did you have any questions about the order I can answer before you submit it?</p>
<p>If there’s anything I can do, just hit the reply button and drop me a line with any product or order questions.</p>
<p>{{ custom_message }}</p>
<p>I’ve included a list of your shopping cart contents below. You can click this link to load up the shopping cart again.</p>
<p><b><a href="{{ url }}">Your cart:</a></b></p>
<table class="row">
{% for line in line_items %}
<tr class="order-list__item">
<td class="order-list__item__cell">
<table>
<td>
{% if line.image %}
<img src="{{ line | img_url: 'compact_cropped' }}" align="left" width="60" height="60" class="order-list__product-image"/>
{% endif %}
</td>
<td class="order-list__product-description-cell">
{% if line.product.title %}
{% assign line_title = line.product.title %}
{% else %}
{% assign line_title = line.title %}
{% endif %}
{% if line.quantity < line.quantity %}
{% capture line_display %} {{ line.quantity }} of {{ line.quantity }} {% endcapture %}
{% else %}
{% assign line_display = line.quantity %}
{% endif %}
<span class="order-list__item-title">{{ line_title }} × {{ line_display }}</span><br/>
{% if line.variant.title != 'Default Title' %}
<span class="order-list__item-variant">{{ line.variant.title }}</span>
{% endif %}
</td>
</table>
</td>
</tr>{% endfor %}
</table>
<p><b><a href="{{ url }}">Click here to complete your purchase &raquo;</a></b></p>
<p>If you need to discuss your order in more detail, feel free to hit reply and ask us any questions.</p>
<p>Talk soon!<br>
{{ shop.name }}</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment