WooCommerce use case

Put shipment tracking links in your WooCommerce order emails

Give the buyer a direct way to follow their shipment. ShopMagic inserts the links already available for that order in your Flexible Shipping setup.

An order email includes the order number and the available link to track the shipment.

Use the tracking data already attached to the order

Your shipping workflow adds a tracking link to the order. When your chosen order event runs, the ShopMagic email includes the available link or links.

Subject: Track the shipment for order #{{ order.order_number }}

You can follow your shipment using the link below.

What you’ll need

  • WooCommerce, ShopMagic and a compatible Flexible Shipping setup that provides shipment tracking links for the order.

  • A test order with at least one tracking link already available. Choose an event that occurs after your workflow adds the link.

Set up the automation in ShopMagic

  • 1

    Check when the link becomes available

    Use an order that has a shipment with a tracking URL. Choose Order Completed only if your store normally marks the order complete after tracking is available.

  • 2

    Add the tracking links to an HTML email

    Add Send Email to {{ order.billing_email }}. Insert {{ order.shipment_tracking_links }} in the message. Keep a short explanation next to the links.

  • 3

    Check the email against the order’s shipments

    Run the workflow for a controlled order. Open the email, follow each Shipment tracking link and verify its destination. Try an order without tracking to check whether the workflow timing and message still make sense.

Fit the message to how you ship

  • Use neutral wording when an order can have more than one shipment.

  • If tracking is sometimes missing at completion, review the timing used to trigger the email before you launch it.

Questions about this workflow

The workflow reads tracking links that the shipping setup already provides for the current order.

Yes. When the order provides several tracking URLs, the placeholder can show the available links together.