Hide empty filter options after filtering
-
Hello. On my website, I have products organized into categories such as “Product Type”, “Problem Type”, and “By Ingredients”. In addition, I’ve added a separate filter item“Brands”. Each of these categories also has its own subcategories.
Currently, when I go to the main shop page (
/shop/), the filter shows all available options, since this is the archive page. If I select, for example, a specific brand, the products are filtered correctly by that brand. However, the filter on the left still shows all filter options, even those that don’t apply to the filtered results.Is there a way to make the filter show only the options that have products available after filtering? The issue is that sometimes I select a combination that results in no products being found, and in that case, the entire filter disappears, since the archive page outputs
.woocommerce-no-products-found.
The topic ‘Hide empty filter options after filtering’ is closed to new replies.