Order
From Shopify Wiki
Many properties of an order are available directly through Liquid in various templates. Unlike most other Liquid objects, the order object itself is not referenced by name in any of the templates which currently use it. So instead of using {{ order.shipping_method }} in your Order Confirmation email template, you would simply use {{ shipping_method }}.
The properties of an order are available in the following templates:
- Order Confirmation
- New Order Notification
- New Order Notification (mobile)
- Shipping confirmation
- Shipping update
- Additional Content & Scripts
Contents
|
Order Properties
order_name
Name order. Typically this is a pound symbol followed by the order_number. e.g. Order #1004
order_number
Shop unique number of the order. e.g. 1004
customer
Customer object containing the email and name of the client.
customer.email
Email of the customer
customer.name
Name of the customer
shop_name
Name of your shop
subtotal_price
Subtotal of the order
total_price
Total of the order ( subtotal + tax + shipping )
tax_price
Taxes of all the items in the order combined
gateway
Payment method (Payment gateway used)
shipping_method
ShippingMethod object
shipping_price
Shipping price
shipping_address
Shipping Address object
billing_address
Billing Address object
line_items
Array of all Line Items in the order.
fulfilled_line_items
Array of any Line Items which have been fulfilled (marked as shipped on the order screen).
unfulfilled_line_items
Array of those Line Items which have not yet been fulfilled (marked as shipped on the order screen).
note
The note which is attached to the order. The note can be obtained from the customer and/or edited in the order detail screen in your admin interface.
attributes
Any attributes which were attached to the order.
Example: {{attributes.gift-note}}
