Jump to content

Get correct price with reductions


sanl

Recommended Posts

Hello, 

 

I have 2 customers groups: default and wholesale_group. In wholesale_group I have group discount 30% for all products.

 

And If I would like to do clearance or special product discount I always do discount for only customers (default group). So If retail price <= wholesale group price, wholesale_group clients should see retail price with reduction not with group reduction.

 

I tryed to do it in classess/product.php, but I couldn`t get price with reduction to compare: 

if dealer {
   if (retailprice <= wholesale_group_price) {
     $ price = $price - specific reduction }
  else {
$price = $price  - $group-reduction
}

Should I do it in product.php file or i must do it in product.js file? 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...