-
AuthorSearch Results
-
May 4, 2016 at 11:39 am #44692
In reply to: Wrong results showing – Woocommerce
AnonymousInactiveHm no, that page is the search page only, with the shortcode.
The result page is using archive-product.php with our modifications.Is that helpful? 🙂
April 6, 2016 at 8:13 am #41746In reply to: Compare page
RossKeymasterHi Daniel
I took a look and S&F seems to be working ok – I placed the form on another page:
http://zdolnelapy.pl/projekty/katalog/shop-form-test/ – and as you can see, when you use it, it takes you to the shop with the correct search results.
Now the question is, how can you add the search form to your shop page? I cannot see any sidebar / widget area to add this – so this really is a theme restriction – not allowing things to be added to the shop page.
In this case, you must edit the template file for displaying the shop – and add the shortcode in there.
The shop is usually displayed using the template file
woocommerce/archive-product.phpso you must edit this file (in your theme) and add the S&F form to that page – something like:<?php echo do_shortcode("[searchandfilter id='2800']"); ?>I hope that makes sense.
Thanks
February 25, 2016 at 10:03 am #37905In reply to: Ajax not working in my site
RossKeymasterYou results container is set to
#main(in the display results tab)The results container shoudl only contain your results, but yours, also contains the search form itself.
This means, when there is an ajax request, the search form is replaced, an no longer works correctly.
What you probably need to set this to is
.archive-productsCheck the docs on the correct way to setup ajax:
https://www.designsandcode.com/documentation/search-filter-pro/search-results/#Setting_Up_Ajax
Thanks
November 11, 2015 at 11:36 pm #29580In reply to: WooCommerce product categories not appearing in Form
RossKeymasterHey Mark
You can creat a completely seperate page for your search results – but it won’t pick up the woocommerce layouts automatically – you’ll likely have to do some tinkering with the templates – but they are completely customisable if you know what you’re doing.
So instead, simply follow the steps here for displaying results with a shortcode:
http://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/
Make sure to follow the part about customising the template, because this is where all your layout/loop code will go.
There is another option yet, to use the archive method, and use the WooCommerce
archive-product.phpbut then will likely still need some tweaking – http://www.designsandcode.com/documentation/search-filter-pro/search-results/as-an-archive/Thanks
July 12, 2015 at 11:35 pm #21308In reply to: Displaying posts instead of products
RossKeymasterHi there
To answer your questions:
1) The count numbers are not dynamic and do not reflect the real live values based on the current search – they are based on WP internal count of these taxonomies – the next version of S&F will change this and they will be dynamic.
2) S&F works with WooCommerce, in that you can search WooCommerce Products, and search attributes and custom fields – but it is not a filter to be used with the Shop page directly (I will add this at some stage).
You need to think of this a little different, so on your shop page you can add the S&F form, but realise, once a user searches – they will be taken “away” to a search result page.
Now what you must do is recreate the format of the shop page if that is what you wish.
If you are using Display using shortcode, then you should just paste the shortcode in to an empty page – and have the Results URL point to this new page. You will then have to customise the html/css to emulate the look of your shop page.
Alternatively, you could try using the As Archive method – the WooCommerce product archive is usually calls the WooCommerce template
archive-product.phpand you could try modifying using this with some modification for your S&F results.Some other users have across this see here – https://support.searchandfilter.com/forums/search/archive-product/
Thanks
July 10, 2015 at 11:40 pm #21260Topic: Displaying posts instead of products
in forum Search & Filter Pro
AnonymousInactiveHello I’m running a woocommerce website, there is a number of problems atm:
1.- Showing blog posts along with products. I need to only display products using that tags.
Setting of Search Form:
Search in the following post types: Only checked Products checkbox.When clicking a tag
Im getting this url:http://arentalocal.mx:8080/result/?_sft_post_tag=dress
I think this should be the url: http://arentalocal.mx:8080/product-tag/fashion/2.- Incorrecto result page
Where should I add the results shortcode?
In archive-product.php?July 8, 2015 at 1:48 pm #21027In reply to: Search results
RossKeymasterHi Julian
To get S&F results to look like woocommerce results we must use some of the templates from woocommerce – mainly the “archive-product.php” template, as well as manually adding the woocommerce classes to the body tag – check some similar topics with this info: https://support.searchandfilter.com/forums/search/archive-product/
I am planning a release where S&F will work directly on the products page 😉
Thanks
July 8, 2015 at 1:35 pm #21023In reply to: Styling of horizontal search bar
RossKeymasterHi Alberto
To answer your questions:
1) Modifying the look of S&F should be just the same as with anything using CSS – although, you must be aware the order the CSS is loaded in, if CSS from your theme is loaded after CSS from Search & Filter then its really easy, if it is the other way round then you might need to add
!importantto your CSS rules.Info on horizontal can be found here: https://support.searchandfilter.com/forums/topic/horizontal-layout/
2) To get S&F results to look like woocommerce results we must use some of the templates from woocommerce – mainly the “archive-product.php” template, as well as manually adding the woocommerce classes to the
bodytag – check some similar topics with this info: https://support.searchandfilter.com/forums/search/archive-product/I am planning a release where S&F will work directly on the products page 😉
Thanks
June 4, 2015 at 7:48 pm #18942
AnonymousInactiveThanks so much for your help. The new woocommerce functionality sounds great.
I attempted to figure out the different page templates being called, but found all pages seem to use the same class post-type-archive-product.
However I did find this solution and attempted to follow it (I’m using Avada):
http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/#h-bad-templateI couldn’t find the code snippet mentioned in search.php, so I assume Avada has updated that code.
Any chance you happen to know how to fix this issue in Avada? I seem to have 3 states for my shop page
1) Landing page, without filters selected (small icons)
2) select filters, results are formatted using archive.php, (medium sized icons)
3) unchecking filters brings up a third display which is not goodIn the end, I just want all 3 states to display as LIST before and after filters are selected (once I figure out how to do that). Any help is greatly appreciated!
Thanks!
MichelleMay 21, 2015 at 11:50 pm #18063In reply to: Template for woocommerce
RossKeymasterHey Stefania
If you wish to use a regular page template for displaying results (like
archive-product.phpyou mention above) then use must use the archive method.If you are using the shortcode method, and know some html/css, then you can copy the html structure and use it in results.php…
For woocommerce styling, and the correct CSS to be applied, please view the source of the page when on product archives and you will notice woocommerce is adding some classes to the
<body>tags for layout purposes – you need to copy the same classes over using the method described here:https://support.searchandfilter.com/forums/topic/wp-4-2-1-update-affecting-plugin/page/2/#post-17059
Thanks
-
AuthorSearch Results
Search Results for 'archive-product'
-
Search Results
-
Hello I’m running a woocommerce website, there is a number of problems atm:
1.- Showing blog posts along with products. I need to only display products using that tags.
Setting of Search Form:
Search in the following post types: Only checked Products checkbox.When clicking a tag
Im getting this url:http://arentalocal.mx:8080/result/?_sft_post_tag=dress
I think this should be the url: http://arentalocal.mx:8080/product-tag/fashion/2.- Incorrecto result page
Where should I add the results shortcode?
In archive-product.php?