# Shipment Tracking

Shipment tracking details can be added to the emails sent to customers to track their shipments.

#### Step 1: Update shipment tracking in WooCommerce panel

Navigate to **WooCommerce** > **Orders** > on the **Edit order** screen, you will see a new meta box for shipment information.

![](https://157604815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJfBhHG_1ipE5lMX4qT%2Fuploads%2FkZFpnysebnrx7lvDARPq%2Fshipment_tracking_order_view.png?alt=media\&token=e1676f20-f31f-49fc-9d29-f4e551337b5c)

Once you fill the details and save tracking, you will see a new tracking number.

![](https://157604815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJfBhHG_1ipE5lMX4qT%2Fuploads%2FaaMw39oe11bDHHbanWPR%2Fshipment-tracking-info.jpeg?alt=media\&token=eeb2c6c4-2000-47f2-81bf-043b46ae8965)

Marking the order as Complete will send the Completed Order email to the customer, including the shipment tracking code.

#### Step 2: Add shipment tracking details to email template in YayMail panel

In YayMail email builder, choose **Completed Order** email, drag and drop a Text block to the email template.&#x20;

On the text editor, you will see a **Shortcode** dropdown > choose **Order Meta** and pick the shipment tracking order meta shortcode. This will automatically insert a shipment tracking table into the customized email template.

![](https://157604815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJfBhHG_1ipE5lMX4qT%2Fuploads%2FUEqiVv6TjTbUjmrh3OYY%2Fshipment-tracking-shortcode.jpeg?alt=media\&token=6441327b-b9df-43a9-abdc-36e6c52ea6f5)

#### Step 3: Preview email template including shipment tracking info

If you already have previous completed orders with shipment tracking information, you can choose a specific order email to view it.

Within YayMail builder, choose **Sample order to show**, select a customer or order number from the dropdown, and you will see the whole email template with the order history details.

![](https://157604815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJfBhHG_1ipE5lMX4qT%2Fuploads%2FFrmPfYTGbZYatrvvuV1V%2FCompleted%20order%20email%20sample.png?alt=media\&token=e0a75565-ffc6-4c0b-9715-70c06183e2cc)

After completing the steps above, whenever you change the order status to Complete, your store will send the Completed order email to the customer, including the shipment tracking code.

{% hint style="info" %}
This tutorial uses screenshots from WooCommerce Shipment Tracking extension, but the setup principle is pretty much the same if you're using one of these plugins:

* Advanced Shipment Tracking (by Zorem)
* Shipment Tracking Pro (by PluginHive)&#x20;
* YITH WooCommerce Order Tracking
* TrackingMore Parcel Tracking plugin

For [TrackShip](https://wordpress.org/plugins/trackship-for-woocommerce/) plugin, it requires [YayMail Addon for TrackShip](https://yaycommerce.com/yaymail-addons/yaymail-addon-for-trackship-for-woocommerce/).
{% endhint %}

**Bonus:** \
You can use partial shipment and show products which has shipped.\
Please drag 2 elements: Tracking Item and Items Shipment.

![This screenshot uses YayMail Pro and Advanced Shipment Tracking by zorem](https://157604815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJfBhHG_1ipE5lMX4qT%2Fuploads%2FPn9JEnbnqfeSi7RMwiG5%2Fshipped-items.png?alt=media\&token=7ecf7974-cd80-4bfd-bd3d-ab8316db849e)
