I am a professional Magento developer and E-commerce consultant with 6 years of experience.
Custom Products. How to Hide Empty Category in Magento. When a product is out of stock, displaying empty categories will only irritate customers so it’s better to hide category from Top menu for which you don’t have products to show to your customers.
As a store owner, you might want to hide or disable an empty category because either the product is out of stock or discontinued. The category will automatically become visible when it gets active products.