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?
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: