Example

Suppose we have these two products:

  • Product_1 in category “Poster” and its base price is €20
  • Product_2 in category “Poster, Photo” and its base price is €40

Suppose we want to create the following rules for the “Admin” role:

  • Rule 1
    • Rule type: “All Product”
    • Discount: 40%
    • Priority: 1
  • Rule 2
    • Rule type: Category “Poster”
    • Discount: 20%
    • Priority: 2
  • Rule 3
    • Rule Type: Category “Photo”
    • Discount: 50%
    • Priority 3

Which is the price shown to admins for Product_1?
The rule that applies in this case is Rule 2 (Rule 1 will not apply because there’s a more specific one).
So, 20-(20*20/100) = 16

Which price will be assigned to Product_2 for admins?
This time, Rules 2 and 3 will apply.
40-(40*20/100)= 32 this is the discount given by Rule 2.
32-(32*50/100) = 16 this is the discount they get after Rule 3 applies.