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.

  • Can you specify what you are actual try to do? – Dhiren Vasoya Aug 23 '17 at 10:29
  • @DhirenVasoya, the question updated. – Magento Learner Aug 23 '17 at 10:34
  • your requirement is to apply multiple coupen code, right? – Dhiren Vasoya Aug 23 '17 at 10:36
  • yes, the same functionality. – Magento Learner Aug 23 '17 at 10:37
2

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, privacy policy and cookie policy

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