I'm working on a project where the entire store products have a special price different (lowered) from the original price.

I want to be able to apply shopping cart discounts By Percentage of the Original Price just like Catalog Discount Price Rules does.

Right now, if I apply a shopping cart “Percentage of product price discount” rule, it will apply the discount to the special price instead of the original price.

Where is the function for Shopping Cart Rules at? Any details on modifying it to apply discounts on original price will be appreciated.

2 Answers 2


What you are looking for is in


rewrite the class and the Method: process on line: 340 starts the logic for "BY_PERCENT_ACTION"


You can modify shopping cart rules logic by rewriting class app\code\core\Mage\SalesRule\Model\Validator.php or, preferable, by listening to the salesrule_validator_process event in your custom module.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.