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

Creating Bulk Promotions in Hybris 6.6

Former Member
0 Kudos
392

Hello experts,

Our requirement is we have to create bulk promotion for specific products,suppose if we order 100 products give 20% discount,for 200 products 25% discount.For this any OOB exits,how we can achieve this please let me know.

Thank you..

Sindhu

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello!

For this requirement we are implementing a groovy that get the product via flexibleSearch, then create the promotion (you could set the attributes via property, promotion template...) and finally publish them using ruleMaintenanceService, the compileAndPublishRules method.

If you save the PromotionSourceRuleModel in the groovy, hybris will fire an error about not finding them in the database, so you will need to commit the transaction in the groovy itself programatically.