D7 API documentation
What's New
Modules
Online Store in the old core
Working via register
addPacket
checkCoupon
checkDiscountId
checkPacket
checkType
clearDiscountCheckList
deleteByDiscount
disableCheckCouponsUse
enableCheckCouponsUse
generateCoupon
getCouponTypes
getMap
getTableName
isCheckedCouponsUse
isValidCouponType
onAfterAdd
onAfterDelete
onAfterUpdate
onBeforeAdd
onBeforeUpdate
onDelete
onUpdate
prepareCouponData
saveApplied
setDiscountCheckList
updateUseCoupons
validateCoupon
validateDiscountId
validateType
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
Parameter | Description | Version |
---|---|---|
$value | Coupon code. | |
$primary | Primary entry key. | |
$row | Array with updated values. | |
$field | Object field. |
Example
© «Bitrix24», 2001-2024
Up