Jump to content

How to display WooCommerce customer order details ?


alexanderbiscajin
 Share

Recommended Posts

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?

Link to comment
Share on other sites

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...