What's new

How to display WooCommerce customer order details ?

alexanderbiscajin

New Talker
PF Member
Messages
1
Highlights
0
Reaction score
0
Points
0
Peak Coin
0.000000¢
DB Transfer
0.000000¢
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?

 
Last edited by a moderator:
Back
Top