prepareCanBuyZero
string public static \Bitrix\Catalog\ProductTable::prepareCanBuyZero( string $value );
Method gets value for the field CAN_BUY_ZERO
(Make out-of-stock items available for purchase) and, if equal to D
, returns the module's field setting CAN_BUY_ZERO
instead of current value. Service static method.
Parameters
Parameter | Description | Version |
---|---|---|
$value | CAN_BUY_ZERO field value. |
Example
© «Bitrix24», 2001-2024