Difference between revisions of "Liquid Template Variables - order"

From Spiffy Stores Knowledge Base

Line 12: Line 12:
  
 
This is the number of the order.
 
This is the number of the order.
 +
 +
<pre>1234</pre>
  
 
== <code>customer</code> ==
 
== <code>customer</code> ==

Revision as of 15:19, 14 May 2008

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

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 dicounts 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 ShippingMethod object. ???

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

Returns any attributes which where attached to the order.

Example usage:

{{ attributes.gift-note }}