1

I am working on magento 2.2.0. I have created some cart price rules with discount. I have added 5% product price discount in rule action. And 3 to 4 AND conditions for rule.

I want to know in magento 2.2.0 where these cart price rules are actually applied ? because with 4 conditions it's not working, working with only one condition.

Any help is much appreciated!

Thanks

  • Did you debug the location which I mentioned you? – Keyur Shah Jan 30 '18 at 17:49
  • Yes, I tried but no success! – kapil yadav Jan 31 '18 at 5:28
  • 1
    No success means? This is the exact place where magneto apply shopping cart rules. You just need to debug your code by xdebug nothing else. :) – Keyur Shah Jan 31 '18 at 6:39
3

The main class is responsible to validate shopping cart price rule is

\Magento\SalesRule\Model\Validator.php , and I would suggest you to debug process() method and canProcessRule() from \Magento\SalesRule\Model\Utility class. you will surely get why your rule is not working.

0

Make sure that your new cart rules are all allowed to work in parallel in each other and not just stopping after the first rule is applied:

Go to: Marketing -> Cart Price rules and then click on each of the rules you wish to apply

ensure that Discard subsequent rules is set to "No"

Hope this helps.

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.