Notifications (customers)
Customer notifications are text or email messages for:
- ASN – Advanced Ship Notifications – typically sent the day before a delivery is scheduled
- OTW – driver On The Way – when they are the next stop
- POD – Proof of Delivery – the delivery receipt for a completing an order
NOTE: all email fields support multiple recipients by separating each with a semi-colon.
Notifications are setup at the customer (ship-to) level. Each customer has a primary email. To determine if they receive POD emails at this address, our legacy method uses a tag “AutoEmailFuelInvoice”. If that tag is present, they will receive a POD email.
Our recommended method for managing customer notifications is to use the Contacts feature. You can add multiple contacts for each customer (ship-to) so 1 contact gets all notifications while another may just receive the OTW.
Click the Contacts tab and add a contact with the appropriate notification settings.
Custom HTML emails
You can customize the HTML email content using a templating language. To update the templates, you must be an admin. Access the Adow min->Company and select email templates. The sections below this show how to edit specific templates, such as the pre-delivery (ASN) notification. To revert to the default template, you can either delete the template (right click) or rename it.
NOTE: The template name is what determines which template is used. We use handlebars as the templating engine, variables are listed with {{name}} syntax.
To use a template with a different language, use the same template name but suffix with _fr (for French) for example. Set the preferred language on the customer (ship to) in order to use that template.
ASN Pre-Delivery Template
Template name: PreDeliveryNotification
For example:
<td colspan=”2″>
<table>
<tr>
<td class=”label-cell”>Order #:</td>
<td>{{order.orderNo}}</td>
</tr>
<tr>
<td class=”label-cell”>Estimated delivery time</td>
<td>{{formatDateShortDate order.Eta}} @{{formatDateNearestHour order.Eta}}</td>
</tr>
<tr>
<td class=”label-cell”>Customer</td>
<td>{{order.CustomerName}}</td>
To loop through each order detail
{{#each order.FuelOrderDetail}}
<tr class=”item”>
<td class=”auto-style4 detail-text”>{{CustomerItemDescription}}</td>
<td class=”qty detail-text”>{{OrderQty}}</td>
</tr>
{{/each}}
OTW Driver On The Way
Template name: DriverOnTheWay
POD Proof of Delivery
Template name: ePODFuelOrderDeliveryReceipt