on ‎2018 Dec 04 11:01 AM
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,
Request clarification before answering.
qualified entries will be available in action and in turn the products. FYR u can check this OOTB class RuleOrderPercentageDiscountExcludedProductsRAOAction
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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);
| 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.