cancel
Showing results for 
Search instead for 
Did you mean: 

Issue on catalog rule with category condition

Issue on catalog rule with category condition

I created a new Catalog Price Rule on my Magento CE 2.3.2

 

I also have in my products 2 custom attributes: brand and season.

 

I have 3 products:

  1. price=100; brand=X; season=Y; categoryIds=3,4,5
  2. price=100; brand=X; season=Y; categoryIds=3,4,6
  3. price=100; brand=X; season=Y; categoryIds=3,4,7

How I created the rule:

-Info

Name=test
Status=Enabled Websites=All selected
Customer Groups=All selected
From Date=Today date
Priority=0

-Conditions

If [ALL] of these conditions are [TRUE]:
    Brand [IS] X (selected from dropdown list)
    Season [IS] Y (selected from dropdown list)
    Category [IS NOT/NOT CONTAINS/IS NOT ONE OF] 5 (I tried with this 3 options)

-Actions

Apply=first option selected
discount=10

Expected Result:

  1. new price=100;
  2. new price=90;
  3. new price=90;

Actual Result:

  1. new price=90;
  2. new price=90;
  3. new price=90;

I tried with a lot of combination but there is no way to exclude a product of a specific category.

Hope for help, thanks in advance.