Delete All UPS Shipment Details for Specific Order with UPS WooCommerce Shipping
While using our UPS WooCommerce Shipping Plugin, the process of shipment creation happens in two steps. First, the shipment is created, and then the ‘accept request’ is sent to UPS for approval. Usually, both requests are fired under one process. So you will get the label after the process.
In certain rare cases, the shipment is created, but the ‘accept trigger’ fails under UPS. This results in partial data being filled in order details after shipment creation, which makes the plugin unable to re-create the shipment. The following code snippet enables you to delete all UPS shipment details for specific order with UPS WooCommerce Shipping, in case the ‘accept trigger’ fails under UPS.
Go to Appearance > Editor > Theme Functions (functions.php) and insert the code to enable this functionality:
How to use:
– Open the order page.
– Just add ‘&reset’ with URL. (eg: <My website>wp-admin/post.php?
– Press Enter and Confirm Delete.