Documentation

checkCoupon

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

Method checks if coupon is unique and exists. Static method.

Parameters

ParameterDescriptionVersion
$valueCoupon code.
$primaryPrimary entry key.
$rowArray with updated values.
$fieldObject field.

Example



© «Bitrix24», 2001-2024
Up