Website Sale - Hide Empty Categories
Removes any category links from the Shop which have no products associated to them.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Hides product categories that have no published products from the website Shop, so visitors only see categories they can actually buy from.
This module changes how the online Shop displays its product categories. When a category has no published products, its link is removed from the category navigation instead of being shown as an empty page.
The change applies in several places on the website:
- The main category list on the Shop page (
website_sale.products_categories_list) no longer shows empty categories. - The recursive category menu (
website_sale.categories_recursive) skips categories without published products. - The collapsible category menu (
website_sale.option_collapse_categories_recursive) hides empty categories in both the parent and child branches. - The category filmstrip shown on the Shop page (
website_sale.filmstrip_categories) also hides empty categories. - The dynamic category filter snippet (
website_sale.dynamic_filter_template_product_public_category_default) hides unpublished categories.
The rule is based on whether a category has published products (has_published_products). Categories that are unpublished are also excluded from the filter snippet. The module does not add new menus, models, or database fields; it only adjusts existing website templates. A test tour is included to verify the behaviour on the Shop page.
Depends on
Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 7 confirmed, 2 with no information of 9 versions.
Sources · Odoo 17.0
Confirmed on 2026-11-03 in branch 17.0 of OCA/e-commerce.
terminal Installation and usage
OCA documentation · Odoo 19.0Configuration
Source · Odoo 19.0When the module is installed, by default the options to hide empty categories are active.
These options can be configured in the web editor. To do this, go to ‘/shop’ and activate or deactivate the options to hide empty categories from the web editor in the ‘Customize’ tab.
There are two options:
- Hide Empty Category Filmstrip: to hide/show empty categories in the top category bar.
- Hide Empty Category list: to hide/show empty categories in the left category list.
Usage
Source · Odoo 19.0Once this module is installed and configured, go to ‘/shop’. Empty categories will not be show.
No verified information in OCA: Installation.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.