Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #24965


    I bought the WooCommerce AJAX Product Filter – WordPress Plugin and it seems not to work. When i click on any parameter i get all the products in return:

    I emailed the maker of the plugin and this was his response:

    File: includes/helper-templates.php

    Line: 547

    Your shop theme creates a new query at this line and ignores currently

    applied parameters by other plugins and codes (We should ask what is the

    use of actions and filters?).

    This plugin uses native WordPress wp_query object to filter products, when

    a user clicks or selects a filter it adds a parameter to wp_query object

    and the result of wp_query object is filtered products.

    But your shop theme ignores all parameters in wp_query object and creates a

    new query by using this line:


    You should ask your theme support to fix it for you. Ask theme to change

    product archive query the way that it doesn’t create a new query each time

    (for performance and following WordPress best practices) so other plugins

    and codes can apply custom filters to displaying results.

    Please let me know about theme support response.


    How can i get it to work?



    I just tested the widget on a standard shop page & a standard product archive page and it worked for me (latest version of WooCommerce + widget + Propulsion 2.0): .

    If this page is a standard product archive page (or shop page) please create me a wordpress admin account and send me the login data to: (Email address hidden if logged out) – I’ll look into it.

    BUT – the plugin author mentions includes/helper-templates.php – this file will not affect standard woocommerce pages (shop page, archive page, single product page) because it’s only used for “dynamic templates” (templates you build with the template builder – Propulsion > Template Builder). If you’re using a dynamic template he’s obviously right – the WooCommerce AJAX Product Filter will not work with dynamic templates because we use a custom query for the product element/product slider. However you can control which products are displayed in the slider by selecting the categories in the template builder. The reason why we use a custom query (and not the “product archive query”): there’s no “archive” query for dynamic templates because it’s actually a simple page which generates some content based on the dynamic template configuration…

    Update – I searched the forum and found another thread regarding the ajax layered nav widget: (Purchase code hidden if logged out)(Purchase code hidden if logged out) -wordpress-page – amitlavy also uses the widget with Propulsion and it seems to work just fine on his website:

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

The topic ‘WooCommerce AJAX Product Filter – WordPress Plugin’ is closed to new replies.