The default opencart behaviour is to display active categories which have no products configured against them. This is not user-friendly at all because it means that users will constantly navigate to empty categories. It is possible using default opencart behaviour to return category counts which will indicate to the user which categories are empty, but this also introduces a noticeable performance overhead especially for stores with many categories (and sub-categories).
The purpose of this module is to EFFICIENTLY ensures that empty categories which have no products associated with them are not returned as part of category menus etc etc. You can now choose to:
- Display empty categories, i.e. categories that are defined but contain NO products
- Display categories with products which have no stock - For example when all the products in a specific category are sold out, you may choose to not display the category - this setting allows you to enable this behaviour.
Note: This extension is multi-store aware, so the above behaviour can be controlled on a per-store basis.
By installing this module you will now have a meaningful and streamlined category menu displaying only categories which are populated with actual active products for the current store.
After installation you will see two additional new config settings on the admin section, (System -> Setting -> Store -> Option -> Items):
- Hide empty categories from top-level menus
- Hide categories containing ONLY out of stock items
Additionally, for Opencart version 2, the filter also adds two new Bulk filter buttons to the Admin Category Listing view, this is to allow for static filtering of categories. i.e. once-off disabling/enabling of categories depending on whether they have categories associated with them. This static filtering is relevant in situations where you may have many thousands of categories, and you do NOT want this plugin enabled to perform realtime filtering.
The plugin thus offers two types of operation:
- Real-time where the filtering is applied in real-time
- For the stores with many thousands of categories, the static filtering is suggested.
Also note that this module works with both opencart 1.x, 2.x, and 3.x. All versions are included within the zip file.