Categories
Access, create, update and delete the categories of products that you sell online.
Methods
Invoke via \Components\Commerce\Products\Categories::method()
Click a method name to copy it.
Gets a record from the database
Parameters
$iProductCategoryId
int unsigned
A record's product_category_id
Deletes a record from the database
Parameters
$iProductCategoryId
int unsigned
A record's product_category_id
Return
Returns true if record existed and was deleted, otherwise false
Return a set of records from the database
Returns all categories for a specific product
Returns all category Ids for a specific product
Retrieve all parent categories for a specific product
Leaf level categories are first, then their parents.
Returns all parent category Ids for a specific product
Leaf level categories are first, then their parents.
Gets a single field from a record
Parameters
$iProductCategoryId
int unsigned
A record's product_category_id
Returns the number of records in the database (matching the filter if specified)
Retrieves a category from its page URI suffix
Retrieves the parent category of a specific entity
Returns all parent categories of a specific entity
Saves a record into the database
Saves a specific column of a row into a database
Parameters
$iProductCategoryId
int unsigned
A record's product_category_id
Return
Array of
Categories that match the search query.