init
void public static \Bitrix\Sale\DiscountCouponsManager::init( integer $mode = self::MODE_CLIENT, array $params = array(), boolean $clearStorage = false );
Method initializes coupon manager. Static method.
Parameter
Parameter | Description | Version |
---|---|---|
$mode | Operation mode. | |
$params | Array with original parameters. Keys are case-sensitive:
| |
$clearStorage | When accepts true, removes entered coupons on a current hit. |
Example
© «Bitrix24», 2001-2024