Emails

Introduction

This section is destined to create email templates, which after can be set to be sent automatically when the order status changes. If you want to send an email automatically, you need to link it with the email from which it will be sent.

Emails overview

For each sales channel, you have the option to create templates separately, each has its table clearly marked. We have several columns:

  • Name - The working name of the email will be displayed for orders in the system

  • Type - Classic email or with HTML support

  • Automatic sending - YES / NO - if you set YES the email will be sent automatically after the required order status changes

  • After changing to status - Send an email based on the change to the individual status we have created (status creation - separate chapter)

  • Actions - Ability to edit email

Edit / Create an email

Firstly, enter the name of the email – this way will be displayed in the system. Next, choose email type - classic or HTML (we recommend using HTML for more style settings). Next, choose the sales channel for which we create the email. If it is necessary, check automatic sending. Then we set when the email will be sent - after system action or after a user action. It is also necessary to set from which email will be sent. This can be set in integrations. If you want to receive information on another email, you can set it to a copy of the email. Now comes the creation of the body of the email itself. This is the same as when writing a classic email. So, fill in the subject and then the content. In the subject and body, it is possible to use so-called macros, which replace some functions in email see. Edit email.

List of macros

Macro

Function

%document(invoice_id)%

invoice number

%document(invoice_url)%

invoice link

%document(credit_id)%

credit note number

%document(credit_url)%

credit note link

%document(receipt_id)%

cash receipt number

%document(receipt_url)%

cash receipt link

%document(proforma_id)%

proforma invoice number

%document(proforma_url)

proforma invoice link

%order(note)%

customer note

%order(money)%

total order value

%order(name)%

customer name

%order(street)%

customer street

%order(city)%

customer city

%order(zip)%

customer postcode

%order(state_code)%

customer country

%order(email)%

customer email

%order(phone)%

customer phone number

%order(delivery_name)%

recipient name

%order(delivery_street)%

recipient street

%order(delivery_city)%

recipient city

%order(delivery_zip)%

recipient postcode

%order(delivery_state_code)%

recipient country

%order(delivery_email)%

recipient email

%order(delivery_phone)%

recipient phone number

%order_items_start%

start of listing items in the order

%order_item(name)%

item name

%order_item(count)%

reserved number for customer

%order_item(ordered)%

ordered number from the customer

%order_item(note)%

product note

%order_item(price)%

price per unit

%order_item(price_original)%

price per unit before discount

%order_items_stop%

end of the list of items in the order

Note: If you use the list of items in an order, you must insert % order_items_start% and % order_items_stop% at the end. We only insert once even if there are multiple items in the order.