• Resolved ronan.lawler@gmail.com

    (@ronanlawlergmailcom)


    Hello all.. I’m struggling with this πŸ™ any help appreciated
    woocommerce-delivery-notes V3.4.2

    Would it possible for somebody with some PHP skill to post a function.php filter to print the billing Phone number on the delivery note as the last line of the Shipping address with label “Ph:”
    (I know billing phone is already printed in the order details .. But I need it on my printed shipping address labels, example:

    Shipping Address:
    Mr. A Fish
    2 pond Road
    Dublin
    Ireland
    Ph: 003531234567

    Any help Greatly appreciated!

    https://wordpress.org/plugins/woocommerce-delivery-notes/

Viewing 1 replies (of 1 total)
  • you can do that with a hook and a function that goes into your functions.php file:

    function example_phone_number_below_shipping_address( $address, $order ) {
    	return $address . '<p>' . $order->billing_phone . '</p>';
    }
    add_filter( 'wcdn_address_shipping', 'example_phone_number_below_shipping_address', 10, 2 );
Viewing 1 replies (of 1 total)
  • The topic ‘Add billing_phone to shipping address’ is closed to new replies.