In which file/class, Magento checks if the coupon code is already used by the logged in customer or not?

  • 5
    what is the magento version?
    – MrTo-Kane
    Dec 29, 2016 at 9:29

3 Answers 3


It is in app/code/core/Mage/SalesRule/Model/Validator.php

Also you can see the function in http://freegento.com/doc/d0/d40/_validator_8php-source.html

See the function process() on line 00106

file -> app/code/core/Mage/SalesRule/Model/Validator.php

method -> protected function _canProcessRule

public function process(Mage_Sales_Model_Quote_Item_Abstract $item)

in app/code/core/Mage/SalesRule/model/Validator.php around 297 line

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.