PHPackages                             mse-sv3n/m2-hide-empty-categories - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mse-sv3n/m2-hide-empty-categories

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

mse-sv3n/m2-hide-empty-categories
=================================

This extension hides the empty categories from navigation men.

1.0.1(4y ago)55872[1 issues](https://github.com/sreichel/magento2-StackExchange_HideEmptyCategories/issues)OSL-3.0PHPPHP &gt;= 7.1

Since Nov 28Pushed 4y ago2 watchersCompare

[ Source](https://github.com/sreichel/magento2-StackExchange_HideEmptyCategories)[ Packagist](https://packagist.org/packages/mse-sv3n/m2-hide-empty-categories)[ Docs](https://magento.stackexchange.com/q/229481/46249)[ RSS](/packages/mse-sv3n-m2-hide-empty-categories/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Magento2: Hide Empty Categories
===============================

[](#magento2-hide-empty-categories)

[![Latest Stable Version](https://camo.githubusercontent.com/a35732c15ee8cb1b3053dddf866808efe7629d8a399ac6b9a76a22c0c5b297b9/687474703a2f2f706f7365722e707567782e6f72672f6d73652d7376336e2f6d322d686964652d656d7074792d63617465676f726965732f76)](https://packagist.org/packages/mse-sv3n/m2-hide-empty-categories)[![Total Downloads](https://camo.githubusercontent.com/d1396aa2793e0428c4519fc4842d74c8ee34b3d81013b1b8cc6b8f7f22339718/687474703a2f2f706f7365722e707567782e6f72672f6d73652d7376336e2f6d322d686964652d656d7074792d63617465676f726965732f646f776e6c6f616473)](https://packagist.org/packages/mse-sv3n/m2-hide-empty-categories)[![Latest Unstable Version](https://camo.githubusercontent.com/111e183ae67c2fe1fdd9b1cbb448aefdda892b694358ae1edf834e91d85e268a/687474703a2f2f706f7365722e707567782e6f72672f6d73652d7376336e2f6d322d686964652d656d7074792d63617465676f726965732f762f756e737461626c65)](https://packagist.org/packages/mse-sv3n/m2-hide-empty-categories)[![License](https://camo.githubusercontent.com/0df1312e002e213425c35957b992a02aa82b8bcab368e45fbfd28863e16476b1/687474703a2f2f706f7365722e707567782e6f72672f6d73652d7376336e2f6d322d686964652d656d7074792d63617465676f726965732f6c6963656e7365)](https://packagist.org/packages/mse-sv3n/m2-hide-empty-categories)[![PHP Version Require](https://camo.githubusercontent.com/e04e507b5661d05b9c856da0684016f98716e4792d4174f859bb823ac73f4da7/687474703a2f2f706f7365722e707567782e6f72672f6d73652d7376336e2f6d322d686964652d656d7074792d63617465676f726965732f726571756972652f706870)](https://packagist.org/packages/mse-sv3n/m2-hide-empty-categories)[![Support](https://camo.githubusercontent.com/738570bbe1ff140811dae8da20df9699aa562db0db806cf84700c40908f90a64/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617970616c2d646f6e6174652d6c69676874626c75652e7376673f6c6f676f3d70617970616c)](https://www.paypal.me/sv3n1)

> I'm in the final stages of setting up my magento 2 store. In the backend I have a process using the API to keep stock information up to date. Sometimes the stock drops to 0 for every item in a category, making it empty. If you go to one of those categories you get:
>
> `We can't find products matching the selection.`
>
> This makes sense, but I was wondering if there was a may to have magento hide the category altogether if the products in the category have no stock.

**Source:**

Installation
------------

[](#installation)

```
composer require mse-sv3n/m2-hide-empty-categories
bin/magento setup:upgrade

```

Support
-------

[](#support)

If you have any issues with this extension, open an issue on [GitHub](https://github.com/sreichel/magento2-StackExchange_HideEmptyCategories/issues).

Contribution
------------

[](#contribution)

Any contribution is highly appreciated. The best way to contribute code is to open a [pull request on GitHub](https://help.github.com/articles/using-pull-requests).

License
-------

[](#license)

[OSL - Open Software Licence 3.0](http://opensource.org/licenses/osl-3.0.php)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1680d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5022236?v=4)[Sven Reichel](/maintainers/sreichel)[@sreichel](https://github.com/sreichel)

---

Top Contributors

[![sreichel](https://avatars.githubusercontent.com/u/5022236?v=4)](https://github.com/sreichel "sreichel (3 commits)")

### Embed Badge

![Health badge](/badges/mse-sv3n-m2-hide-empty-categories/health.svg)

```
[![Health](https://phpackages.com/badges/mse-sv3n-m2-hide-empty-categories/health.svg)](https://phpackages.com/packages/mse-sv3n-m2-hide-empty-categories)
```

###  Alternatives

[cedaro/woocommerce-coupon-links

A WordPress plugin to automatically apply a WooCommerce coupon code to the cart with a URL.

13675.8k](/packages/cedaro-woocommerce-coupon-links)[alibayat/laravel-commentable

Implementing a Comment system for Laravel's Eloquent models.

189.0k](/packages/alibayat-laravel-commentable)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
