Default WooCommerce shop page isn't good enough for search and product as user needs, this plugin allows user to filter and search by their own needs and find the product they are looking for..
WooCommerce Shop Filter by http pickplugins com.
Woo Shop Filter., you can use this on sidebars..
There is no option currently, we will update soon..
How to add custom search field and filter products. you can add custom search field by action hook and filter products as well, Step 1.
Add search input field add action WooShopFilter field my custom input { $WooShopFilter = isset sanitize text field . check this to ensure for is submitted from WooShopFilter $ custom input = isset sanitize text field ..
Do not forget to sanitization if $ custom input = endif * * * you can check conditional here * * if ) * execute code shop page * endif * * * if ) this will display under shop page and hide others page >.. < php endif }.
Step 2 verify input variable and put on product query arguments add action WooShopFilter pre get posts query my custom input { $WooShopFilter = isset sanitize text field . $ custom input = isset sanitize text field ..
Do not forget to sanitization if { you can get ans set query arguments try var dump to see available query arguments, like tax query, meta query, order, orderby $s = $query args->get $query args->set } }.
Read more