Open B0Bka opened 7 years ago
$arCoupon = \Bitrix\Sale\Internals\DiscountCouponTable::getList(array('filter' => array('=COUPON' => $coupon))) -> fetchAll(); if(count($arCoupon) > 0) { CCatalogDiscountCoupon::SetCoupon($coupon); }