Function Hook_ecommerce_catalogue_items->get_available_quantity
Definitions
sources/hooks/systems/ecommerce/catalogue_items.php
- Get currently available quantity of selected product.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: int
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$type_code | ID_TEXT | required parameter | N/A | N/A | The product codename |
$consider_own_cart_contents | boolean | True | N/A | N/A | Whether to consider the contents of your own cart |
$member_id | ?MEMBER | Null | N/A | N/A | The member we are checking against (null: current member) |
Return
- Quantity (null: no limit)
- Type: ?integer
- Set: N/A
- Range: N/A