I have created a cart price rule with coupon code. The condition should be that the code should be applied for all categories except a few categories like this: enter image description here

I don't know why but this is not working. Any help would be appreciated. Thank you.

  • please run php bin/magento indexer:reindex Commented Oct 28, 2021 at 12:50
  • I tried that but it didnt work. It is happening because other categories are also assigned to the product.
    – mechanic
    Commented Oct 28, 2021 at 12:58

1 Answer 1


try to go to the action section in the rules and add the same conditions

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.