Would you like to add tracking number to your WooCommerce shipments but you don't know how to do it?
Keep reading to discover all the steps required to allow your customers follow their shipments! 🔎
Configure a “webhook” in ShippyPro that will call a specific endpoint in your Woocommerce environment for each shipment (events “order_shipped” and “tracking_update”).
Once the webhook is configured in ShippyPro as explained above, you need to install this plugin for WordPress called "Code Snippets" on your site (assuming you're running WooCommerce on WordPress)
Once the plugin has been installed and it is activated, you will have a new sidebar menu item displayed:
You should then click on “Add new” and copy and paste the PHP code linked > here.
Once saved, this code will open a “listening endpoint” on your site which will listen for any request coming in from ShippyPro’s webhook you have configured earlier.
All the events of type
TRACKING_UPDATEcoming in (as in from ShippyPro's webhook to customersite.com/wp-json/bm/v1/shippypro) will be saved to your local database and associated to the corresponding WooCommerce orders. They will be visible on the order detail page on WooCommerce.
📌 Having a developer may be useful but it’s not mandatory, as the flow does not require any coding skills 😎
📌 It's important that your site's response to our webhook complies with the indications given here, you will decide the content of the response.
Now you'll be able to display your shipments' tracking number inside your WooCommerce account.