0

Magento 2 Cart Pricing Rule not getting applied when customer is already login and i am making change in rule from magento admin. In order to apply rule i have to logged out customer first, then login again. After this discount start getting applied. I am not sure about it. Magento version is 2.1.9 and it is in development mode.

2
  • MAy be some caching issue. Run caching command from CLI and then check. Commented Feb 27, 2018 at 13:39
  • No,it's not caching issue. i tried but it's not working. Commented Feb 28, 2018 at 16:36

1 Answer 1

1

This is normal behavior of the Sales Rule module. All discounts will be applied in case the totals have been recollected (as an example, when the shipping address was changed by the user). If you want to recollect all totals manually you should write a plugin for the saving new rule action, which gets all active quotes and manually recollects its totals, but this is not normal because it can take some time to obtain the result.

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.