Documentation

isExist

array|boolean public static
\Bitrix\Sale\DiscountCouponsManager::isExist(
 string $coupon
);

When coupon with $coupon exist, the method returns array with coupon parameters with keys:

  • ID - coupon ID;
  • COUPON - coupon code;
  • MODULE_ID - module ID.

This static method is used when verifying coupon uniqueness among all modules

Parameters

ParameterDescriptionVersion
$couponCoupon code for verification.

Example



© «Bitrix24», 2001-2024
Up