Add Shipment Tracking Numbers to Emails and PDFs
Add shipment tracking titles, numbers, and URLs to your invoice emails and Invoice PDF.
How to add Tracking Numbers to invoice emails and PDF
- Open the email template, or the Invoice PDF HTML section where you want the tracking details to appear.
- Paste the code below into the HTML you want the tracking section to be displayed.
<div>
<h3>
Tracking
</h3>
{{foreach shipment_tracking as tracking}}
<div>Title: {{var tracking.title}}</div>
<div>Number: {{var tracking.number}}</div>
<div>URL: {{var tracking.url}}</div>
{{/foreach}}
</div>- Save your changes, then send a test invoice email or generate a test Invoice PDF to confirm the tracking information appears correctly.
For PDFs go to Orders > PDF Settings and edit the raw html of any text area to add the tracking number array.
For Emails go to Settings > Emails to open and edit an email template.
Updated about 4 hours ago
