Email Variable Reference

From Shopify Wiki

(Redirected from Shipping confirmation)
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.

Email templates are found in the "Preferences / Email & Notifications" section of your Shopify admin and are not theme-specific. Here are the liquid email templates which you can customize from there:


  • Order Confirmation
  • New Order Notification
  • New Order Notification (mobile)
  • Shipping confirmation
  • Shipping update
  • Contact Buyer


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

Additional liquid tags available are:

{{ billing_address.first_name }}

{{ billing_address.last_name }}

{{ shipping_address.first_name }}

{{ shipping_address.last_name }}

For a complete list of accessible variables please refer to Order