Costumize Discount Codes Logic

56 1 9

I have read online about a PriceRule resource which can be used to modify the logic behind discount codes.

I have a discount code which gives 40% discount when there are more than 50 items, but this also works if I have for example 49 items + 1 other item. I want to make the code work only for the single items that have a quantity over 50.


I assume this would be pretty straight forward if I could access this logic myself. Can someone point me into whereabouts could I find these codes for my discounts?


I would also want my discount code to give 40% for items over 50 quantity, and 50% for items over 200 quantity.