on 2022 Jun 28 4:06 PM
Hi All,
Would like to know if there is any way we can identity the qualifying order entry in the applied promotion. Example, buy product X get discount on product Y.
We can see discountValues information on consumed order entry but nothing on qualified product. We need it for reporting purpose.
Thanks in advance.
Request clarification before answering.
"buy Product X, get discount on Product Y".
You can know all qualifying order entries, for which promotion triggered in calculation using Promotion Results in Order.
AbstractOrder.getAllPromotionResults() which has list of List of PromotionAction, and these have the qualifying product and quantity for which any promotion triggered.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pavan,
Thanks for replying but I don't see any information related to the qualifying products in AbstractPromotionAction.
Even the PromotionResultModel from AbstractOrder.getAllPromotionResults() has information about consumed order entry but nothing for qualifying.
Please let me know if I am missing anything.
Thanks
Sure, let me explain.
Consider the promotion Buy X[3] and Get Y[1]. So if customer has 3 quantities of X product then he will get some discount on 1 quantity of Y product.
Here, if I look in backoffice, I can see discount value attached with product Y order entry as action is applied on it but there is nothing on the product X.
We have a reporting requirement where we want to know that product X caused the promotion to trigger.
Thanks again.
Got it.
I think, we don't have any info on conditional qualifying products because we use Actions in the promotion results which has only affected product and quantity
Some projects get the qualifying products by parsing the source rule conditions of particular promotion type. You can try it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.