WordPress Managed Hosting - 40% Off For 4 Months - Coupon Code: BFCM2021 Avail Now

How To Display Customer Order Details in WooCommerce

Moeez — January 29, 2018 2 Minutes Read
Remove term: Display WooCommerce Customer Order Details Display WooCommerce Customer Order Details

When processing a WooCommerce order, you often need information that is not available on the order page, thus, you need to switch pages or go to the customer database to get the information. Often, the most common information item is the customer username and profile.

By default WooCommerce order page shows limited information about the Orders in the admin panel.

In this tutorial, I will demonstrate how to display customer information on the order page. The good news is that all you have to do is to place a simple snippet at the end of the functions.php file of the theme.

woocommerce_admin_order_data_after_billing_address is WooCommerce hook used to display admin data.
wpblog_order_customer_information is a function used to display user information through get_user_meta.

Get Customer Details From Orders – The Alternate Method

Here is another function that adds similar functionality and get customer information at the order page:

$order_meta uses get_post_meta, which is meta key to return data on the basis of order_id.

Note: add the above code in functions.php which located in your theme folder or whenever you want to display the information about order details


In this short tutorial, I showed how you could easily add information to WooCommerce order page. If you need help, just drop a comment below.

Bonus Content

How to Add/Set Custom Order Status in WooCommerce Stores

Create Faster WordPress Websites!

Free eBook on WordPress Performance right in your inbox.

    Create Faster WordPress Websites!

    Free eBook on WordPress Performance right in your inbox.

      Moeez is ‘The’ blogger in charge of WPblog. He loves to interact and learn about WordPress with people in the WordPress community. Outside his work life, Moeez spends time hanging out with his friends, playing Xbox and watching football on the weekends. You can get in touch with him at moeez[at]wpblog.com.



        WordPress Help Zone - Ultimate WordPress Pit-Stop

        Learning WordPress? Or are you expert enough to help others? Join our WP Facebook group!