Editing Email Templates

Editing Email Templates

Every email sent from Zahara (apart from the password reset email), has an HTML template that you can style to suit. These are found in Business Settings and the HTML Templates tab. 

By clicking into the templates above you can edit the wording and the layouts. They are all HTML so knowledge of HTML or CSS will help you style and tune these to suit. The fields that you can drop onto the templates are called Placeholders. These are fields wrapped in { } brackets. 

Adding Placeholders

Open your template by clicking into it.

You can see here the placeholders. You can edit any of this text. The Placeholders are found by Clicking Insert in the menu and then Insert Template. 

Find the placeholder you want – they are logically named – and then click Save. This will drop the placeholder onto the template. You can cut and paste them to move them around. 

Line items 

The line items template are managed separately in the yellow section. For now, we recommend you only use the Purchase Order Document Lines  template and Invoice Approval Lines, which are called {line_items} & {invoice_line_items} respectively.

There are two things to know here. The first is the code that places the line items into the email template. This should be as follows: (HTML)

<tr>
<td colspan=”100%”>{line_items}</td>
</tr> 

To access the HTML code, click View and then source code. So edit the HTML if you need to move the Line Items part of the template. Be careful using the WYSIWYG editor because you can inadvertently remove key parts of the HTML. 

The code above calls the Purchase Document Lines template (shown in yellow). If you click in and look at this template you will see it looks something like this: 

If you view the HTML you will see it is: 

You need to maintain the HTML which starts as a <tr> and ends with a </tr> (table row)

Each field needs to be wrapped in a <td></td> (table data)

You can style these to suite with code such as <td style=”text-align: right; margin-right: 10px;”>{net_amount}</td>

So in summary, you need to marry the header fields in the Email template with the individual fields in the line items template. The invoice line items placeholder can include the Nominal codes and other internal specific information whereas the Purchase Order Document Lines template is shared with the Purchase Order PDF so your supplier wont want to be burdened by your coding. 

    • Related Articles

    • Add an Email Signature

      You can add an email signature to the emails being sent from Zahara such as Approval emails. You can also add a logo to the email signatures; this will likely be an image stored on your own website. Edit the template Head into Business Settings and ...
    • Editing your purchase order template

      All templates are edited in Business Setting. The HTML templates tab will reveal all templates – Email, Document & Line Items, Purchase Order Document Template You have two templates that make up the Purchase Order that is sent to the supplier. The ...
    • GRN Reminders

      You can have your buyers or project managers emailed a reminder to GRN (receipt) for their deliveries. To enable this feature, head to Business Settings and Suppliers & GRN’s Setup In Business Settings > Suppliers & GRNs you will see the section ...
    • The Preparer Role

      Introduction The Preparer’s job is to setup the payment approval process and commence the payment run. They will choose invoices to be paid, and select Approvers from the list of available payment approvers for the business to construct a workflow. ...
    • Supplier order acceptance

      Introduction We have two ways for a supplier to accept an order. The first is more sophisticated. It requires the supplier to digitally sign your terms and conditions before receiving the order. The second is very easy, you can add Accept/Reject ...