on ‎2019 Jun 19 10:48 AM
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
Request clarification before answering.
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Please share your condition and action you are using.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.