{% capture email_title %}Thank you for your purchase! {% endcapture %} {% capture email_body %}Hi {{ customer.first_name }}, {% if attributes.Checkout-Method == "pickup" %}we're getting your order ready for collection.{% elsif attributes.Checkout-Method == "delivery" %}we're getting your order ready to be delivered. We will notify you when it has been sent.{% else %}we're getting your order ready to be shipped. We will notify you when it has been sent.{% endif %}{% endcapture %} {{ email_title }}
{% if shop.email_logo_url %} {{ shop.name }} {% else %}

{{ shop.name }}

{% endif %}
Order {{ order_name }}

{{ email_title }}

{{ email_body }}

View your order
{% if shop.url %} {% endif %}

Order summary

{% for line in line_items %} {% if item_count == 1 %} {% assign columnWrapperClass = 'order-list__item--single' %} {% elsif forloop.first == true %} {% assign columnWrapperClass = 'order-list__item--first' %} {% elsif forloop.last == true %} {% assign columnWrapperClass = 'order-list__item--last' %} {% else %} {% assign columnWrapperClass = '' %} {% endif %} {% endfor %}
{% if line.image %} {% endif %} {{ line.title }} × {{ line.quantity }}
{% if line.variant.title != 'Default Title' %} {{ line.variant.title }} {% endif %}
{% if line.original_line_price != line.line_price %} {{ line.original_line_price | money }} {% endif %}

{{ line.line_price | money }}

{% if discounts.first.code %} {% endif %} {% if attributes.Checkout-Method != "pickup" %} {% endif %} {% for line in tax_lines %} {% endfor %}

Discount ({{ discounts.first.code }})

{{ discounts_savings | money }}

Subtotal

{{ subtotal_price | money }}

Shipping

{{ shipping_price | money }}

{{ line.title }}

{{ line.price | money }}

Total

{{ total_price | money_with_currency }}
{% assign transaction_size = 0 %} {% for transaction in transactions %} {% unless transaction.kind == "capture" or transaction.kind == "void" %} {% assign transaction_size = transaction_size | plus: 1 %} {% endunless %} {% endfor %} {% if transaction_size > 1 %} {% for transaction in transactions %} {% if transaction.status == "success" and (transaction.kind == "authorization" or transaction.kind == "sale") %} {% if transaction.payment_details.credit_card_company %} {% capture transaction_name %}{{ transaction.payment_details.credit_card_company }} (ending in {{ transaction.payment_details.credit_card_last_four_digits }}){% endcapture %} {% else %} {% capture transaction_name %}{{ transaction.gateway | replace: "_", " " | capitalize }}{% endcapture %} {% endif %} {% endif %} {% if transaction.kind == 'refund' %} {% if transaction.payment_details.credit_card_company %} {% assign refund_method_title = transaction.payment_details.credit_card_company %} {% else %} {% assign refund_method_title = transaction.gateway %} {% endif %} {% endif %} {% endfor %}

{{transaction_name}}

{{ transaction.amount | money }}

Refund
{{ refund_method_title | capitalize }}

- {{ transaction.amount | money }}
{% endif %}

Customer information

{% if requires_shipping and shipping_address and attributes.Checkout-Method != "pickup" %} {% endif %} {% if attributes.Checkout-Method == "pickup" %} {% endif %} {% if billing_address %} {% endif %}

{% if attributes.Checkout-Method == "delivery" %}Delivery address{% else %}Shipping address{% endif %}

{{ shipping_address.name }} {% if shipping_address.company %}
{{ shipping_address.company }} {% endif %}
{{ shipping_address.address1 }} {% if shipping_address.address2 %}
{{ shipping_address.address2 }} {% endif %}
{{ shipping_address.city }}, {{ shipping_address.province }} {{ shipping_address.zip }}
{% if attributes.Delivery-Date %}
Delivery Date: {{ attributes.Delivery-Date | date: "%A, %-d %B %Y" }}
{% endif %} {% if attributes.Delivery-Time %} Delivery Time: {{ attributes.Delivery-Time }}
{% endif %} {% if attributes.Shipping-Date %}
Shipping Date:
{{ attributes.Shipping-Date | date: "%A, %-d %B %Y" }}
{% endif %}

Pickup address

{% if attributes.Pickup-Location-Company %} {{ attributes.Pickup-Location-Company }}
{% endif %} {{ attributes.Pickup-Location-Address-Line-1 }} {% if attributes.Pickup-Location-Address-Line-2 %}
{{ attributes.Pickup-Location-Address-Line-2 }} {% endif %}
{{ attributes.Pickup-Location-City }}
{{ attributes.Pickup-Location-Region }}
{{ attributes.Pickup-Location-Postal-Code }}
{{ attributes.Pickup-Location-Country }}
{% if attributes.Pickup-Date %}
Pickup Date:
{{ attributes.Pickup-Date | date: "%A, %-d %B %Y" }}
{% endif %} {% if attributes.Pickup-Time %}
Pickup Time:
{{ attributes.Pickup-Time | date: "%R" }}
{% endif %}

Billing address

{{ billing_address.name }}
{{ billing_address.address1 }} {% if billing_address.address2 %}
{{ billing_address.address2 }} {% endif %}
{{ billing_address.city }}, {{ billing_address.province }} {{ billing_address.zip }}

{% if attributes.Checkout-Method != "pickup" %} {% endif %}

Shipping method

{{ shipping_method.title }}

Payment method

{% for transaction in transactions %} {% if transaction.status == "success" and (transaction.kind == "authorization" or transaction.kind == "sale") %}

{% if transaction.payment_details.credit_card_company %} {% capture credit_card_url %}notifications/{{ transaction.payment_details.credit_card_company | downcase }}.png{% endcapture %} Ending in {{ transaction.payment_details.credit_card_last_four_digits }} — {{ total_price | money }} {% else %} {{ transaction.gateway | replace: "_", " " | capitalize }} — {{ transaction.amount | money }} {% endif %}

{% endif %} {% endfor %}