Jump to content

Special Price logic


Recommended Posts

*Specific Price

 

 

I need to change the way Special Prices decide which discount to use, but not using the shop/country/currency logic.

 

I've attached a screenshot with an example of the discounts I need to include.

 

What the logic needs to do is simply see which of the discounts is the highest and select that. At the moment it feels the priority is:

 

Customer -> Group -> Generic

 

I need it to ignore that priority and just look at the Impact, selecting the best reduction.

 

Is there any easy way to change this, or which model should I be looking at to change?

post-715608-0-45043100-1393587513_thumb.jpg

Edited by Ross.Nospario (see edit history)
Link to comment
Share on other sites

I changed this

 

                ORDER BY `id_product_attribute` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `score` DESC'); 

 

to

                ORDER BY `id_product_attribute` DESC, `from_quantity` DESC, `id_specific_price_rule` ASC, `reduction` DESC');

Line 234
in classes/SpecificPrice.php

 

It appears to have done it. Will be thoroughly testing now.

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...