Would you like to add tracking number to your WooCommerce shipments but you don't know how to do it?
No problem! You have 2 options.
Flag in the WooCommerce connection from the Marketplace page the following two boxes:
"Update my WooCommerce ..." updates the order status as "shipped".
"Send Tracking Notes" sends the tracking code within the "notes" field in the order details. You can also decide whether to make the note private or shared with the merchant, and then public.
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.