Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Luke,
    You can do that by creating a custom template and then check the user role:

    <?php
    // get $user_id from order (note that this doesn't work for guest orders!)
    $user_id = get_post_meta( $order->id, '_customer_user' , true );
    if ( !empty($user_id) && $user_id != 0 ) :
    	$user = get_user_by( 'id', $user_id );
    
    	// check if customer has 'role_1' (define your own)
    	if ( in_array( 'role_1', $user->roles ) ) :
    ?>
    
    ... logo code from template ...
    
    <?php endif; endif; ?>

    Hope that helps!

    Ewout

Viewing 1 replies (of 1 total)
  • The topic ‘Hide company logo based on user role’ is closed to new replies.