ADMIN NEW ORDER EMAIL

Fields included in default template:

  • order.customer.email: The email associated with this order.
  • order.orderNumber: The assigned number for this order in your system.
  • order.total: The total dollar amount for this order.
  • order.id: The unique system identifier for this order.

Other available fields: 

  • order.createdOn: The date the order was created.
  • order.customer.dob: The customer’s date of birth.
  • order.customer.fullName: The customer’s full name.
  • order.customer.phone: The customer’s phone number.
  • order.fulfillmentHouse: The fulfillment house used for fulfilling the customer’s order.
  • order.giftMessage: The message provided by the customer, related to a gift shipment.
  • order.shippingAddress: The address to which this order will be shipped.
  • order.shippingMethod.name: The shipping method selected by the customer for this order.
  • order.shipping: Shipping dollar amount for this order.
  • order.subtotal: Amount before tax and shipping is applied.
  • order.tax: Sales tax dollar amount for this order.
  • order.total: The total dollar amount for this order.

__________________________________________________________________

order.items: Use the following syntax for an example of how the following fields may be used:

Syntax Example

{{#each order.items}}

 <tr>
 <td>{{this.name}} ({{this.quantity}})</td>
<td class=“right”>{{currency this.subtotal}}</td>
 </tr>
{{/each}}

  • this.name: Name of the item purchased.
  • this.sku: SKU of the item purchased.
  • this.quantity: Quantity of the item purchased.
  • this.price: Price of the item purchased. 
  • this.subtotal: Subtotal dollar amount of the item purchased (i.e. price * quantity).
  • this.total: Total price, including tax and shipping, of the item purchased.
  • this.discount: Discount applied to the item purchased.

ORDER RECEIPT

Syntax Example

{{#each order.items}}

<tr>
<td>{{this.name}} ({{this.quantity}})</td>
<td class=“right”>{{currency this.subtotal}}</td>
</tr>
{{/each}}

Fields included in default template:

  • order.orderNumber: The assigned number for this order in your system.
  • order.shippingMethod.name: The shipping method selected by the customer for this order.
  • order.shippingAddress: The address to which this order will be shipped.
  • order.items: See syntax below for an example of how the following fields may be used.
  • this.name: Name of the item purchased.
  • this.quantity: Quantity of the item purchased.
  • this.subtotal: Subtotal dollar amount of the item purchased (i.e. price * quantity).
  • order.shipping: Shipping dollar amount for this order.
  • order.tax: Sales tax dollar amount for this order.
  • order.total: The total dollar amount for this order.
  • account.name: The full name of your winery.

Other available fields:   

  • order.customer.dob: The customer’s date of birth.
  • order.fullName: The customer’s full name.
  • order.customer.phone: The customer’s phone number.
  • order.fulfillmentHouse: The fulfillment house used for fulfilling the customer’s order.
  • order.giftMessage: The message provided by the customer, related to a gift shipment.
  • order.items
  • this.sku: SKU of the item purchased.
  • this.price: Price of the item purchased.
  • this.total: Total price, including tax and shipping, of the item purchased.
  • this.discount: Discount applied to the item purchased.

PASSWORD RESET

Fields included in default template:

  • link: The link that directs the customer to the password reset page. 

Other available fields: 

  • None

REGISTRATION 

Fields included in default template:

  • customer.name.first: The first name of a newly registered customer.
  • customer.email: The email address of the newly registered customer.
  • accountLink: The “auto login” link for the customer receiving the email. This link will automatically log them in, and drop them into their account area.
  • password: The new, auto generated password of the newly registered customer.

Other available fields: 

  • customer.fullName: The customer’s full name.
  • account.name: The full name of your winery.

REGISTRATION ADMIN  

Fields included in default template:

  • customer.name.first: The first name of a newly registered customer.
  • customer.name.last: The last name of a newly registered customer.
  • customer.email: The email address of the newly registered customer.

Other available fields: 

  • customer.defaultAddress: The customer’s default address.
  • customer.company: The customer’s company name.
  • customer.phone: The customer’s phone number.
  • customer.dob: The customer’s date of birth.

PRE-SHIPMENT NOTIFICATION 

Fields included in default template:

  • recipientName: Full name of the customer to whom the shipment is being sent.
  • clubName: The full name of the club.
  • releaseShipDate: Date on which the release will be shipped to the customer.
  • accountLink: The “auto login” link for the customer receiving the email. This link will automatically log them in, and drop them into their account area.

Other available fields: 

  • None

WISHLIST UPDATE

Syntax Example

{{#if balance}}

<li>New Order Total: {{currency order.total}}</li>
<li><b>Additional Amount Charged: {{currency balance}}</b></li>
{{else}}
<li><b>New Order Total: {{currency order.total}}</b></li>
{{/if}}

Fields included in default template:

  • accountName: The full name of your winery. 
  • order.orderNumber: The assigned number for this order in your system.
  • purchasedAllocation.items:  See syntax below for an example of how the following fields may be used.
  • this.name: Name of the item(s) purchased in the wish list order.
  • this.grantedQuantity: Quantity of the granted item(s) purchased in this wish list order.
  • originalTotal: Original total dollar amount for the order, prior to wish list order granting.
  • order.total: The total dollar amount for this order.
  • balance: Balance due, if applicable.
  • cardInfo: Will display the following credit card information: (brand of card) (last four digits) (expiry month) (expiry year)}

Other available fields: 

  • order.customer.dob: The customer’s date of birth.
  • order.customer.fullName: The customer’s full name.
  • order.customer.phone: The customer’s phone number.
  • order.fulfillmentHouse: The fulfillment house used for fulfilling the customer’s order.
  • order.giftMessage: The message provided by the customer, related to a gift shipment.
  • order.items:  See syntax included under ORDER RECEIPT for an example of how the following fields may be used.
  • this.name: Name of the item purchased.
  • this.sku: SKU of the item purchased.
  • this.quantity: Quantity of the item purchased.
  • this.price: Price of the item purchased.
  • this.subtotal: Subtotal dollar amount of the item purchased (i.e. price * quantity).
  • this.total: Total price, including tax and shipping, of the item purchased.
  • this.discount: Discount applied to the item purchased.
  • order.shippingAddress: The address to which this order will be shipped.
  • order.shippingMethod.name: The shipping method selected by the customer for this order.
  • order.shipping: Shipping dollar amount for this order.
  • order.tax: Sales tax dollar amount for this order.
  • order.total: The total dollar amount for this order.

CUSTOM TEMPLATES

In the custom email templates there are three availability options. The below correspond to what's available for use in the template when the associated option is selected.

CUSTOM TEMPLATE: WHEN SENT FROM ORDER
order.customer.email: The email associated with this order.
order.orderNumber: The assigned number for this order in your system.
order.total: The total dollar amount for this order.
order.createdOn: The date the order was created.
order.customer.dob: The customer’s date of birth.
order.customer.fullName: The customer’s full name.
order.customer.phone: The customer’s phone number.
order.fulfillmentHouse: The fulfillment house used for fulfilling the customer’s order.
order.giftMessage: The message provided by the customer, related to a gift shipment.
order.shippingAddress: The address to which this order will be shipped.
order.shippingMethod.name: The shipping method selected by the customer for this order.
order.shipping: Shipping dollar amount for this order.
order.subtotal: Amount before tax and shipping is applied.
order.tax: Sales tax dollar amount for this order.
order.total: The total dollar amount for this order.
account.name: The full name of your winery.

orderLink: Automatically logs the customer into your site, viewing the order

accountLink: Automatically logs the customer into your site, viewing the account area



CUSTOM TEMPLATE: WHEN SENT FROM CUSTOMER PROFILE
customer.name.first: The first name of a newly registered customer.
customer.email: The email address of the newly registered customer.
customer.fullName: The customer’s full name.
customer.defaultAddress: The customer’s default address.
customer.company: The customer’s company name.
customer.phone: The customer’s phone number.
customer.dob: The customer’s date of birth.
account.name: The full name of your winery.


CUSTOM TEMPLATE: WHEN SENT FROM CLUB MEMBERSHIP
recipientFullName: Full name of the customer to whom the shipment is being sent.
clubName: Name of the Club
shippingAddress: Address the club shipment will be sent to.
method: The shipping method to be used when sending the release.
releaseShipDate: Date the release is scheduled to ship.
releaseProcessOnDate: Date the club order will be created and charged.
missingPayment: True or False value indicating if there is a card on file for the membership.
cardExpired: True or False indicating of the card on file is expired.
account.name: The full name of your winery.

ADVANCED/FORMATTING INFO

The templates use a language called handlebars, which allows for some basic customization options.

Native Helpers

View a list of native handlebars helpers.

Custom Helpers

We have added the following helpers for convenience.

address - Formats an address into a more readable format.

{{address order.shippingAddress}}

currency - Formats an amount into a common dollar format ($1.23).

{{currency order.amount}}

date - Formats a date into a friendly format.

{{date order.createdOn}}

Did this answer your question?