How do I add or modify a product category?
18.104.22.168. Adding or modifying Product Categories
To create a new product category, open the Product Category Form: “Products” ? “Add Category”.
To modify an existing category, click on the name of the category you want to edit in the category list.
Figure 4.14. VirtueMart Administration: Category Form
Product Category Fields
Used to specify whether the category will be published on the site.
- Category Name
The name that will be used to identify the category.
- Category Description
The description that will be displayed for the category.
The Place of this category in a list with other categories.
The parent category with which this category will be associated. If the category is to be a top level category, leave the Parent drop down list with the Default Top Level selected.If the category is to be a sub category of an existing category, choose the appropriate parent category from the Parent drop down list.
- Show x products per row
The number of products per row when displaying products of this category.
The Browse Page usually has to be adjusted when the number of products per row has been changed. You can use browse_2 for 2 products per row, browse_3 for 3 products per row and so on (maximum per default: 5).
- Category Browse Page
The template file for displaying the products of this category in a list. “Managed” Mode looks for the Setting for “Show x Products per Row” and decides, which browse page template will be chosen.
- Category Flypage
This is the template file for displaying the Product Details of a product in this category. You can create your own templates by modifiying existing templates (in the directory
The file for preparing the display of the Flypage is
/html/shop.product_details.php. Some of the details that you can’t find in the Flypage template can be found there.
You should leave this field empty when you’re not sure what to fill in.
22.214.171.124. Reordering or sorting Product Categories
You can reorder categories the way you want. There are different ways to achieve this.
Use the blue arrows in the category list to move a category up or down
Use the input fields in the rows of the category list to change the list order. If you have finished changing the values, click on the “Save” icon in the column header.
Use the “sort alphabetically” icon in the list header. You can sort all categories in your store alphabetically using this functionality. Please note that this can’t be undone. Once the categories are reodered you would have to change back manually.
126.96.36.199. Removing Product Categories
Before deleting an existing product category, all sub categories associated to the product category must be removed through either deletion or re-association. VirtueMart will not allow the deletion of a product category while subcategories still exist for that product category.
Categories can be removed from the store although they contain products. If products are assigned to more than one category, those products won’t be removed if you delete just one category. But if a product is just assigned to one category, it will be deleted if you delete its category.
Removing a category can be done by clicking the “trash bin” icon in the last column of each row in the product category list. But you can also click the checkboxes of the categories you want to remove and click the “Remove” button in the toolbar.