# Batch Orders (multiple orders per 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>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://smart-notifications.gitbook.io/docs/templates/email-templates/batch-orders-multiple-orders-per-email.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
