Skip to main content
deleted 44 characters in body
Source Link

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.

Any advise on this would be appreciated!

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.

Any advise on this would be appreciated!

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.

Magento 2 - Hiding How to hide Empty Categories in Magento2

Tweeted twitter.com/StackMagento/status/1022633086511718401
Source Link

Magento 2 - Hiding Empty Categories

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.

Any advise on this would be appreciated!