Forums › Forums › Search & Filter Pro › Problems setting up Woocommerce search
- This topic has 14 replies, 2 voices, and was last updated 9 years, 4 months ago by
Anonymous.
-
Anonymous(Private) November 22, 2016 at 6:47 pm #71765
Hi guys,
I currently use S&F Pro on my live site, and am working on a development site for a revamped version which will incorporate Woocommerce.
The search form I want is fairly simple, it’s pretty much the same as the one on my live site here: http://houseplansdirect.co.uk/search-house-designs/.
I’ve set it up so that ‘House Type’ is a product category, ‘No. of Bedrooms’ is an attribute and so is ‘Features’. But I can’t get it to return the correct results, even though I have used basically the same set up but amended to use Woocommerce products rather than posts.
My questions are:
1. I seem to be getting the same results returned no matter what combination of boxes I tick, including product categories that should be excluded (I have tried specifically excluding them, and then only including the categories I want but no joy). What am I doing wrong?
2. Prior to setting up the search form, when you clicked on ‘Shop’ it just showed the subcategories, as I had set it up in Woocommerce. Now it shows results for a blank search. Can I override this so it shows the subcategories again as I had it before?
The development site URL is http://staging.houseplansdirect.co.uk/
Thanks
Andy
Trevor(Private) November 24, 2016 at 12:38 pm #72083The real site has that search page, but not the staging site? I can see that you have
Maintain Search Form Stateenabled, which I would not, andEnable Auto Countoff whereas I would have this ON.You also have the form restricted to products with just those four categories attached.
I also note that the
Results Containeris set to#contentbut when I look at the results page, that div also includes the search form, which is not allowed, so changing the results container to.search-filter-resultsin this case might also help.Anonymous(Private) November 24, 2016 at 12:58 pm #72095Hi Trevor, thanks for getting back to me.
I didn’t set up a specific ‘Search’ page on the staging site as ideally, I’d like people to be able to filter results when they are in category pages of the shop – for example, if they know they’re interested in bungalows and go to that category page, they will get 16 results. But if they only want to look at 2 bedroom bungalows, or ones with an integral garage, I’d like them to be able to filter the irrelevant products out.
With the non-house design products, I don’t want the filter on there at all as it won’t be relevant, hence why I limited it to just those four categories.
I don’t know if what I want it achievable so will rely on your superior knowledge of what will work. If you think it would be better to replicate the Search page from the original site, I’m happy to do that.
Thanks
Andy
Anonymous(Private) November 24, 2016 at 1:29 pm #72111Hi Trevor,
Ok so I have replicated the Search page at http://staging.houseplansdirect.co.uk/search-house-designs/
and now it appears the correct search results are being returned after a few quick tests. I’ve got it returning results using a shortcode as per the live site, the only issue is the layout but from memory that was fixed easily enough when I set it up on the live site.
So am I right in thinking that S&F won’t work with Woocommerce the way I’ve described?
Thanks
Andy
-
AuthorPosts