{% if refund_line_items.size == item_count %} {% capture email_title %}Your order has been refunded{% endcapture %} {% elsif refund_line_items.size == 0 %} {% capture email_title %}You have received a refund{% endcapture %} {% else %} {% capture email_title %}Some items in your order have been refunded{% endcapture %} {% endif %} {% capture email_body %}Total amount refunded: {{ amount | money_with_currency }}{% endcapture %} {{ email_title }}
{%- if shop.email_logo_url %} {{ shop.name }} {%- else %}

{{ shop.name }}

{%- endif %}
Some items in your order have been refunded

{{ email_title }}

{{ email_body }}

Order summary

{% for line in subtotal_line_items %} {% if line.product.title %} {% assign line_title = line.product.title %} {% else %} {% assign line_title = line.title %} {% endif %} {% unless line.product.handle == 'concierge-service-fee' or line.product.handle == 'concierge-processing-fee' %} {% endunless %}{% endfor %}
{% 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.original_line_price != line.line_price %} {{ line.original_line_price | money }} {% endif %}

{{ line.line_price | money }}

{% if discounts %} {% capture discount_title %} {% if discounts.first.code %} Discount ({{ discounts.first.code }}) {% else %} Discount {% endif %} {% endcapture %} {% endif %} {% for line in tax_lines %} {% endfor %} {% if total_tip and total_tip > 0 %} {% endif %}

{{ discount_title }}

{{ discounts_savings | money }}

Subtotal

{{ subtotal_price | money }}

Shipping

{{ shipping_price | money }}

{{ line.title }}

{{ line.price | money }}

Tip

{{ total_tip | money }}

Total

{{ total_price | money_with_currency }}
{% assign transaction_size = 0 %} {% assign transaction_amount = 0 %} {% for transaction in transactions %} {% unless transaction.kind == "capture" or transaction.kind == "void" %} {% assign transaction_size = transaction_size | plus: 1 %} {% assign transaction_amount = transaction_amount | plus: transaction.amount %} {% endunless %} {% endfor %} {% if transaction_size > 1 or transaction_amount < total_price %} {% 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 %}