well to actually make this work

mortendk's picture
Offline
Internationalizationizer
Joined: 04/07/2008
Juice: 32
well to actually make this work

and to add the price into the cart:

* -- uc_cart.module -- *
around lin1889
global $user;
if (in_array("privatkunde", $user->roles)){
$item->price = $product->cost;
}else{
$item->price = $product->sell_price;
}

but this is still pure evil - this should be put out into a module, so we dont end up with a osCommerce way of doing things, hmm "somebody" should do something
and to make this really good it would be sweet if it was based on an cck field etc

/morten.dk

Different role prices. Do you think is a good solution? By: enkara (58 replies) Thu, 07/31/2008 - 14:50