Creating a New Product Category
Product Categories are used to organize your products. These groupings allow multiple products to be handled as a single unit. For example, a product category could be used to apply discounts or other offers to a set of products, to assist buyers in finding products, or to promote certain products to a specified account or account group.
Creating Product Categories
-
Go to the Global Menu then click Global in the Sites box on the right hand side.
-
Once on the Global site, click Categorization → Categories.
-
Click the () button to create a Vocabulary first.
-
Enter the following:
-
Name: Cosmetics
-
Description: All Cosmetics
-
Allow Multiple Categories: Yes
-
Choose Asset Type: Commerce Product
-
Required: Yes
-
-
Click Save.
The new Vocabulary has been created and Categories can now be added.
Field | Description |
---|---|
Name | Name of the Vocabulary |
Description | Description of the Vocabulary |
Allow Multiple Categories | Toggle to allow one-to-one or one-to-many relationship |
Choose Asset Type | List of all Asset Types in Liferay DXP which includes Commerce Product |
Required | Toggle to control whether all Commerce Products must have an associated Category |
Creating a Product Category
Because categories can be nested, store owners can organize their categories with subcategories. For example, a category called Hair Products could have its own subcategories such as Shampoo, Hair Gels, and Color Dyes.
To create a Category:
-
Click the Vocabulary where the Categories are to be added. To continue the previous example, click Cosmetics.
-
Click the () button to add a new Category.
-
Enter the following:
- Name: Hair Products
- Description: All hair products
-
Click Save.
The new Category has been created. You can either create another Category for another product that sits parallel in the hierarchy or create a nested subcategory in the description above. To create a subcategory, click the Hair Products link and then click the (+) button to create another Category. Once the new Category has been created, the hierarchy can be observed in the breadcrumb navigation.
Configuring Product Categories
Categories nest hierarchically. While this allows multiple categories to be grouped together and handled as a single unit, it also can makes it difficult for administrators to view the entire vocabulary. It is possible to view all categories at once.
To configure the Product Category’s Hierarchy:
-
Go to the Global Menu () → Control Panel → System Settings.
-
Click Assets under the Contents section.
-
On the Asset Categories Web on the left menu, select Flattened Tree from the Category Navigation Display Style drop-down menu.
-
Click Save to apply the changes. You can always change it back to the default view later.
Commerce 2.1 and Below
Creating a Vocabulary
-
Navigate to the Control Panel → Go to Other Site → My Sites → Global.
-
Once on the Global site, click Categorization → Categories.
-
Click the (+) button to create a Vocabulary first.
-
Enter the following:
-
Name: Cosmetics
-
Description: All Cosmetics
-
Allow Multiple Categories: Yes
-
Choose Asset Type: Commerce Product
-
Required: Yes
-
-
Click Save.
The new Vocabulary has been created and Categories can now be added.
Field | Description |
---|---|
Name | Name of the Vocabulary |
Description | Description of the Vocabulary |
Allow Multiple Categories | Toggle to allow one-to-one or one-to-many relationship |
Choose Asset Type | List of all Asset Types in Liferay DXP which includes Commerce Product |
Required | Toggle to control whether all Commerce Products must have an associated Category |
Creating a Category
Because categories can be nested, store owners can organize their categories with subcategories. For example, a category called Hair Products could have its own subcategories such as Shampoo, Hair Gels, and Color Dyes.
To create a Category:
-
Click the Vocabulary where the Categories are to be added. To continue the previous example, click Cosmetics.
-
Click the (+) button to add a new Category.
-
Enter the following:
- Name: Hair Products
- Description: All hair products
-
Click Save.
The new Category has been created. You can either create another Category for another product that sits parallel in the hierarchy or create a nested subcategory in the description above. To create a subcategory, click the Hair Products link and then click the (+) button to create another Category. Once the new Category has been created, the hierarchy can be observed in the breadcrumb navigation.
Configuring Product Categories
Categories nest hierarchically. While this allows multiple categories to be grouped together and handled as a single unit, it also can makes it difficult for administrators to view the entire vocabulary. It is possible to view all categories at once.
To configure the Product Category’s Hierarchy:
-
Navigate to the Control Panel → Configuration → System Settings.
-
Click Assets under the Contents section.
-
On the Asset Categories Web on the left menu, select Flattened Tree from the Category Navigation Display Style drop-down menu.
-
Click Save to apply the changes. You can always change it back to the default view later.