Forums › Forums › Search & Filter Pro › Woocommerce integration
Tagged: echo do shortcode, results, Template, woocommerce
- This topic has 17 replies, 3 voices, and was last updated 10 years, 4 months ago by
Ross.
-
Anonymous(Private) January 8, 2015 at 2:54 pm #9940
Hi Ross, I’m lost. For some reason Woocommerce is displaying the Products on the ‘Products’ page but it doesn’t show the searchwidget. I tried many things to get it solved. But I’m missing something.
My customer wants to have the search/filter on top of the page with the results below. Moving the searchform to an widget is no option.
What am I doing wrong?
BTW your support is outstanding, I’ll put a nice review for you!
Ross Moderator(Private) January 8, 2015 at 3:00 pm #9941Hey Janno
In this case you must put the search form on the product archive page… so place the shortcode in your theme file (archive-product.php) above the results!
To add a shortcode to a themefile you just wrap it in a functions and possibly php tags:
<?php do_shortcode('[searchandfilter id="99"]'); ?>Thanks for the kind words.
Anonymous(Private) June 11, 2015 at 3:15 am #19316I added the do shortcode to by archive page and it does appear but for some reason the search doesn’t load correctly the first time – I get ugly boxes and either no script or no css or both I am not sure
– I have to manually reload the page for the form to appear correctly. When I do hit refresh in browser it looks fine.
-
AuthorPosts