Documentation

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

ParameterDescriptionVersion
$dataArray with coupon parameters.
$countNumber of coupons.
$limitMaximum number of attempts.

Example



© «Bitrix24», 2001-2024
Up