Search Knowledge Base by Keyword

Code snippet to display shipping phone number in label in place of billing phone number

Here’s a code snippet to display shipping phone number in the shipping label in the place on the billing phone number when using the WooCommerce FedEx Shipping Plugin with Print Label.

Code Snippet Link:

https://gist.githubusercontent.com/WooForce/6b9c085ffa2f23a3edd8d5f2f9b134dc/raw/c38aa2e0a6bedd97c0bc7bd65c8d4887f4f8bdf8/functions.php

This code snippet displays shipping phone number in a label in place of billing phone number. Add the following code in Appearance –> Editor –> functions.php.

The screenshot below shows the billing and shipping address and phone numbers.

order details

Without Using Snippet: The billing phone number appears in the shipping label.

shipping labels

After using Snippet: The shipping phone number appears in the shipping label.

shipping label with tracking

Last Updated On September 21, 2018