WooCommerce - Disable Redirect to Product Page on Search Results Page

In WooCommerce if you search for a product and there is only one search result then WooCommerce will redirect you directly to the product page. WooCommerce includes a filter to enable/disable this feature

 

Please add this line of code to your functions.php file it will disable the redirect functionality.

add_filter( 'woocommerce_redirect_single_search_result', '__return_false' );

Was this article helpful?
0 out of 0 found this helpful

Back to Help Center

Powered by Zendesk