Re: Re: Quote:

Posts: 46
Joined: 11/22/2007

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;
}

$100 - Need module for dual pricing By: end user (24 replies) Thu, 02/07/2008 - 21:43