Add Shipment Tracking Numbers to Emails and PDFs
Add shipment tracking titles, numbers, and URLs to invoice emails and Invoice PDFs.
How to add shipment tracking numbers to emails and PDFs
Open the email template or Invoice PDF HTML section where you want the tracking details to appear.
Paste the code below where 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.
Where you paste this code determines where the tracking section appears.
For PDFs, go to Orders > PDF Settings and edit the HTML in the relevant text area.
For emails, go to Settings > Emails to open and edit an email template.
Updated 11 days ago
