{% if payment_terms.type == 'receipt' and payment_terms.next_payment.due_at == nil %}
{% assign due_date = 'now' %}
{% else %}
{% assign due_date = payment_terms.next_payment.due_at | default: nil %}
{% endif %}
{% if payment_terms.type == 'fulfillment' and payment_terms.next_payment.due_at == nil %}
Payment of {{ order.total_outstanding | money }} is due on fulfillment
{% else %}
Payment of {{ order.total_outstanding | money }} is due {{ due_date | date: format: 'date' }}
{% endif %}
{% if custom_message != blank %}
{{ custom_message }}
{% endif %}
{% if checkout_payment_collection_url %}
{% endif %}
|
|
{% 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 %}
{% for group in line.groups %}
Part of: {{ group.display_title }}
{% endfor %}
{% if line.gift_card and line.properties["__shopify_send_gift_card_to_recipient"] %}
{% for property in line.properties %}
{% assign property_first_char = property.first | slice: 0 %}
{% if property.last != blank and property_first_char != '_' %}
{% endif %}
{% endfor %}
{% endif %}
{% if line.selling_plan_allocation %}
{{ line.selling_plan_allocation.selling_plan.name }}
{% 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 %}
|
{% assign order_discount_count = 0 %}
{% assign total_order_discount_amount = 0 %}
{% assign has_shipping_discount = false %}
{% for discount_application in discount_applications %}
{% if discount_application.target_selection == 'all' and discount_application.target_type == 'line_item' %}
{% assign order_discount_count = order_discount_count | plus: 1 %}
{% assign total_order_discount_amount = total_order_discount_amount | plus: discount_application.total_allocated_amount %}
{% endif %}
{% if discount_application.target_type == 'shipping_line' %}
{% assign has_shipping_discount = true %}
{% assign shipping_discount = discount_application.title %}
{% assign shipping_amount = discount_application.total_allocated_amount %}
{% endif %}
{% endfor %}
Subtotal
|
{{ subtotal_price | plus: total_order_discount_amount | money }}
|
{% if order_discount_count > 0 %}
{% if order_discount_count == 1 %}
Order Discount
|
-{{ total_order_discount_amount | money }}
|
{% endif %}
{% if order_discount_count > 1 %}
Order Discounts
|
-{{ total_order_discount_amount | money }}
|
{% endif %}
{% for discount_application in discount_applications %}
{% if discount_application.target_selection == 'all' and discount_application.target_type != 'shipping_line' %}
{{ discount_application.title }} (-{{ discount_application.total_allocated_amount | money }})
|
{% endif %}
{% endfor %}
{% endif %}
{% if has_shipping_discount %}
Shipping
|
Free
|
{{ shipping_discount }} (-{{ shipping_amount | money }})
|
{% else %}
Shipping
|
{{ shipping_price | money }}
|
{% endif %}
Estimated taxes
|
{{ tax_price | money }}
|
{% if total_tip_received and total_tip_received > 0 %}
Tip
|
{{ total_tip_received | money }}
|
{% endif %}
|
{% if total_price > total_outstanding %}
|
Updated total
|
{{ total_price | money }}
|
Already paid
|
{{ net_payment | money }}
|
Amount to pay
|
{{ total_outstanding | money_with_currency }}
|
|
{% else %}
Amount to pay
|
{{ total_outstanding | money_with_currency }}
|
{% endif %}
|
|
{% if shipping_address or billing_address or shipping_method or payment_terms or company_location %}
{% if shipping_address %}
Shipping address
{{ shipping_address | format_address }}
|
{% endif %}
{% if billing_address %}
Billing address
{{ billing_address | format_address }}
|
{% endif %}
{% if company_location %}
Location
{{ company_location.name }}
|
{% endif %}
{% if payment_terms %}
Payment
{% if payment_terms.type == 'receipt' and payment_terms.next_payment.due_at == nil %}
{% assign due_date = 'now' %}
{% else %}
{% assign due_date = payment_terms.next_payment.due_at | default: nil %}
{% endif %}
{% if payment_terms.type == 'fulfillment' and payment_terms.next_payment.due_at == nil %}
{{ payment_terms.translated_name }}
{% else %}
{{ payment_terms.translated_name }}: Due {{ due_date | date: format: 'date' }}
{% endif %}
{% endif %}
|
{% if shipping_method %}
Shipping method
{{ shipping_method.title }} {{ shipping_method.price | money }}
|
{% endif %}
|
|
{% endif %}
|