Change the Description of Commodities while creating label
In this guide, we will tell you how to change the description of commodities while creating the shipping label when using the WooCommerce FedEx Shipping Plugin with Print Label. Check out below.
The code facilitates you to change the description of commodities while creating the label for international shipping.
Add the following code to your functions.php or anywhere relevant.
In the above code, $request contains the API request data which will be sent to FedEx while creating the label and $order parameter contains order data. This code is given for changing the description to ‘ My Product Description’ as an example. For the required commodity value is changed to ‘ My Product Description’ and stored in the $request. Function returns array $request.