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

How to get promotion engine condition data in action strategies

Former Member
0 Likes
359

Hi Team,

In one of my customized promotion I need the condition data part (like the qualifying product in cart) in my action strategies. Is there way to get condition info (i.e the eligible /qualifying product) in action strategies?

Any help would be really appreciated.

Best Regards,

Accepted Solutions (0)

Answers (1)

Answers (1)

vinay_malempati
Active Participant
0 Likes

qualified entries will be available in action and in turn the products. FYR u can check this OOTB class RuleOrderPercentageDiscountExcludedProductsRAOAction

Former Member
0 Likes

Thanks for the response.CartRao contains all the entries in the cart, but my requirement is to give discount on certain quantity of the product, also need the start date and end date info of the promotion in my action strategy to fetch a customers order within that time period. My main objective is to get whole promotion details in my action strategy. I am getting "promotionrule code" by "context.getRuleMetadata()" in action then retrieving the promotion source model by the below code: this solves my problem ruleService.getRuleForCode(code);