Forums › Forums › Search & Filter Pro › Custom Template for Search & Filter Pro
- This topic has 13 replies, 1 voice, and was last updated 4 years, 8 months ago by Anonymous.
-
Anonymous(Private) January 26, 2015 at 2:19 pm #10931
Hi All,
I’m having a woocommerce wordpress site, and i have used Search & Filter as the search engine, but i want the result to show as same as the default woocommerce search, so what should i do? I’m using storefront template.
Besides, i want to know is it possible to search by product quantity? for example >200 or >300,
because so of the product of my site had minimum quantity to place order.
Thanks and hope you can replay me asap.
Much Thanks!!
Ross Moderator(Private) January 26, 2015 at 2:37 pm #10933Hey Yeung
You can make the search only show products with over a specific quantity no problem – as long as the quantity is a custom field/post meta, and not a taxonomy.
Head to “post meta” tab in the “settings & defaults” box.
To display you results the same, you must choose which template is used in your theme for displaying your default woocommerce page.
Make sure you copy the woocommerce files over to to your theme folder – http://docs.woothemes.com/document/template-structure/
And then under “display results” enter the filename of the template used to display your results.
Thanks
Ross Moderator(Private) February 3, 2015 at 7:29 pm #11359Did you follow the steps above?
It really depends on your theme which file is being used – but usually its “product-archive.php” (or something very similar).
So, once you have copied the woocommerce files to your theme (I sent the link above) then in S&F- under “display results”, choose “as archive”, then tick “use custom template” and under the filename the template should be something like “woocommerce/product-archive.php”.
If, when you save the form, the filename is disappearing it means you have done something wrong and it can’t find the template in your theme folder so double check your paths etc.
Thanks
-
AuthorPosts