Order represents an object of a placed order.
Returns "true" if a discount is applied, otherwise returns "false".
Returns order code.
Returns date when the order was completed.
Returns order currency as a 3-digit code (e.g. EUR).
{%- for field in order.custom_fields -%}
{{ field.last.label }} — {{ field.last.formatted_value }}
{%- endfor -%}
Returns discount amount.
Returns "true" if a discount or any cart rule is applied. Otherwise returns "false".
Returns payment gateway code.
Returns payment gateway human readable name.
Returns payment gateway transaction ID.
Returns date when the order was issued.
Returns an array of ordered item totals based on tax_rate. Each element contains the following for ordered items:
{%- for item in order.item_amounts -%}
{{ item.tax_rate }}
{%- endfor -%}
Returns total cost of the order before any discounts.
Returns total cost of order after applying discounts.
Returns tax amount for items.
Returns the order note.
Returns date when the order was paid for.
Returns payment gateway method code (e.g. "offline", "swed").
Returns payment status – one of "unpaid", "paid", "pending", "cancelled".
Returns shipping costs before any discounts.
Returns shipping status – either "not_dispatched" or "dispatched".
Returns cost of shipping after applying discounts.
Returns tax amount for shipping costs.
Returns the tax rate for shipping costs.
Returns general order status – one of "created", "cancelled", "archived".
Returns the following for order (over line items and shipping) with different tax rates:
{% for rate_amounts in order.tax_amounts %}
{% assign tax_rate_int = rate_amounts.tax_rate | floor %}
{% if tax_rate_int == rate_amounts.tax_rate %}
{{ tax_rate_int }}%
{% else %}
{{ rate_amounts.tax_rate }}%
{% endif %}:
{{ rate_amounts.tax_amount | money_with_currency: order.currency }}
{% endfor %}
Returns total sum (cart + shipping + tax).
Returns order's unique UUID.
Returns date when order is supposed to be paid for.