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
Parameter | Description | Version |
---|---|---|
$value | Coupon. | |
$primary | Primary key. | |
$row | Current data. | |
$field | Object \Bitrix\Main\Entity\Field . |
Example
© «Bitrix24», 2001-2024