ProductCategory
A product category can be used to categorize products into a hierarchy of categories.
Constructors
constructor
**new ProductCategory**()
A product category can be used to categorize products into a hierarchy of categories.
Properties
The details of the category's children.
created_at
DateRequiredThe date with timezone at which the resource was created.
description
stringRequiredThe product category's description.
handle
stringRequiredA unique string that identifies the Product Category - can for example be used in slug structures.
id
stringRequiredThe product category's ID
A flag to make product category visible/hidden in the store front
Default: false
A flag to make product category an internal category for admins
Default: false
name
stringRequiredThe product category's name
The details of the parent of this category.
parent_category_id
null | stringRequiredThe ID of the parent category.
Default: null
The details of the products that belong to this category.
rank
numberRequiredAn integer that depicts the rank of category in a tree node
Default: 0
updated_at
DateRequiredThe date with timezone at which the resource was updated.
productCategoryProductJoinTable
stringRequiredDefault: "product_category_product"
treeRelations
string[]RequiredMethods
beforeInsert
Private **beforeInsert**(): void
Returns
void
void
voidWas this section helpful?