1

I am trying to modify coupon code functionality. I have got a situation where I am not able to find where a coupon code is validated. I have searched the entire code base. Can anyone point me in right direction?

I am trying to apply Multiple Coupon codes.

4
  • Can you specify what you are actual try to do? Aug 23, 2017 at 10:29
  • @DhirenVasoya, the question updated. Aug 23, 2017 at 10:34
  • your requirement is to apply multiple coupen code, right? Aug 23, 2017 at 10:36
  • yes, the same functionality. Aug 23, 2017 at 10:37

1 Answer 1

6

Take a look at the class Magento\SalesRule\Model\Utility located at the vendor/magento/module-sales-rule/Model/Utility.php. Coupon code validation starts in the method canProcessRule() where it can mark the rule as invalid if coupon code does not match conditions like usage per customer etc.

Your Answer

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

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