Batch Orders (multiple orders per email)
Starter template for batch orders. Display multiple orders in one email.

Template

Cut n paste this template into your email template editor in the Smart Order Notifications App.
1
<html>
2
<body>
3
<h2>New orders</h2>
4
{% for order in orders %}
5
<h3>Order summary {{ order.order_name }}</h3>
6
<ul>
7
{% for line in order.line_items %}
8
<li>
9
{{ line.title }}, {{ line.variant.title }} ({{ line.variant.sku }}) x {{ line.quantity }} - {% if line.original_line_price != line.line_price %}
10
<del>{{ line.original_line_price | money }}</del>
11
{% endif %}
12
{{ line.line_price | money }}
13
{% for p in line.properties %}
14
{% unless p.last == blank or p.first == '_' %}
15
<br /><strong>Option choices:</strong><br />
16
{{ p.first }}:
17
{% if p.last contains '/uploads/' %}
18
Uploaded File
19
{% else %}
20
{{ p.last }}
21
{% endif %}
22
{% endunless %}
23
{% endfor %}
24
<br></li>
25
{% endfor %}
26
</ul><br />
27
<strong>Subtotal: </strong>{{ order.subtotal_price | money }}<br />
28
<strong>Shipping: </strong>{{ order.shipping_price | money }}<br />
29
<strong>Total: </strong>{{ order.total_price | money_with_currency }}<br />
30
<br />
31
<h4>Customer information</h4>
32
<strong>Email</strong>: {{ order.email }}<br />
33
<strong>Shipping address:</strong>
34
{{ order.shipping_address.name }}<br/>
35
{{ order.shipping_address.address1 }} <br/>
36
{% if order.shipping_address.address2 %}
37
{{ order.shipping_address.address2 }}<br />
38
{% endif %}
39
{{ order.shipping_address.city }}, {{ order.shipping_address.province }} {{ order.shipping_address.zip }}
40
<br/>{{ order.shipping_address.country }}
41
<br /><br />
42
{% endfor %}
43
<body>
44
</html>
Copied!
Copy link