How to insert and send a link to the public order in an email to the customer
The link to the public order (Track & Trace) can be inserted directly into the email template using the variable field {order.public_url} or the link can be saved into the order metadata and then sent automatically. The system generates a public order for each order and it includes status, shipment number, invoice and options for complaints or cancellations according to settings.
1) Inserting the link into the email template
Open the Emails section and insert the variable {order.public_url} into the body of the template for the given event where you want the link to appear. The variable will be replaced with a unique link to the public order when sent. In templates you can also add the option to attach PDF invoices if you want to send the invoice together with the link.
3) When and how is the email sent
The email with the link can be sent automatically on predefined events (e.g. Order received, Shipped) or manually from the order detail via the “Send email” button, where you select a specific template with the embedded {order.public_url}. If you use bulk actions, a similar send can be initiated for multiple orders at once.
2) Automatic saving of the link into the order meta data
If your eshop platform supports meta data on orders, enable the setting “Automatically save link to eshop”, which will save the link under the key public_url in the order meta data. This allows the link to be used in external systems or to be available directly in the eshop administration.
4) Testing and localization of the link
After adjusting the template, perform a send test from the order detail and check whether the link opens the correct public order and that translations are displayed according to the delivery country. The public order is shown in the language of the delivery country, but the customer can change the language directly on the Track & Trace page.
Use the variable {order.public_url} in the email template text. When sent, this variable will be replaced with a unique link to the Track & Trace page for that order.
Activate the “Automatically save link to eshop” setting — the system will then save the link into the order meta data under the key public_url, which can be shared by an external eshop or other integrations.
In the order detail use the "Send email" button, select the desired template (which contains {order.public_url}) and send it to the customer. You can also set automatic sending on events via the template settings.