Order The order object for confirmation pages, email templates, and customer account history.
The order object holds a completed purchase with its line items, totals, addresses, and payment details. It is available on the order confirmation page, in email notification templates, and inside the customer.orders array when a customer is logged in.
< h1 >Order {{ order .name }}</ h1 >
< p >Placed on {{ order .created_at | date: '%d %B %Y' }}</ p >
Property Type Description order.idnumber The unique order ID order.order_numbernumber The order number (e.g. 1042) order.namestring The display name (e.g. #1042) order.emailstring The email address on the order order.created_atstring When the order was placed order.currencystring Three-letter currency code order.notestring Customer note left at checkout order.tagsarray Tags assigned to this order order.cancelledboolean Whether the order has been cancelled order.cancelled_atstring When it was cancelled (nil if not cancelled) order.cancel_reasonstring The reason given for cancellation
All prices are in the smallest currency unit. Use the money filter to display them.
Property Type Description order.total_pricenumber The final total including tax and shipping order.subtotal_pricenumber Total before tax and shipping order.total_taxnumber Total tax amount order.total_discountsnumber Total discount amount order.total_shippingnumber Shipping cost order.gift_card_amountnumber Amount paid by gift card order.refund_amountnumber Amount refunded, if any order.financial_statusstring Payment status (see below)
Financial status values: pending, authorized, paid, partially_paid, refunded, partially_refunded, voided.
< p >Subtotal: {{ order .subtotal_price | money }}</ p >
< p >Shipping: {{ order .total_shipping | money }}</ p >
< p >Tax: {{ order .total_tax | money }}</ p >
{% if order .gift_card_amount > 0 %}
< p >Gift card: -{{ order .gift_card_amount | money }}</ p >
{% endif %}
< p >Total: {{ order .total_price | money }}</ p >
Property Type Description order.fulfillment_statusstring Current status: unfulfilled, partial, fulfilled, restocked order.shipping_methodobject The chosen shipping method order.shipping_method.namestring Name of the shipping method
{% case order .fulfillment_status %}
{% when 'fulfilled' %}
< span class = "badge badge--success" >Shipped</ span >
{% when 'partial' %}
< span class = "badge badge--warning" >Partially Shipped</ span >
{% else %}
< span class = "badge" >Processing</ span >
{% endcase %}
The order.line_items array contains every product in the order:
Property Type Description item.product_idnumber The product ID item.variant_idnumber The variant ID item.titlestring Product title item.variant_titlestring Variant title (e.g. "Large / Black") item.skustring SKU code item.quantitynumber Number of units ordered item.pricenumber Unit price item.line_pricenumber Price times quantity item.total_discountnumber Discount on this line item item.imagestring Product image URL item.urlstring Link to the product page
{% for item in order .line_items %}
< div class = "order-item" >
{% if item. image %}
< img src = "{{ item . image | img_url: '100x100' }}" alt = "{{ item . title }}" />
{% endif %}
< div >
< p >{{ item.title }}</ p >
{% if item.variant_title %}
< p class = "variant" >{{ item.variant_title }}</ p >
{% endif %}
< p >{{ item.quantity }} x {{ item.price | money }}</ p >
</ div >
</ div >
{% endfor %}
Property Type Description order.shipping_addressaddress Where the order is being shipped order.billing_addressaddress The billing address
Each address has the same fields as the Address object: first_name, last_name, name, company, address1, address2, city, province, zip, country, country_code, and phone.
< h3 >Ship to</ h3 >
< p >
{{ order .shipping_address.first_name }} {{ order .shipping_address.last_name }}< br />
{{ order .shipping_address.address1 }}< br />
{{ order .shipping_address.city }}, {{ order .shipping_address.zip }}< br />
{{ order .shipping_address.country }}
</ p >
Property Type Description order.discount_codesarray Discount codes applied to the order
Each discount code has code, amount, and type:
{% for discount in order .discount_codes %}
< p >Discount: {{ discount.code }} ({{ discount.amount | money }} off)</ p >
{% endfor %}
Property Type Description order.tax_linesarray Tax breakdown by rate
Each tax line has title, price, rate, and rate_percentage:
{% for tax in order .tax_lines %}
< p >{{ tax.title }} ({{ tax.rate_percentage }}%): {{ tax.price | money }}</ p >
{% endfor %}
Property Type Description order.transactionsarray Payment transactions on this order
Each transaction has id, amount, status, provider, kind, and created_at:
{% for txn in order .transactions %}
< p >{{ txn.kind | capitalize }}: {{ txn.amount | money }} via {{ txn.provider }}</ p >
{% endfor %}
Property Type Description order.channelstring The sales channel this order came from order.regionstring The region the customer ordered from
Property Type Description order.customercustomer The customer who placed the order
{% if order . customer %}
< p >Order by {{ order . customer .name }} ({{ order . customer .email }})</ p >
{% endif %}