The standard way to use categories is for the logical grouping of similar products within your online store.
Shoppers can browse your shops product range by the categories you have created.
Because products may belong to one or more logical groups (categories), VirtueMart products can belong to multiple categories.
Categories are often structured (hierarchically) to help guide your customers to the appropriate areas of interest:-
|Category Level 1||Category Level 2||Category Level 3 etc…|
|Winter Clothing||Winter Hats||Winter Shoes|
In the example above, if you want an item to show when browsing the Clothes category AND the Shorts category it should be assigned to BOTH categories at a product level.
The rationale for this approach is to help reduce the page response timings by only searching the specified category and not all subordinate categories. Additionally, the display of all products lower in the hierarchy is often undesirable as it can negatively impact the shoppers browsing experience.
To help assign products to categories, there is a bulk associate categories feature:-Note it does not add, or subtract products for the selected categories, it just sets the selected categories.
When a category is unpublished products assigned to the category are not automatically unpublished. This is a product feature that prevents a product that is associated to multiple categories from accidentally being unpublished.
If you want to unpublish products, you can do this using the Product List in the Admin section, it is then easy to select a category to list the products, use the "select all" checkbox to mark the products required and click the toolbar "unpublish" icon. It helps to use the sorting for published products.
Control categories (Dummy categories)
It is possible to control different automatic behaviours of VirtueMart using Dummy categories.
When using Dummy categories for control they should be set as Unpublished
These categories will not be visible to shoppers and are completely ignored for URL/SEO purposes.
Product can be assigned to these Dummy categories to control such things as:-
- Promotional Discounts
- Shipment method eligibility (using the standard shipment plugin provided with VirtueMart.)
Dummy category example
You want some of your products to have a promotional discount of 10% and these products are in different categories
- Create a Dummy discount category, you can call it "10% Discount sale"
- Create a new Tax and calculation rule of Type "Price modifier before tax", Math Operation -10%.
In the "Product Category" option, select the new Dummy category "10% Discount sale"
- Add this Dummy category to the Products and a 10% discount will be applied.(Make sure they stay in their existing Categories as well or they will not be visible to any shoppers!)
- To stop the discount for a product, just edit the product and remove the Dummy category from it
You can have lots of discounts and Dummy categories setup at the same time, allowing you to proactively manage your business.