For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

<html>
<body>
<h2>New orders</h2>
{% for order in orders %}
<h3>Order summary {{ order.order_name }}</h3>
<ul>
{% for line in order.line_items %}
<li>
{{ line.title }}, {{ line.variant.title }} ({{ line.variant.sku }}) x {{ line.quantity }} - {% if line.original_line_price != line.line_price %}
<del>{{ line.original_line_price | money }}</del>
{% endif %}
{{ line.line_price | money }}
{% for p in line.properties %}
{% unless p.last == blank or p.first == '_' %}
<br /><strong>Option choices:</strong><br />
{{ p.first }}:
{% if p.last contains '/uploads/' %}
Uploaded File
{% else %}
{{ p.last }}
{% endif %}
{% endunless %}
{% endfor %}
<br></li>
{% endfor %}
</ul><br />
<strong>Subtotal: </strong>{{ order.subtotal_price | money }}<br />
<strong>Shipping: </strong>{{ order.shipping_price | money }}<br />
<strong>Total: </strong>{{ order.total_price | money_with_currency }}<br />
<br />
<h4>Customer information</h4>
<strong>Email</strong>: {{ order.email }}<br />
<strong>Shipping address:</strong>
{{ order.shipping_address.name }}<br/>
{{ order.shipping_address.address1 }} <br/>
{% if order.shipping_address.address2 %}
{{ order.shipping_address.address2 }}<br />
{% endif %}
{{ order.shipping_address.city }}, {{ order.shipping_address.province }} {{ order.shipping_address.zip }}
<br/>{{ order.shipping_address.country }}
<br /><br />
{% endfor %}
<body>
</html>

Last updated