Liquid Template Variables - order

From Spiffy Stores Knowledge Base

Revision as of 15:51, 1 May 2009 by Admin (talk | contribs)

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"'.

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

included_taxes

Returns the amount of taxes included in the order.

shipping_price

Returns the amount of shipping included in the order.

subtotal_price

Returns the total amount of the order less discounts.

discounts_savings

Returns the amount of any discounts that have been applied to the order (as a negative amount).

discounts_amount

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.

order_quantity

Returns the total number of items in the order.

line_items

Returns an array of Line_Item objects.

fulfilled_line_items

Returns an array of fulfilled Line_Item objects.

unfulfilled_line_items

Returns an array of Line_Item objects that have not been fulfilled.

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