The condition in this test code is set to admin user or not.
if($user->uid == 1){
$item->price = $product->sell_price;
}else{
$item->price = $product->list_price;
}If you want it set to a specific role, you'll need something like this:
global $user;
if(in_array("name_of_your_role", $user->roles)){
$item->price = $product->sell_price;
}else{
$item->price = $product->list_price;
}


Joined: 11/22/2007