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_atDateRequiredThe date with timezone at which the resource was created.
descriptionstringRequiredThe product category's description.
handlestringRequiredA unique string that identifies the Product Category - can for example be used in slug structures.
idstringRequiredThe 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
namestringRequiredThe product category's name
The details of the parent of this category.
parent_category_idnull | stringRequiredThe ID of the parent category.
Default: null
The details of the products that belong to this category.
ranknumberRequiredAn integer that depicts the rank of category in a tree node
Default: 0
updated_atDateRequiredThe date with timezone at which the resource was updated.
productCategoryProductJoinTablestringRequiredDefault: "product_category_product"
treeRelationsstring[]RequiredMethods
beforeInsert
Private **beforeInsert**(): void
Returns
void
voidvoidWas this section helpful?