• Resolved AHOiREKLAMA

    (@ahoireklama)


    It seems the plugin is redirecting to the single post (product) when only one matching result is available, or when the search phrase matches the product perfectly.

    Is there a way to always display the search results archive page, even when only 1 result should be displayed?

    Thank you very much.

Viewing 1 replies (of 1 total)
  • Plugin Author Damian Góra

    (@damian-gora)

    Hi there,

    This is a native WooCommerce feature.

    You can disable it using following PHP code:

    add_filter( 'woocommerce_redirect_single_search_result', '__return_false' );

    You have to paste this code into functions.php in your child theme or use Code Snippets plugin.

    Best
    Damian

Viewing 1 replies (of 1 total)
  • The topic ‘Force plugin to always display search results page (even with 1 result only)’ is closed to new replies.