M
M
MiXaLiN172019-07-26 17:57:28
1C-Bitrix
MiXaLiN17, 2019-07-26 17:57:28

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){
}

From the information received, I don’t understand how to understand which product the coupon was applied to.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question