Smart Notifications
HomeContact SupportInstall via the App Store
  • Documentation
  • Getting Started
    • Pricing & Free Trial
    • Use Cases
    • Notification Outputs
    • Customer & Order Tags
    • Triggers & Filters
    • Mastering Rules
    • Immediate & Batch Notifications
    • Domain Mapping
  • Templates
    • Introduction
    • Email templates
      • Shopify Default Customer Order Notification
      • Shopify Default Merchant Order Notification
      • Batch Orders (multiple orders per email)
    • Attachment templates
      • Line Item Quantity Totals
      • Line Item Quantity Totals + Bundles
  • Help & Support
    • Contacting Support
    • Meet the Developer & Owner
  • Terms & Conditions
    • Terms of Service
    • Privacy Policy
    • Data Handling & Retention Policy
    • Fair Use Email Limits
Powered by GitBook
On this page
  1. Templates
  2. Email templates

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>
PreviousShopify Default Merchant Order NotificationNextAttachment templates

Last updated 3 years ago