Show More
{% assign SETTING_shop_logo = “” %}
{% assign SETTING_shop_logo_width = 240 %}
{% assign SETTING_date_format = “%b %e, %Y” %}
{% assign SETTING_product_image_size = 58 %}
{% assign SETTING_show_order_number_barcode = true %}
{% assign SETTING_show_product_barcodes = false %}
{% assign SETTING_show_refund_note = false %}
{% comment %}
TRANSLATE TEXT
You can translate or change wording in the document by updating
the words below. Only change the words between the quotes “”.
{% endcomment %}
{% assign TEXT_refund_for_order = “Refund for Order” %}
{% assign TEXT_refund_from = “Refund from” %}
{% assign TEXT_customer = “Customer” %}
{% assign TEXT_tel = “Tel.” %}
{% assign TEXT_no_customer_information = “No customer information” %}
{% assign TEXT_refund_method = “Refund method” %}
{% assign TEXT_items = “Items” %}
{% assign TEXT_price = “Price” %}
{% assign TEXT_tax = “Tax” %}
{% assign TEXT_qty = “Qty” %}
{% assign TEXT_item_total = “Item total” %}
{% assign TEXT_sku = "SKU: " %}
{% assign TEXT_no_items_refunded = “No items in this refund” %}
{% assign TEXT_notes = “Notes” %}
{% assign TEXT_subtotal = “Subtotal” %}
{% assign TEXT_shipping = “Shipping” %}
{% assign TEXT_vat = “VAT” %}
{% assign TEXT_tax_included = “(Included)” %}
{% assign TEXT_total_refund = “Total refund” %}
{% if SETTING_show_product_barcodes == true or SETTING_show_order_number_barcode == true %}
{% include “barcodes” %}
{% endif %}
{% if SETTING_shop_logo != blank %}
{{ SETTING_shop_logo | img_tag: ‘’, ‘shop-logo’}}
{% else %}
{{ shop.name }}
{% endif %}
{% if SETTING_show_order_number_barcode == true %}
{% endif %}
{{ TEXT_refund_for_order }} {{ name }}
{{ latest_refund.created_at | date: SETTING_date_format }}
{{ TEXT_refund_from }}
{{ shop.name }}
{{ shop.address1 }}
{{ shop.city }}, {{ shop.province_code }} {{ shop.zip }}
{{ shop.country }}
{{ TEXT_customer }}
{% if billing_address != blank %}
{{ billing_address.name }}
{% if billing_address.company != blank %}
{{ billing_address.company }}
{% endif %}
{{ billing_address.address1 }}
{% if billing_address.address2 != blank %}
{{ billing_address.address2 }}
{% endif %}
{% if billing_address.city_province_zip != blank %}
{{ billing_address.city_province_zip }}
{% endif %}
{{ billing_address.country }}
{% elsif customer != blank %}
{{ customer.name }}
{% if customer.email != blank %}
{{ customer.email }}
{% endif %}
{% if customer.phone != blank %}
{{ customer.phone }}
{% endif %}
{% else %}
{{ TEXT_no_customer_information }}
{% endif %}
{% if latest_refund.payment_method != blank %}
{{ TEXT_refund_method }}
{{ latest_refund.payment_method }}
{% endif %}
{{ TEXT_items }}
{{ TEXT_price }}
{% if show_line_item_taxes == true %}
{{ TEXT_tax }}
{% endif %}
{{ TEXT_qty }}
{{ TEXT_item_total }}
{% comment %}
These variables make sure your images print at high quality.
{% endcomment %}
{% assign resolution_adjusted_size = SETTING_product_image_size | times: 300 | divided_by: 72 | ceil %}
{% capture effective_image_dimensions %}{{ resolution_adjusted_size }}x{{
resolution_adjusted_size }}{% endcapture %}
{% for refund_item in latest_refund.refund_line_items %}
{% else %}
{% endfor %}
|
{% if SETTING_product_image_size != 0 %}
{% if refund_item.line_item.image != blank %}
{{ refund_item.line_item.image | img_url: effective_image_dimensions | img_tag: ‘’, ‘aspect-ratio__content’ }}
{% else %}
{{ ‘/product_image_placeholder.svg’ | img_tag: ‘’, ‘aspect-ratio__content placeholder’ }}
{% endif %}
{% endif %}
{{ refund_item.line_item.product_title }}
{% if refund_item.line_item.variant_title != blank %}
{{ refund_item.line_item.variant_title }}
{% endif %}
{% if refund_item.line_item.sku != blank %}
{{ TEXT_sku }}{{ refund_item.line_item.sku }}
{% endif %}
{% for p in refund_item.line_item.properties %}
{% assign p_internal = p.first | slice: 0 %}
{% unless p.first contains “builder_id” or p.first contains “builder_info” or p.first contains “master_builder” or p_internal == “_” or p.last == “” or p.last == blank %}
{{ p.first }}: {{ p.last }}
{% endunless %}
{% endfor %}
{% if SETTING_show_product_barcodes == true and line_item.variant.barcode != blank %}
{% endif %}
{{ refund_item.subtotal | divided_by: refund_item.quantity | money }}
{% if show_line_item_taxes == true %}
{% if total_tax != 0.0 %}
{{ refund_item.total_tax | divided_by: refund_item.quantity | money }}
{% else %}
{{ 0.0 | money }}
{% endif %}
{% endif %}
{{ refund_item.quantity }}
{% if shop.taxes_included == true %}
{{ refund_item.subtotal | money }}
{% else %}
{{ refund_item.subtotal | plus: refund_item.total_tax | money }}
{% endif %}
|
| - |
|
{{ TEXT_no_items_refunded }}
|
{% if SETTING_show_refund_note == true and latest_refund.note != blank %}
{{ TEXT_notes }}
{{ latest_refund.note }}
{% endif %}
{% if latest_refund.refund_line_items != blank %}
{{ TEXT_subtotal }}
{{ latest_refund.subtotal | money }}
{% endif %}
{% for adjustment in latest_refund.order_adjustments %}
{% if adjustment.kind == “shipping_refund” %}
{{ TEXT_shipping }}
{{ adjustment.amount | plus: adjustment.total_tax | money }}
{% endif %}
{% endfor %}
{% if latest_refund.total_tax != 0.0 %}
{{ TEXT_vat }} {% if shop.taxes_included == true %}{{ TEXT_tax_included }}{% endif %}
{{ latest_refund.total_tax | money }}
{% endif %}
{{ TEXT_total_refund }}
{{ latest_refund.total | money }}
{% assign total = 0 %}
{% for item in line_items %}
{% assign total = total | plus: item.price %}
{% endfor %}
{{ “Original Items Price” }}
{{ total | money }}
{{ shop.name }}
{{ shop.address1 }}{% if shop.address2 != blank %}, {{ shop.address2 }}{% endif %}, {{ shop.city }}, {{ shop.province_code }}, {{ shop.zip }}, {{ shop.country }}
[{{ shop.customer_email }}](mailto:{{ shop.customer_email }})
[{{ shop.domain }}](https://{{ shop.domain }})