Hello webgobe,
I hope you get a notification about new replies.

I just found in this topic that the hack about discount I used is your code - thank you!
The hack generally works fine but unfortunately there is a case when it doesn't work. (on: VM: 1.1.9; Joomla 1.5.6)
If a guest adds products to the cart first and he logs in only later with a user login who is a member of an other shopper group then the cart content will be updated and the product prices will be recalculated.
Unfortunately VM applies the product discount on the shopper group price in this case and I cannot find which other function makes that. My question is which other function makes this recalculation that should be amended to get things work properly.
Example for the desc. of problem:
Product base price: 100
product discount: 20
default shopper group price: 100 - 20 = 80
wholesaler shopper group price = 50 (and shouldn't be amended, his discount is zero)
default behaviour of VM would be in case of wholesaler:
wholesaler shopper group price = +50
minus product discount: - 20
wholesaler net end price = 30 = WRONG
Thanks
gap