Answer the question
In order to leave comments, you need to log in
Get a list of applicable coupons for each item?
Good afternoon!
Coupons of 3 types can be applied to goods in the basket: Coupon for one item of the order, Coupon for one order, Reusable coupon.
I'm trying to find out which coupon applies to a particular item.
$order = \Bitrix\Sale\Order::load(129929);
$discounts = $order ->getDiscount();
$arCoupon = $discounts ->getApplyResult();
foreach($arCoupon['COUPON_LIST'] as $cupon => $arrData){
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question