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
checkPacket
\Bitrix\Main\Entity\Result public static \Bitrix\Sale\Internals\DiscountCouponTable::checkPacket( array $data, boolean $newDiscount = false );
Method checks data for creating one or several coupons. Static method.
Parameters
Parameter | Description | Version |
---|---|---|
$data | Array with coupon data. | |
$newDiscount | Flag specifies discount as new. |
Example
© «Bitrix24», 2001-2024
Up