Forums › Forums › Search & Filter Pro › Compatibility with Woocommerce Product Tables
Tagged: plugin compatibility, search
- This topic has 5 replies, 2 voices, and was last updated 6 years, 11 months ago by Trevor.
-
Anonymous(Private) December 11, 2017 at 10:58 am #146791
Hi,
I have a separate plugin called Woocommerce Product Tables which displays my search results in a table via a shortcode.
Here is an example – https://alotsoldvehicleauction.com/yorkshire-and-the-humber/
Do you know if Search and Filter Pro would be compatible with this? So I could set up a search result page to display in the product table?
Thanks,
Rory
Anonymous(Private) December 11, 2017 at 1:49 pm #146814Hi Trevor,
It can be used on the Shop page by creating some custom template files or as a shortcode.
I only want to display it for certain categories (the ones being searched and not the entire store) which may pose some issues.
I’ll have a play around and see if I can make it work. Please let me know if you have any ideas
Thanks,
Rory
Trevor(Private) December 11, 2017 at 2:01 pm #146818There are a few concerns. If you have many forms all set with the Results Display method ‘WooCommerce’ you should see an error message warning that you cannot do that. There can only be one WooCommerce form (the form is linked to the Products CPT).
What you might be able to do is create a page with your shortcode on, but it must be a page, and not an archives page. Directly before your plugin’s shortcode, place another shortcode, like this (change 1428 for the ID number of your form):
[searchandfilter id="1428" action="filter_next_query"]
And instead make the form use the Custom display results method.
Anonymous(Private) December 11, 2017 at 8:14 pm #146906Hi Trevor,
I’v added the shortcode you sent but the search form is not displaying on this page. Any ideas?
https://alotsoldvehicleauction.com/table/
I’ve set the search form to display as custom.
Thanks,
Rory
Trevor(Private) December 12, 2017 at 1:26 pm #146968That shortcode I sent you should link the form on the page to the table, however, you need also to put the form on the page. The simplest is this:
[searchandfilter id="1428"]
[searchandfilter id="1428" action="filter_next_query"]
Then your table shortcode -
AuthorPosts