Forums Forums Search & Filter Pro Search doesn't work

Viewing 10 posts - 1 through 10 (of 44 total)
  • Anonymous
    #72702

    Hi!

    After hours of searching through support topics, I’m asking for help.
    I have a site with vehicles, all defined as WooCommerce products and stored in product categories. Vehicle details are specified as metadata through ACF.

    I want to use S&F Pro as filter (not as a search form). I run S&F Pro 2.2.0 on WP 4.6
    I’ve made a search form with the following items:
    Taxonomy (product_cat) for selecting the category (I will hide this with css).
    Post meta for brand, price and manufacturing year.
    Button
    When I’m changing the filter’s value, it stops working and got an overlay and js errors. If I hit the button it redirects me to the shop page with no filter selected.
    I need to keep the current category when using filters. I was trying with shortcodes, but the same result.

    Anonymous
    #72757

    By the way, I’m using Divi theme…

    Trevor
    #72774
    This reply has been marked as private.
    Anonymous
    #72780
    This reply has been marked as private.
    Trevor
    #72825

    One issue I can see with the Left search form is that you have not given the name of the theme search template. The Use a custom template for results is currently set at search.php (the plugin and WordPress default), but no such file exists in Divi. If you wish to use As an Archive display results method, you need a template file to enter here.

    Many users of Divi choose instead to use the Shortcode method, but that does mean that you need to customize the results.php template file and keep that new version in the child theme folder (in a sub-folder called search-filter).

    Anonymous
    #72911

    Here are my questions:

    1. Don’t you have a search.php template file that I can put in the theme’s directory?

    2. Where should I take from the results.php file to put in the search-filter directory?

    Trevor
    #72913

    In answer to #1, no, because every theme works differently. In answer to #2, please read this part of our documentation:

    https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/#Customising_the_Results

    The results.php file WILL need customizing, after you have ascertained that the search works OK and gives the right results. I can help you with that.

    Anonymous
    #72922
    This reply has been marked as private.
    Trevor
    #72924

    This is because your theme, you or a plugin is loading both the current version of jQuery (1.12.4) and later on it also loads an old version, with this line of code:

    <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
    

    In turn, WordPress will switch off jQuery functionality for security reasons. You need to find what is loading this code and remove it.

    Anonymous
    #72931

    I’ve deleted that piece of code and still the same error…

Viewing 10 posts - 1 through 10 (of 44 total)