setApplyByProduct
boolean public static \Bitrix\Sale\DiscountCouponsManager::setApplyByProduct( array $product, array $couponsList, boolean $oldMode = false );
Method saves in memory the information on coupons applied to product. Static methods. Used in the Catalog module.
Parameters
Parameter | Description | Version |
---|---|---|
$product | Array with product parameters. | |
$couponsList | Array with coupons. | |
$oldMode | When parameter is true, uses compatibility mode with legacy user providers. |
Example
© «Bitrix24», 2001-2025