Thanks Lorro
So would that be something like the following
<p><?php printf( __( ‘You have received an order from %s. The order is as follows:’, ‘woocommerce’ ), $user->$order->get_user(); // false for guests
if( $user ) {
$username = $user->user_login;
} else {
$username = ‘Guest’;
}
Sorry if wrong, Really novice here!