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
addPacket
\Bitrix\Main\Entity\Result public static \Bitrix\Sale\Internals\DiscountCouponTable::addPacket( array $data, integer $count, integer $limit );
Method creates one or several coupons for shopping cart discount. Static method.
Parameters
Parameter | Description | Version |
---|---|---|
$data | Array with coupon parameters. | |
$count | Number of coupons. | |
$limit | Maximum number of attempts. |
Example
© «Bitrix24», 2001-2024
Up