Ross.Nospario Posted February 28, 2014 Share Posted February 28, 2014 (edited) *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? Edited February 28, 2014 by Ross.Nospario (see edit history) Link to comment Share on other sites More sharing options...
Ross.Nospario Posted February 28, 2014 Author Share Posted February 28, 2014 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 234in classes/SpecificPrice.php It appears to have done it. Will be thoroughly testing now. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now