Order Settings

Adding Tracking and Carrier Information in WooCommerce

How to use the Order Notes field in WooCommerce

Using eBay Link preformatted rules

Editing an existing rule

Adding a new rule

Sending Tracking via WooCommerce Order metadata


In eBay Link go to Settings<<WooCommerceFeed<<General

Order Settings

There are two Order Settings options available for WooCommerce version 2.6.0 or higher:


Mark orders as shipped if carrier and tracking code is not provided

By default, once the order status is "Completed" in WooCommerce, we will mark it as shipped and tell the marketplace that the order is shipped, regardless of whether or not it has shipper and tracking code information.  


or


DO NOT mark an order as shipped unless carrier and tracking code is provided

If your business process is to mark the order as complete and then add this information then tick DO NOT mark an order as shipped unless carrier and tracking code is provided so that we will hold the order as pending until we see the shipping information, even if the order is "Completed". Please note if this is ticked and you do NOT provide tracking details your orders will remain as pending Shipment in eBay


If you want the channel that the order has come from to be added into a metadata field in the order, add the metadata field name in the Marketplace channel field.  You can then refer to this to separate out orders from different marketplaces in WooCommerce.

 

Adding Tracking and Carrier Information in WooCommerce

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!


How to use the Order Notes field in WooCommerce


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   


eBay Link has a table which has a number of preformatted rules which can extract the Tracking and Courier Information (or you can add your own)

Using eBay Link preformatted rules

The easiest option is to add the information using preformatted rules eg the preformatted Fastway au rule is

If your order notes were:

Track your order at https://fastway.com.au/courier-services/track-your-parcel?l=QB000165979

The Fastway rule above would see that fastway.com.au is in the text and that a tracking code could be extracted between '/track-your-parcel?l=' and the end of the text


Editing an existing rule

If your Carrier and Tracking is not being input in WooCommerce in exactly the same format as an existing rule, you can edit and existing rule one. Click 'edit' at the right of the existing rule.

A new window will open

Fill in these details

  1. Rule is for carrier (choose from the dropdown for supported carriers)
  2. The text that identifies the carrier
  3. The text that identifies the start of the tracking code
  4. The text that identifies the end of the tracking code. This can be left empty if there is no text after the tracking code


  5. Hit "go"


Adding a new rule

If your Carrier and Tracking is not being imported from WooCommerce by an existing rule, you can create one. Click 'Add a new rule' at the bottom right of the preformatted rules.

A new window will open

Fill in these details

  1. Rule is for carrier (choose from the dropdown for supported carriers)
  2. The text that identifies the carrier
  3. The text that identifies the start of the tracking code
  4. The text that identifies the end of the tracking code. This can be left empty if there is no text after the tracking code

  5. Hit "go"


Sending Tracking via WooCommerce Order metadata



If you are storing the shipper and the consigment shipping number in the order metadata instead you can go to Settings<<WooCommerceFeed<<General 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 in eBay Link ( Settings<<WooCommerceFeed<<General):


_tracking_number
_tracking_company

 e.g.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~~shipping_service
wf_auspost_shipment_source~~shipment_id_cs