Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author joe_bopper

    (@joe_bopper)

    Hi Exoskeletor,

    I’m afraid I can’t especially help you. This plugin only provides a ui for the admin area and inserts the default search box for the site’s frontend. It doesn’t affect any part of any search requests (or responses) made to (or from) the server.

    If your search page isn’t listing any products, it could be that another plugin is conflicting with woocommerce or that you need to add another plugin that gives the extra functionality (e.g. WooCommerce Product Search, perhaps).

    If you do need WooCommerce Product Search and it doesn’t just work out of the box, you may well need to use the filter hook get_nav_search_box_form to change the output of the search form. Typically, the following code in your functions.php (or other appropriate file) would work:

    if( function_exists( 'woocommerce_product_search' ) ){
    	add_filter( 'get_nav_search_box_form', function( $output, $item, $depth, $args ){
    		$output = $args->before;
    		$output .= woocommerce_product_search();
    		$output .= $args->after;
    		return $output;
    	} );
    }

    An issue with this is that all the settings set within the menu item in the admin area are not used.

    Note also that the WooCommerce Product Search plugin must be activated and that the function woocommerce_product_search can take inputs, though docs on what they are and do are not especially explanatory online and you may have to read the source code to work it out.

    Hope this helps.

    Cheers,
    Joe

    PS I’m marking this query as resolved as it lies outside the remit of this plugin.

    Thread Starter Exoskeletor

    (@exoskeletor)

    thank you very much for your help

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce support?’ is closed to new replies.