Skip to content

Instantly share code, notes, and snippets.

@cargix1
Created October 10, 2015 11:00
Show Gist options
  • Save cargix1/2b4957ac5d049482cb69 to your computer and use it in GitHub Desktop.
Save cargix1/2b4957ac5d049482cb69 to your computer and use it in GitHub Desktop.
Default Order Confirmation Template
<p>Thank you for placing your order with {{ shop_name }}!</p>
<p>This email is to confirm your recent order.</p>
<p>Date {{ date | date: "%m/%d/%Y" }}</p>
{% if requires_shipping and shipping_address %}
<p><b>{% if attributes.Store-Pickup-Order == "Yes" %}Pickup location{% else %}Shipping address{% endif %}</b><br />
{% if attributes.Store-Pickup-Order == "Yes" %}{{ shipping_address.company }}{% else %}{{ shipping_address.name }}{% endif %}<br />
{{ shipping_address.street }}<br />
{{ shipping_address.city }}<br />
{{ shipping_address.province }}
{{ shipping_address.zip }}<br />
{{ shipping_address.country }}
{% if attributes.Store-Pickup-Date %}
<br />Pickup Date: {{ attributes.Store-Pickup-Date }}<br />
{% endif %}
{% if attributes.Store-Pickup-Time %}
Pickup Time: {{ attributes.Store-Pickup-Time }}<br />
{% endif %}
{% if attributes.Local-Delivery-Date %}
<br />Local Delivery Date: {{ attributes.Local-Delivery-Date }}<br />
{% endif %}
{% if attributes.Local-Delivery-Time %}
Local Delivery Time: {{ attributes.Local-Delivery-Time }}<br />
{% endif %}
</p>
{% endif %}
{% if billing_address %}
<p><b>Billing address</b><br />
{{ billing_address.name }}<br />
{{ billing_address.street }}<br />
{{ billing_address.city }}<br />
{{ billing_address.province }}
{{ billing_address.zip }}<br />
{{ billing_address.country }}</p>
{% endif %}
<ul style="list-style-type:none"> {% for line in line_items %} <li> <img src="{{ line | img_url: 'small' }}" /> {{ line.quantity }}x {{ line.title }} for {{ line.price | money }} each {% for discount in line.applied_discounts %} ( -{{ discount.amount | money }} ){% endfor %}</li> {% endfor %}
</ul>
{% if discounts %}
<p>Discounts : {{ discounts_savings | money_with_currency }}</p> {% endif %}
<p>Subtotal : {{ subtotal_price | money_with_currency }}</p>
{% for tax_line in tax_lines %} <p>{{ tax_line.title }} : {{ tax_line.price | money_with_currency }} </p>
{% endfor %} {% if requires_shipping %}
<p>Shipping : {{ shipping_price | money_with_currency }}</p>
{% endif %} <p>Total : {{ total_price | money_with_currency }}</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment