How to add tracking details to WooCommerce order emails
When you fulfill a WooCommerce order in OrderKrab, the OrderKrab plugin saves the parcel's tracking number and carrier tracking link on the order and moves it to Completed. Since plugin version 1.7.0, one checkbox adds both to the Completed order email WooCommerce already sends, so the customer gets the tracking number and a Track your shipment button in your store's usual email design. No code needed.
- 1
Turn it on. In WordPress go to OrderKrab → Emails, tick Add the shipment tracking number and a "Track your shipment" button to the Completed order email, and click Save changes. That is the whole setup — the checkbox is off until you tick it.
- 2
How it works. The plugin sends no extra email. When you click Set as Fulfilled in OrderKrab, the plugin stores the tracking on the order and marks it Completed in the same step, so WooCommerce's own Completed order email goes out with a Shipment tracking section above the order summary: the tracking number, linked to the carrier's tracking page, and a Track your shipment button. The plain-text version of the email gets the same details as two text lines.
- 3
Customize the email if you like. Subject, heading, closing text, or switching the email off: WooCommerce → Settings → Emails → Completed order. Logo, colors, and footer: the email template options on that same screen — the button follows your store's base color automatically. To change the layout of the tracking section itself, copy
wp-content/plugins/orderkrab-for-woocommerce/views/emails/orderkrab-tracking-info.phptowp-content/themes/your-theme/woocommerce/emails/orderkrab-tracking-info.phpand edit the copy; it survives plugin updates (plain-text version: same paths with anemails/plain/folder). - 4
Test it. Click Set as Fulfilled on a test order in OrderKrab and open the Completed order email the customer received — the Shipment tracking section sits right above the order summary.
Good to know
- The checkbox is off by default, so updating the plugin changes nothing on its own. If your store already shows the OrderKrab tracking another way — a code snippet in your theme or an email customizer plugin — remove that first, or leave the checkbox off, so customers do not see the tracking twice.
- Orders you complete by hand in WooCommerce have no OrderKrab tracking, so the section simply does not appear and the email looks exactly as before.
- If an order was already marked Completed before you fulfilled it in OrderKrab, that email has already gone out; the tracking is still saved on the order and shown as an order note under WooCommerce → Orders.
- Store pick-up orders show the tracking number only, since there is no carrier tracking page.
- For developers: the tracking is stored on the order as
_orderkrab_tracking_codeand_orderkrab_tracking_url, and theorderkrab_wc_tracking_email_idsfilter picks which WooCommerce emails carry the section (default: the customer Completed order email).
