Last active
June 15, 2016 10:02
-
-
Save cargix1/d5308ea9b79658136e68 to your computer and use it in GitHub Desktop.
New order confirmation v2.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>Hello {{ shop_name }},</p> | |
<p></p> | |
<p>{% if customer.name %}{{ customer.name }}{% else %}Someone{% endif %} placed a new order with you today, {{ date | date: "%b %d %I:%M%p" }}:</p> | |
<p></p> | |
<ul style="list-style-type:none">{% for line in line_items %}<li> <img src="{{ line | img_url: 'thumb' }}" /> {{ line.quantity }}x {{line.title }} (sku: {{ line.sku }})<br>{% for p in line.properties %}{% if p.first == "builder_id" or p.first == "builder_info" or p.first == "master_builder" or p.last == "" %}{% else %}{{ p.first }}: {% if p.last contains '/uploads/' %}<a class="lightbox" href="{{ p.last }}">{{ p.last | split: '/' | last }}</a><br>{% else %}{{ p.last }}<br>{% endif %}{% endif %}{% endfor %}</li>{% endfor %}</ul> | |
<a href="{{ shop.url }}/admin/orders/{{ id }}">View order {{order_name}} </a> | |
{% if fulfillment_aborted %} | |
<p>The above order was not automatically fulfilled because it was flagged as suspicious.</p>{% endif %} | |
<p></p><br> | |
{% if has_high_risks? %}<p><b>Security check:</b></p> | |
<p>This order has a risk of being fraudulent. Review the order in your store's admin and contact the customer to verify their information.</p> | |
<p></p>{% endif %} | |
<p><b>Payment processing method:</b></p> | |
<p>{{ gateway }}</p> | |
<p></p> | |
{% if requires_shipping and shipping_address %} | |
<p><b>Delivery method:</b></p> | |
{% for shipping_method in shipping_methods %}<p>{{ shipping_method.title }}</p>{% endfor %} | |
<p></p> | |
<p><b>{% if attributes.Checkout-Method == "pickup" %}Pickup location{% elsif attributes.Checkout-Method == "delivery" %}Delivery address{% else %}Shipping address{% endif %}</b></p> | |
{% if attributes.Checkout-Method == "pickup" %} | |
<p>{{ shipping_address.company }}</p> | |
{% else %} | |
<p>{{ shipping_address.name }}</p> | |
{% endif %} | |
<p>{{ shipping_address.street }}</p> | |
<p>{{ shipping_address.city }}, {{ shipping_address.province }} {{ shipping_address.zip }}</p> | |
<p>{{ shipping_address.country }}</p> | |
<p>{{ shipping_address.phone }}</p> | |
{% if attributes.Pickup-Date %} | |
<p>Pickup Date: {{ attributes.Pickup-Date | date: "%A, %-d %B %Y" }}</p> | |
{% endif %} | |
{% if attributes.Pickup-Time %} | |
<p>Pickup Time: {{ attributes.Pickup-Time | date: "%R" }}</p> | |
{% endif %} | |
{% if attributes.Delivery-Date %} | |
<p>Delivery Date: {{ attributes.Delivery-Date | date: "%A, %-d %B %Y" }}</p> | |
{% endif %} | |
{% if attributes.Delivery-Time %} | |
<p>Delivery Time: {{ attributes.Delivery-Time }}</p> | |
{% endif %} | |
{% endif %} | |
<p></p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment