Search Knowledge Base by Keyword

Handling FedEx dual account

The code facilitates you to switch the credentials for international shipping. With this code snippet, you can get the rate as well as print the labels for international shipping with the alternative account when using the WooCommerce FedEx Shipping Plugin with Print Label.

Add the following code to your functions.php or any where relevant.

Explanation of Rate Request Snippet
Assign Origin Country code, Postal code associated with alternative account, Alternative account number, Alternative account meter number, Authentication Key of alternative account, and Password of alternative account to the respective variable. If $ship_from_country_code is not empty, then assign all the values to $request array and return it for getting rate.

Explanation of Label Request Snippet

Assign Origin Country code, Postal code associated with alternative account, Alternative account number, Alternative account meter number, Authentication Key of alternative account, and Password of alternative account to the respective variable. If $ship_from_country_code is not empty, then assign all the values to $request array and return it for printing label.

Last Updated On September 25, 2018

One thought on “Handling FedEx dual account

Comments are closed.