cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Product level promotion for products of the same brand and if the collective quantity is greater than a number x

former_member1320010
Participant
0 Likes
1,150

Is there a way in Hybris to declare the below promotion rules

WHEN cart contains entries whose product code is "123" , "234" or "345" and the sum of quantity of the entries of these product(which matched the above criteria of product code is "123" , "234" or "345") is greater than or equal 5 THEN give 10% discounts on these products

If the quantity of 123 is 5 then the promotion fires with the OOB product promotion

But the below case do now work Quantity of 123 -1 Quantity of 234 -2 Quantity of 345 -3

In the above case we would like to get product level discounts for product 123,234,345

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Likes

Hi Suhaim,

To achieve the above requirement you need to 1.Create a custom RuleQualifyingProductsConditionTranslator which will hold total quantity and list of products. 2. Customize orderEntryRaoPopulator in order to sum up the quantities of all the sku's belonging to a particular base or more than one base product.

Once the total quantity matches your quantity criteria set up backoffice promo along with the listed set of base products, your promotion will get applied.

Please let me know if you have any other query in the above solution suggested.

Thanks,

0 Likes

Hi Suhaim,

To achieve the above requirement you need to 1.Create a custom RuleQualifyingProductsConditionTranslator which will hold total quantity and list of products. 2. Customize orderEntryRaoPopulator in order to sum up the quantities of all the sku's belonging to a particular base or more than one base product.

Once the total quantity matches your quantity criteria set up backoffice promo along with the listed set of base products, your promotion will get applied.

Please let me know if you have any other query in the above solution suggested.

Thanks,

former_member1320010
Participant
0 Likes

Hi Abhishek ,

Thanks for the message , the rules for product would be defined as a promotion rules which is converted to drl ... but you suggest here to get the same rule to the orderEntryRaoPopulator (Customize orderEntryRaoPopulator in order to sum up the quantities of all the sku's belonging to a particular base or more than one base product.)

For the below case we already have the OOB translator which does the below case. I am wondering how each RuleIrCondition would look like if we combine many products Create a custom RuleQualifyingProductsConditionTranslator which will hold total quantity and list of products

former_member674349
Participant
0 Likes

Please share your condition and action you are using.

former_member1320010
Participant
0 Likes

We were not able to design the exact condition due to the limitation of ruleQualifyingProductsConditionTranslator where the quantity entered is only specific to a product

Attached is a sample impex of the rule template from which we can generate the rule as such

link text