Hi. How can we help?

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?
24 out of 37 found this helpful

Back to Help Center >