Email Variable Reference

From Shopify Wiki

Revision as of 19:16, 24 June 2009 by Edward (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Emails sent out from your shop are rendered with Liquid, just like the pages that make up your storefront.

All email templates have access to the properties of their corresponding order. The Shipping confirmation and Shipping update templates also have access to a Fulfillment object.

Example new order notification for store admins

subject:

  [{{shop_name}}] New Order
  

body:

  {{ shop_name }},

  {{ billing_address.name }} placed a new order with you today ({{ date | date: "%b %d %I:%M%p" }}). 

  Payment method:
    {{ gateway }}

  Delivery method: 
    {{ shipping_method.title }}

  Shipping address:
    {{ shipping_address.name }}
    {{ shipping_address.street }}
    {{ shipping_address.city }}, {{ shipping_address.province }}  {{ shipping_address.zip }} 
    {{ shipping_address.country }}
    {{ shipping_address.phone }}


  {% for line in line_items %}
    {{ line.quantity }}x {{line.title }}		(sku: {{ line.sku }})
    Colour: {{ attributes.COLOUR }}
  {% endfor %}
  
 

For a complete list of accessible variables please refer to Order

Personal tools