Forums › Forums › Search & Filter Pro › Changed Search from Shortcode to WooCommerce => AJAX and Text Search not working
- This topic has 18 replies, 2 voices, and was last updated 5 years, 8 months ago by Trevor.
-
Anonymous(Private) March 7, 2019 at 9:22 am #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!!!Trevor(Private) March 7, 2019 at 3:33 pm #204268The 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.
-
AuthorPosts