Skip to Content
0
Jun 04, 2018 at 06:38 PM

Do not apply action created in promotion rule on some products

145 Views

We are currently working with hybris 6.6 and we are using the promotion engine to support discounts and rebates on products.

If a product fulfills different criterias, the rules configured in backoffice (and thus the actions on the product) should not be considered. Thus the discount (fixed or percentage) should not be granted on that product. One criteria is a particular property value on a price row of that product.

I've already thought about overriding the RuleCalculationService or to modify the different strategies (e.g. DefaultOrderEntryAdjustActionStrategy), but both ways had some problems and I wonder if there is a more elegant way to solve this requirement. Is there a way to add some sort of "filter" to the evaluation context?

Any help or hints would be greatly appreciated. Thanks in advance, Saskia