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