This is a free Wordpress plugin that can be downloaded on the Wordpress Repository.
Simple Dropdown Filter by Category for Woocommerce automatically adds a dropdown on your shop catalog page that allows you to instantly filter products by WooCommerce product categories. The dropdown will show up on the shop page, product archive page and product tag page. It shows a product count per each category by default. The plugin currently supports only selecting a single category to filter.
The dropdown filter buttons shows up to the right of the native WooCommerce “sort by” dropdown and uses native WooCommerce component code.
You can choose to manually exclude certain categories to show up in the dropdown filter if you do not want users to filter by those categories.
You can toggle off or on showing product counts by category or showing empty categories in your shop.
You can set custom CSS classes for styling the button to match your theme, and even apply custom CSS directly to the plugin from the back end settings panel.
It will work with nested parent/child categories you create in WooCommerce and display the child categories underneath the parent in your dropdown menu when users select a category.
Don’t worry. We won’t sell your email. We are also really busy managing our clients, so we won’t be filling your inbox with articles every day. We only write them when we have a compelling reason to do so, and some spare time too!