Support

Liquid variables in notifications

Updated on October 13, 2020

Alpaca uses liquid to load dynamic content into notifications and order status content. Liquid objects and variable names are denoted by double curly braces: {{ and }}. Notifications have access to the following liquid objects:

  • shop
  • customer
  • order
  • attributes
  • locations

Shop

The following attributes are available on the shop object.

  • shop.name The name of your Shopify store (e.g. Snowdevil).
  • shop.domain The domain of your Shopify store (e.g. snowdevil.myshopify.com).
  • shop.contact_email The primary contact email of your Shopify store. (e.g. sales@snowdevil.com)

Customer

The following attributes are available on the customer object.

  • customer.name The full name of a customer. (e.g. John Smith)
  • customer.first_name The first name of a customer (e.g. John)
  • customer.last_name The last name of a customer (e.g. Smith)
  • customer.email The customer’s email address, if available.
  • customer.phone The customer’s phone number, if available.

Order

The following attributes are available on the order object.

  • order.name The human-readable name of orders. (e.g. #1000)
  • order.type By default, Alpaca tags every order with the order type. (e.g. alpaca:pickup, alpaca:delivery, alpaca:online)
  • order.order_status_url The URL of the order status page.
  • order.pickup_schedule_url The URL where customers can go to (re)schedule a pickup time.
  • order.delivery_schedule_url The URL where customers can go to (re)schedule a delivery time.

Attributes

  • attributes['Pickup location'] The address where customers pick up orders from.
  • attributes['Pickup time'] The pickup time selected by the customer, if available.
  • attributes['Deliver from'] The address where the order will be delivered from.
  • attributes['Delivery time'] The delivery time selected by the customer, if available.

Location

The following attributes are available on the location object.

  • location.address The address of this location (e.g. 150 Elgin Street, Ottawa)
  • location.name The internal name of this location (e.g. Warehouse)
  • location.pickup_instructions The pickup instructions for this location.

More support articles

Still need help?

Send us an email and we'll get back to you as soon as we can.

Free 7-day trial

Try it for free