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.
"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.