D7 API documentation
What's New
Modules
Online Store in the old core
Working via register
add
clear
clearApply
clearApplyCoupon
clearByOrder
clearErrors
delete
deleteApplyByProduct
finalApply
get
getCheckCodeList
getData
getEnteredCoupon
getErrors
getForApply
getOrderId
getStatusList
getUseMode
getUserId
init
initUseMode
isEntered
isExist
isSuccess
load
logout
migrateStorage
reInit
saveApplied
setApply
setApplyByProduct
usedByClient
usedByExternal
usedByManager
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-2024
Up