Order Confirmation
{% capture email_title %}Thank you for your purchase!{% endcapture %}
{% capture email_body %}
{% if requires_shipping %}
Hi {{ customer.first_name }}, we're getting your order ready to be shipped. Please allow 24-36 hours for the order to be shipped from our warehouse. You will receive a shipping confirmation email when your order has been dispatched.
{% endif %}
{% endcapture %}
{{ email_title }}
{{ email_title }}
{{ email_body }}
{% if order_status_url %}
{% if shop.url %}
{% endif %}
{% else %}
{% if shop.url %}
{% endif %}
{% endif %}
{% for line in subtotal_line_items %}
{% if line.variant.sku contains 'ONWARD' %}
Your order is covered by Onward. You can File A Claim should anything should happen to your order during delivery.
{% endif %}
{% endfor %}
{% for line in subtotal_line_items %}
{% if line.image %}
{% endif %}
{% if line.product.title %}
{% assign line_title = line.product.title %}
{% else %}
{% assign line_title = line.title %}
{% endif %}
{% if line.quantity < line.quantity %}
{% capture line_display %} {{ line.quantity }} of {{ line.quantity }} {% endcapture %}
{% else %}
{% assign line_display = line.quantity %}
{% endif %}
{{ line_title }} × {{ line_display }}
{% if line.variant.title != 'Default Title' %}
{{ line.variant.title }}
{% endif %}
{% if line.refunded_quantity > 0 %}
Refunded
{% endif %}
{% if line.discount_allocations %}
{% for discount_allocation in line.discount_allocations %}
{% if discount_allocation.discount_application.target_selection != 'all' %}
{{ discount_allocation.discount_application.title | upcase }}
(-{{ discount_allocation.amount | money }})
{% endif %}
{% endfor %}
{% endif %}
{% if line.original_line_price != line.final_line_price %}
{{ line.original_line_price | money }}
{% endif %}
{% if line.final_line_price > 0 %}
{{ line.final_line_price | money }}
{% else %}
Free
{% endif %}
{% endfor %}
{% for discount_application in discount_applications %}
{% if discount_application.target_selection == 'all' %}
{% capture discount_title %}
{% if discount_application.title %}
{{ discount_application.title | upcase }}
{% else %}
Discount
{% endif %}
{% endcapture %}
Discount
{{ discount_title }}
-{{ discount_application.total_allocated_amount | money }}
{% endif %}
{% endfor %}
Subtotal
{{ subtotal_price | money }}
Shipping
{{ shipping_price | money }}
{% for line in tax_lines %}
{{ line.title }}
{{ line.price | money }}
{% endfor %}
{% if total_tip and total_tip > 0 %}
Tip
{{ total_tip | money }}
{% endif %}
Total
{{ total_price | money_with_currency }}
{% if total_discounts > 0 %}
You saved {{ total_discounts | money }}
{% endif %}
{% assign transaction_size = 0 %}
{% assign transaction_amount = 0 %}
{% for transaction in transactions %}
{% if transaction.status == "success" %}
{% unless transaction.kind == "authorization" or transaction.kind == "void" %}
{% assign transaction_size = transaction_size | plus: 1 %}
{% assign transaction_amount = transaction_amount | plus: transaction.amount %}
{% endunless %}
{% endif %}
{% endfor %}
{% if transaction_size > 1 or transaction_amount < total_price %}
{% for transaction in transactions %}
{% if transaction.status == "success" and transaction.kind == "capture" 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 %}
Shipping address
{{ shipping_address | format_address }}
{% endif %}
{% if billing_address %}
Billing address
{{ billing_address | format_address }}
{% endif %}
{% if requires_shipping and shipping_address %}
Shipping method
{{ shipping_method.title }}
{% endif %}
{% assign transaction_count = transactions | size %}
{% if transaction_size > 0 %}
Payment method
{% for transaction in transactions %}
{% if transaction.status == "success" or transaction.status == "pending" %}
{% if transaction.kind == "capture" or transaction.kind == "sale" %}
{% if transaction.payment_details.credit_card_company %}
{% capture credit_card_url %}notifications/{{ transaction.payment_details.credit_card_company | downcase | replace: " ", "_" }}.png{% endcapture %}
Payment method
{% else %}
{{ transaction.gateway | replace: "_", " " | capitalize }}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}