I want to display WooCommerce customer order details

I have placed a snippet in Functions.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 ?

Reference: Display Customer Order Details in WooCommerce

Thanks for sharing, Actuall\y I am a co-founder of the famous b2b store and I have implemented a quick order plugin by which I can show my customers their complete order details on one page.

This is closed as it is outside the revived thread guidelines. Feel free to create a fresh topic, or PM one of the Leaders if you think this was incorrectly closed. See here for more info.