frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to display WooCommerce customer order details ?

I have use the code in funtions.php

add_action( 'woocommerce_admin_order_data_after_billing_address', 'shopy_order_customer_information');
function shopy_order_customer_information( $order ){
global $post;

$customer_user = get_post_meta( $post->ID, '_customer_user', true );
echo '<p><strong style="display: block;">'.__('Order Customer name').':</strong> <a href="user-edit.php?user_id=' . $customer_user .">' . get_user_meta( $customer_user, 'customername', true ) . '</a></p>';

}

I am having some error while coding as i have find several resources. I am having same problem that the details not displayed properly. Is there any issue with theme?

Tagged:
Sign In or Register to comment.

Computer Talk Forum

| Computer and Internet Discussion
@ 2021 Computer Talk Forum, All rights reserved. Material Design is a design language developed by Google. Material Design makes more liberal use of grid-based layouts and responsive animations and transitions.
Powered by VanillaForums, Designed by ThemeDorks

Resources

Continue the discussion