Inventory
Access, create, update and delete your inventory items.
Methods
Invoke via \Components\Commerce\Products\Inventory::method()
Click a method name to copy it.
Deletes a record from the database
Parameters
$iProductInventoryId
int
A record's product_inventory_id
Return
Returns true if record existed and was deleted, otherwise false
Gets a record from the database
Parameters
$iProductInventoryId
int
A record's product_inventory_id
Return a set of records from the database
Returns all inventory items for a product id
Gets a single field from a record
Parameters
$iProductInventoryId
int
A record's product_inventory_id
Returns the number of records in the database (matching the filter if specified)
Saves a record into the database
Saves a specific column of a row into a database
Parameters
$iProductInventoryId
int
A record's product_inventory_id
Return
Array of
Inventorys that match the search query.