Difference between revisions of "Liquid Template Variables - order"

From Spiffy Stores Knowledge Base

Line 14: Line 14:
  
 
<pre>1234</pre>
 
<pre>1234</pre>
 +
 +
== <code>order_date</code> ==
 +
 +
This is the date of the order.
 +
 +
<pre>12th September, 2008</pre>
 +
 +
== <code>order_time</code> ==
 +
 +
This is the time of the order.
 +
 +
<pre>14:39</pre>
  
 
== <code>customer</code> ==
 
== <code>customer</code> ==
Line 34: Line 46:
  
 
Returns the amount of tax on the order.
 
Returns the amount of tax on the order.
 +
 +
== <code>tax_label</code> ==
 +
 +
Returns the type of tax for the order.
 +
 +
<pre>GST</pre>
  
 
== <code>shipping_price</code> ==
 
== <code>shipping_price</code> ==

Revision as of 15:45, 1 May 2009

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

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