Forums Forums Search & Filter Pro Compatibility with Woocommerce Product Tables

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #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

    Trevor
    #146800

    It is not something that has been tested. Do you use this on the WooCommerce ‘Shop’ page, or on new pages made by you with this shortcode on?

    Anonymous
    #146814

    Hi 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
    #146818

    There 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
    #146906

    Hi 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
    #146968

    That 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

Viewing 6 posts - 1 through 6 (of 6 total)