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
getForApply
array|boolean public static \Bitrix\Sale\DiscountCouponsManager::getForApply( array $filter, array $product = array(), boolean $uniqueDiscount = false );
Method returns list of coupons to be applied with account of filter. Static method.
Parameters
Parameter | Description | Version |
---|---|---|
$filter | Array with filter by coupons. | |
$product | Array with product parameters. | |
$uniqueDiscount | When true, returns a single coupon for discount. |
Example
© «Bitrix24», 2001-2024
Up