Forums Forums Search & Filter Pro Changed Search from Shortcode to WooCommerce => AJAX and Text Search not working

Viewing 10 posts - 1 through 10 (of 19 total)
  • Anonymous
    #204192

    Hi all,
    I have setup a search via a Shortcode and own Results Page. I had to change to get the results in the WooCommerce Shop Archive format. After that I do not get any results (or message) with AJAX active and via the Text Search Bar. I get results via Taxonomy fields if AJAX is deactivated.
    When enabling “Enable filtering on Taxonomy Archives?” I get the message that no results are found.
    Any idea?
    Thx Paul!!!

    Anonymous
    #204200

    Update: the Search Bar delivers results if I select a Taxonomie search before I insert a search term into the bar – AJAX deactivated. If none of the Taxonomie DropDown Filters is selected no results …

    Trevor
    #204223
    This reply has been marked as private.
    Anonymous
    #204225
    This reply has been marked as private.
    Trevor
    #204227
    This reply has been marked as private.
    Anonymous
    #204254
    This reply has been marked as private.
    Trevor
    #204260

    You want the home page to be clean (no products), but when a search is done, then the results show, on the Home page?

    Anonymous
    #204264
    This reply has been marked as private.
    Trevor
    #204268

    The basic PHP for a ‘blank’ before search page is this:

    global $searchandfilter;
    $sf_current_query = $searchandfilter->get(36613)->current_query();
    if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()=="")) {
      // just your search form here
    } else {
      // your current template code here
    }

    … where the ID number will need to be changed to match your form ID.

    Anonymous
    #204277
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 19 total)