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
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
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.
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 }}