Liquid Template Variables - order
From Spiffy Stores Knowledge Base
The Order variables are exported and made available to Order Confirmation emails and notifications, and to the Additional Content & Scripts section that is available under Preferences -> Checkout & Payment"'.
Contents
- 1 order_name
- 2 order_number
- 3 order_date
- 4 order_time
- 5 customer
- 6 shop_name
- 7 subtotal_price
- 8 total_price
- 9 tax_price
- 10 tax_label
- 11 shipping_price
- 12 discount_price
- 13 discount_code
- 14 gateway
- 15 shipping_method
- 16 shipping_address
- 17 billing_address
- 18 line_items
- 19 note
- 20 attributes (Not Currently Implemented)
order_name
The is the name of the order.
By default, the name is formatted as a hash (#) followed by the order number. For example,
#01234
order_number
This is the number of the order.
1234
order_date
This is the date of the order.
12th September, 2008
order_time
This is the time of the order.
14:39
customer
Returns a customer object containing the email and name of the customer.
shop_name
Returns the name of your shop.
subtotal_price
Returns the sub-total value of the order.
total_price
Returns the total of the order, which is the sub-total plus tax and shipping, if applicable.
tax_price
Returns the amount of tax on the order.
tax_label
Returns the type of tax for the order.
GST
shipping_price
Returns the amount of shipping included in the order.
discount_price
Returns the amount of any discounts that have been applied to the order.
discount_code
Returns the discount code that was used, if any.
gateway
Returns the name of the payment gateway that was used.
shipping_method
Returns a the shipping method used for the order.
shipping_address
Returns a shipping address object.
billing_address
Returns a billing address object.
line_items
Returns an array of Line_Item objects.
note
Returns the note that was attached to the order.
attributes
(Not Currently Implemented)
Returns any attributes which where attached to the order.
Example usage:
{{ attributes.gift-note }}