D7 API documentation
What's New
Modules
Catalog in the old core
calculateAvailable
clearProductCache
getCurrentRatioWithMeasure
getDefaultAvailableSettings
getMap
getPaymentPeriods
getPaymentTypes
getProductTypes
getTableName
isExistProduct
loadDefaultProductSettings
prepareCanBuyZero
prepareQuantityTrace
prepareSubscribe
validatePriceType
validatePurchasingCurrency
validateRecurSchemeType
validateTmpId
calculateAvailable
string public static \Bitrix\Catalog\ProductTable::calculateAvailable( array $fields );
Method returns flag Y/N set for product purchase availability for passed product array. Static method.
Parameters
Parameter | Description | Version |
---|---|---|
$fields | Array of product fields. Array must have the keys specified as follows: QUANTITY , QUANTITY_TRACE and CAN_BUY_ZERO . |
Exceptions
Example
© «Bitrix24», 2001-2024
Up