Forums › Forums › Search & Filter Pro › Search history
- This topic has 7 replies, 3 voices, and was last updated 1 year, 2 months ago by Trevor.
-
Anonymous(Private) July 2, 2020 at 5:14 am #251049
Hi, I bought the plugin today and must say I’m impressed. This came up on an obscure page, I’m surprised I didn’t find this plugin earlier.
I have a woocommerce site and am trying to make the search work like Best Buy. http://www.bestbuy.com
a) Generic search bar on top of page that has history of search results – how does one get the history and show it as a dropdown
b) My categories have linked taxonomy. For example, Categories are TV and Water Cooler. Screen Size doesn’t make sense for Water Cooler and Dispenser Type doesn’t make sense for TV. There are two ways to approach this (1) Make a generic search page with all taxonomies and have the non-relevant taxonomies disappear (header and all) based on search result, or (2) Make separate pages for each category with their relevant taxonomies, and based on search, bring up the relevant page. Which approach is possible with this plugin and how can one go about it?
c) Instead of radio buttons, format the list as links
d) Have multi-select as a series of checkboxes instead of a dropdown.Finally if this is even possible,
e) If search results are from multiple categories, show results from only 1 category with option to display results from other categories.Thanks in advance for your inputs.
Trevor(Private) July 2, 2020 at 9:31 am #251077To answer these questions in turn.
a. Best Buy are big enough to be able to afford to pay a lot of money for a feature like this. It could be done if our forms stored searches in cookies on the user’s computer. That would require the user’s permission of course, and the use or availability of transients. I believe we will be introducing the availability to use transients in V3 (due in a few months).
b. Assuming that you use the WooCommerce display results method (the most logical), you are restricted to one form on the site per post type. So, you must have one form with all attribute/taxonomy type fields, and use Custom CSS based on the body class names (in WooCommerce you will see each taxonomy archive page has different classes to identify the taxonomy type) to hide/reveal fields.
c. This is not possible, but, if the radio buttons are for the Category (TV or Water Cooler), and the form is set up correctly, clicking on, say, ‘Water Cooler’ would take you to the Water Cooler (taxonomy archive) page.
d. You can set checkboxes to be multiselect, but, until V3 comes out, you cannot have checkboxes inside a dropdown.I am not sure what you mean in e? Could you explain further?
Note, it is very important to note that each field in the form should have a different (its own) source. You cannot, for example, place Product Category (a type Taxonomy) more than once in the form. So, if you have groups of terms inside Product Category, they must instead be moved to their own custom taxonomy (for example, Screen Size).
Anonymous(Private) July 2, 2020 at 4:46 pm #251205For using the Custom CSS based on the body class names, there don’t appear to be any indicators at the h4 tag level that the items are empty and CSS doesn’t support conditional. Are you sure this is a CSS fix, or is it a JScript fix?
Alternatively, when is Ver 3 expected. Is it 1-2 weeks or is it more, trying to get a sense of should I spend time fixing it now on Version 2, or should I wait 1-2 weeks for Version 3 and fix it on Version 3.
Trevor(Private) July 3, 2020 at 8:03 am #251264You can either:
1. Manually decide which Form UI fields would not be needed on each page, and use custom CSS to hide them, OR
2. Use custom JavaScript to examine the contents of each field to see if they contain any terms, and get the JavaScript to hide them.
V3 will be a few months, not weeks (if it were weeks, I would already be testing the first beta versions, and I am not). Development completion targets are notoriously unreliable, so I would work with what we have now.
-
AuthorPosts