Hello,
I really like this module and have it set up in the store. I have 3 different pricing roles for customers, ie regular customer, dealer, and wholesaler. If I want to create an order for a customer that is called in by phone, I log in as Admin and create an order in Ubercart. When I add the products to the cart, it uses the price set for the ADMIN, not the customer. So for every customer I have to change the Admin's role pricing to enter the orders.
I would like it to be possible that the customers pricing would be used when anyone creates an order using the admin/create orders functions.
Bounty available.
2dogrc
Comments
Comment #1
jlockhartI know this is an old issue but I have a client complaining about this issue as well. I think I have a fix but I'm not sure its the right approach. I'm basically checking the page path and if its the admin order edit page then I load the user from the current order and pass that on to the pricing rather than the logged in user.
Here is the function with my changes, sorry its not a patch.
Hope that helps.
Comment #2
rocketeerbkw commentedSeems kind of hacky-ish but I can't really think of a better solution. Next time I get some free time I'll do some testing and get this rolled in.
On just looking at the code, it seems like you missed a change to
$pricing_useron this lineif ( array_key_exists( $user->uid, $user_rules ) ) {