For all Shiptheory couriers supported by the WooCommerce Shipment Tracking plugin, the plugin will construct a direct tracking URL from the shipment tracking number returned from Shiptheory. For all other Shiptheory couriers, a Shiptheory shipment tracking URL will be provided.
For a list of supported Shiptheory couriers, please refer to this support article: WooCommerce Shipment Tracking
Should you prefer to add your own, custom courier tracking support to your WooCommerce store for a Shiptheory courier integration not directly supported by the WooCommerce Shipment Tracking plugin, please follow the instructions below.
|Note: These steps required direct modification of your WooCommerce store code and are offered on an as-is basis. Shiptheory cannot accept any responsibility for any changes made to your store or offer any support for these modifications beyond the contents of this article. If in doubt, please contact a WordPress or WooCommerce expert.|
Add a Custom Tracking Provider
To add a custom tracking provider (courier) to your WooCommerce Shipment Tracking plugin, you will need to add a code snippet to your WordPress store. Instructions and example code for this are available from WooCommerce here: https://docs.woocommerce.com/document/shipment-tracking/#section-7
To connect a Shiptheory courier to your WooCommerce, you will need to add a custom tracking provider using the exact Shiptheory carrier name. You can only add custom tracking providers for Shiptheory couriers not already supported by WooCommerce.
For example, if you wanted to create a custom tracking provider for Shiptheory's Address Only Labels, you would need to add the tracking provider name exactly as "Address Only Labels".
$providers['United Kingdom']['Address Only Labels'] = 'https://sometracking.com?id=%1$s';
To ensure that you use the correct Shiptheory courier name, browse the available couriers under the Connect a New Carrier Account section, here: https://helm.shiptheory.com/couriers.
If you have edited any of your courier names in Shiptheory, please don't use the edited name in WooCommerce, only the original courier name will function correctly.
Confirm your Custom Tracking Providers
Once you have added your custom tracking provider in WooCommerce, you can ensure that Shiptheory can see the new carrier and double-check that the name is correct.
Simply, visit your WooCommerce settings in Shiptheory and click the grey Advanced Settings icon in the bottom-left of the page. Scroll down to the Custom Shipment Tracking Providers setting and click the blue Refresh Tracking Providers button.
All tracking providers configured in your WooCommerce that are not supported by default will be listed here. If you have set up a custom provider that isn't listed here, please check that you have followed the plugin documentation instructions correctly and try again.
You may see additional couriers listed here that you haven't added yourself. This is expected if your version of the plugin differs from the version listed with the supported Shiptheory carriers on this page: WooCommerce Shipment Tracking, as WooCommerce add, remove and update the default couriers.