• Resolved lepress

    (@lepress)


    I have added the customized field of Shipping Phone to Shipping Address.
    How to display the field of Shipping Phone As the Billing Phone right below the Billing
    Name on the page of Order Details ? /my-account/view-order/

    function action_woocommerce_order_details_after_customer_details($order) {
       echo 'Hello'.get_post_meta( $order->get_id(), '_shipping_phone', true );
    }
    add_action('woocommerce_order_details_after_customer_details', 'action_woocommerce_order_details_after_customer_details', 10, 1);

    This Code works well. But It diplays the Shipping Phone After the Addresses, not Right below the Shipping Name.

    Which is the right Hook I should call ?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to display the shipping phone field ?’ is closed to new replies.