New Order Template
<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> | |
{% 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 %} | |
{% if attributes.Checkout-Method == "pickup" %} | |
{% 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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment