Documentation

checkCoupon

boolean|string public static
\Bitrix\Catalog\DiscountCouponTable::checkCoupon(
 integer $value,
 array|integer $primary,
 array $row,
 \Bitrix\Main\Entity\Field $field
);

Checks that coupon with such code is unique within the complete product. Static method.

Parameters

ParameterDescriptionVersion
$valueCoupon.
$primaryPrimary key.
$rowCurrent data.
$fieldObject \Bitrix\Main\Entity\Field.

Example



© «Bitrix24», 2001-2024