--- layout: default title: order nav: group: Liquid Variables --- # order The order object can be accessed in order email templates, the Thank You page of the checkout, as well as in apps such as Order Printer. The order object has the following attributes: {% table_of_contents %} {% anchor_link "order.billing_address", "order-billing_address" %} Returns the billing address of the order. {% anchor_link "order.cancelled", "order-cancelled" %}

Returns true if an order is cancelled, returns falseif it not.

{% anchor_link "order.cancelled_at", "order-cancelled_at" %}

Returns the timestamp of when an order was cancelled. Use the date filter to format the timestamp.

{% anchor_link "order.cancel_reason", "order-cancel_reason" %}

Returns the cancellation reason of an order, if it was cancelled.

{% anchor_link "order.created_at", "order-created_at" %}

Returns the timestamp of when an order was created. Use the date filter to format the timestamp.

{% anchor_link "order.customer", "order-customer" %}

Returns the customer associated to the order. {% anchor_link "order.customer_url", "order-customer_url" %}

Returns the URL of the customer's account page.

Input

{% highlight html %}{% raw %} {{ order.name | link_to: order.customer_url }} {% endraw %}{% endhighlight %}

Output

{% highlight html %}{% raw %} http://john-apparel.myshopify.com/account/orders/d94ec4a1956f423dc4907167c9ef0413 {% endraw %}{% endhighlight %}
{% anchor_link "order.discounts", "order-discounts" %}

Returns an array of discounts for an order.

Input

{% highlight html %}{% raw %} {% for discount in order.discounts %} Code: {{ discount.code }} Savings: {{ discount.savings | money }} {% endfor %} {% endraw %}{% endhighlight %}

Output

{% highlight html %}{% raw %} Code: SUMMER2014 Savings: -€50 {% endraw %}{% endhighlight %}
{% anchor_link "order.email", "order-email" %}

Returns the email associated with an order.

{% anchor_link "order.financial_status", "order-financial_status" %}

Returns the financial status of an order. The possible values are:

- pending - authorized - paid - partially_paid - refunded - partially_refunded - voided {% anchor_link "order.fulfillment_status", "order-fulfillment_status" %}

Returns the fulfillment status of an order.

{% anchor_link "order.line_items", "order-line_items" %}

Returns an array of line items from the order.

{% anchor_link "order.location", "order-location" %}

POS Only. Displays the physical location of the order. You can configure locations in the Locations settings of the admin.

{% anchor_link "order.name", "order-name" %} Returns the name of the order, in the format set in the Standards & formats section of the General Settings.

Input

{% highlight html %}{% raw %} {{ order.name }} {% endraw %}{% endhighlight %}

Output

{% highlight html %}{% raw %} #1025 {% endraw %}{% endhighlight %}
{% anchor_link "order.order_number", "order-order_number" %}

Returns the integer representation of the order name.

Input

{% highlight html %}{% raw %} {{ order.order_number }} {% endraw %}{% endhighlight %}

Output

{% highlight html %}{% raw %} 1025 {% endraw %}{% endhighlight %}
{% anchor_link "order.shipping_address", "order-shipping_address" %} Returns the shipping address of the order. {% anchor_link "order.shipping_methods", "order-shipping_methods" %} Returns an array of shipping_method variables from the order. {% anchor_link "order.shipping_price", "order-shipping_price" %}

Returns the shipping price of an order. Use a money filter to return the value in a monetary format.

{% anchor_link "order.subtotal_price", "order-subtotal_price" %}

Returns the subtotal price of an order. Use a money filter to return the value in a monetary format.

{% anchor_link "order.tax_lines", "order-tax_lines" %}

Returns an array of tax_line variables for an order.

Input

{% highlight html %}{% raw %} {% for tax_line in order.tax_lines %} Tax ({{ tax_line.title }} {{ tax_line.rate | times: 100 }}%): {{ tax_line.price | money }} {% endfor %} {% endraw %}{% endhighlight %}

Output

{% highlight html %}{% raw %} Tax (GST 14.0%): $25 {% endraw %}{% endhighlight %}
{% anchor_link "order.tax_price", "order-tax_price" %}

Returns the order's tax price. Use a money filter to return the value in a monetary format.

{% anchor_link "order.total_price", "order-total_price" %}

Returns the total price of an order. Use a money filter to return the value in a monetary format.

{% anchor_link "order.transactions", "order-transactions" %}

Returns an array of transactions from the order.