Last active
July 29, 2021 11:37
-
-
Save cargix1/41ab1ff6e191a4cc52fa902196e5d440 to your computer and use it in GitHub Desktop.
New Order Template
This file contains hidden or 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 == "" or p.first == "_ZapietId" %}{% 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> | |
{% unless attributes.Checkout-Method == "pickup" %} | |
{% 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 == "delivery" %}Delivery address{% else %}Shipping address{% endif %}</b></p> | |
<p>{{ shipping_address.name }}</p> | |
{% if shipping_address.company %} | |
<p>{{ shipping_address.company }}</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.Shipping-Date %} | |
<p>Shipping Date: {{ attributes.Shipping-Date | date: "%A, %-d %B %Y" }}</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 %} | |
{% endunless %} | |
{% if attributes.Checkout-Method == "pickup" %} | |
<p><b>Pickup address</b></p> | |
{% if attributes.Pickup-Location-Company %} | |
<p>{{ attributes.Pickup-Location-Company }}</p> | |
{% endif %} | |
<p>{{ attributes.Pickup-Location-Address-Line-1 }}</p> | |
{% if attributes.Pickup-Location-Address-Line-2 %} | |
<p>{{ attributes.Pickup-Location-Address-Line-2 }}</p> | |
{% endif %} | |
<p>{{ attributes.Pickup-Location-City }}</p> | |
<p>{{ attributes.Pickup-Location-Region }}</p> | |
<p>{{ attributes.Pickup-Location-Postal-Code }}</p> | |
<p>{{ attributes.Pickup-Location-Country }}</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 %} | |
{% endif %} | |
<p></p> |
{% if attributes.Checkout-Method == "delivery" %}Delivery address{% else %}Shipping address{% endif %}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi - sorry me again; the same formatting ideally would apply to this which is very basic compared to the new Shopify emails.
Also, for ref there is an issue for pickup orders where it lists a shipping address. This should be a billing address I think?
Thanks!