** Please read the full article and note the timing importance of when to add Tracking and Carrier information.


There is no standard method/data field to add Tracking and Carrier information within WooCommerce, but Marketplaces such as eBay require this information.



As there is no standard method in WooCommerce, our solution relies on the shipment information being in one of two places.  Please check which one works for you!


Order Notes field


As a first step, you will need to ensure your shipping plugin adds a note such as the example below to the Order Notes field in WooCommerce when the order is marked as shipped:


Order Note Example:


This order has been shipped with: Fastway. The Tracking Number is: QB000165979. The Url is: http://www.fastway.com.au/courier-services/track-your-parcel?l=QB000165979 


From this information, we can identify that the Carrier is Fastway and a Tracking Number and then provide it to the marketplace.  We will then be able to add new shipping providers as the need arises; if you are missing shipping carrier and tracking number on shipped orders, and you definitely have an order note similar to the one above, please raise a support ticket with us to see if we can add your carrier.


Order metadata


If you are storing the shipper and the consigment shipping number in the order metadata instead you can go to Settings > WooCommerce Feed and enter the metadata fields in the "Custom order and shipment fields" section.  We will be able to extract the values there.  For example, if your order metadata looks contains the shipping information like this:


"meta_data": [
    {
        "id": 16014655,
        "key": "_tracking_number",
        "value": "TEST"
    },
    {
        "id": 16014660,
        "key": "_tracking_company",
        "value": "Test"
    }
],


...you will need to enter these fields into the settings section:


_tracking_number
_tracking_company

 

If however your data is more nested, like this:


"meta_data": [
    {
        "id": 209889,
        "key": "wf_auspost_shipment_source",
        "value": {
            "shipment_id_cs": "33MNW0000104",
            "shipping_service": "australia-post",
            "order_date": "2019-05-01",
            "shipping_postcode": "4053"
        }
    }
],


...you will need to specify the path to the data, using ~~ to join the path elements together.  In this example, you would enter the following into the settings section:


wf_auspost_shipment_source~~shipment_id_cs
wf_auspost_shipment_source~~shipping_service