Hi everybody!
I need the posibility of havind different prices per role. I've written a few lines, and it seems to work, but I don't know if there's something that I'm forgetting. My hack is done in uc_cart.module.
I've added this simple code in line 1862:
global $user;
if (in_array("Botigues", $user->roles)) {
$item->price = $product->list_price;
}
if (in_array("Empreses", $user->roles)) {
$item->price = $product->cost;
}and I've made my own template for products, so I display the price similarly as I change it in the code above. Do you think that I can have any problem doing this?
Thank you very much!











Joined: 08/09/2007