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-2025