Skip to main content

Liquid variable reference guide

Written by Sam Forde

Available variables

The following variables can be used when interacting with orders, email templates and SMS templates.

{{ name }}
{{ order_number }}
{{ shop.name }}
{{ formatted_created_at }}
{{ formatted_updated_at }}
{{ attributes.Checkout-Method }}
{{ attributes.Pickup-Location-Company }}
{{ attributes.Pickup-Location-Phone }}
{{ attributes.Pickup-Location-Address-Line-1 }}
{{ attributes.Pickup-Location-Address-Line-2 }}
{{ attributes.Pickup-Location-City }}
{{ attributes.Pickup-Location-Id }}
{{ attributes.Pickup-Location-Region }}
{{ attributes.Pickup-Location-Postal-Code }}
{{ attributes.Pickup-Location-Country }}
{{ attributes.Pickup-Date }}
{{ attributes.Pickup-Time }}
{{ attributes.Pickup-Day }}
{{ attributes.Pickup-Note }}
{{ attributes.Delivery-Date }}
{{ attributes.Delivery-Time }}
{{ attributes.Delivery-Note }}
{{ attributes.Delivery-Day }}
{{ attributes.Delivery-Location-Id }}
{{ attributes.Custom-Attribute-1 }}
{{ attributes.Custom-Attribute-2 }}
{{ attributes.Custom-Attribute-3 }}
{{ attributes.Shipping-Date }}
{{ attributes.Shipping-Day }}
{{ attributes.Shipping-Note }}
{{ shipping_address.first_name }}
{{ shipping_address.last_name }}
{{ shipping_address.name }}

Differentiate between pickup, delivery, and shipping

If you want to display different content based upon the checkout method use the attributes.Checkout-Method

{% if attributes.Checkout-Method == "pickup" %}
This is a pickup order
{% endif %}
{% if attributes.Checkout-Method == "delivery" %}
This is a delivery order
{% endif %}
{% if attributes.Checkout-Method == "shipping" %}
This is a shipping order
{% endif %}
Did this answer your question?