{% 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 }}
{{ email_body }}
|
{% if shop.url %}
{% endif %}
|
|
|
{% 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 %}
{% 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 }}
|
|
{% endfor %}
|
{% if discounts.first.code %}
|
Discount ({{ discounts.first.code }})
|
{{ discounts_savings | money }}
|
{% endif %}
|
Subtotal
|
{{ subtotal_price | money }}
|
{% if attributes.Checkout-Method != "pickup" %}
|
Shipping
|
{{ shipping_price | money }}
|
{% endif %}
{% for line in tax_lines %}
|
{{ line.title }}
|
{{ line.price | money }}
|
{% endfor %}
|
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 %}
|
{{transaction_name}}
|
{{ transaction.amount | money }}
|
{% 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 %}
|
Refund
{{ refund_method_title | capitalize }}
|
- {{ transaction.amount | money }}
|
{% endif %}
{% endfor %}
{% endif %}
|
|
|
{% if requires_shipping and shipping_address and attributes.Checkout-Method != "pickup" %}
{% 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 %}
|
{% endif %}
{% if attributes.Checkout-Method == "pickup" %}
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 %}
|
{% endif %}
{% if billing_address %}
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 }}
|
{% endif %}
{% if attributes.Checkout-Method != "pickup" %}
Shipping method
{{ shipping_method.title }}
|
{% endif %}
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 %}
|
|
|
|