Documentation

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

ParameterDescriptionVersion
$productArray with product parameters.
$couponsListArray with coupons.
$oldModeWhen parameter is true, uses compatibility mode with legacy user providers.

Example



© «Bitrix24», 2001-2024
Up