How to change the product price according to user role
I have two types of customers: normal customer and dealer
The normal customer by (1 t-shirt * quantity)
The dealer have a discounts. So he can buy packages of t-shirts (2 small, 2 medium and 1 large) with a special price..
So I used the price field to store the normal customer price and used the cost-price to store the package price.
So when checking out.. if the user is an anonymous or normal customer use the amount in "price" field to check out.
Else if the user has the role "dealer" then use the price in the "cost-price" field for checking out.
Better way is to provide dealer with a select list on the "add to cart form" so he can choose to bay an individual product (buy like a normal customer) or buy a "package"..
I hope you discuss the best way to do that and how to do that.
It's really an important feature in most stores to allow "dealers" to by packages instead of individual products.
Actually I don't if this has been done before.
Want your help, thank you.