June 18, 2013 at 12:42 pm #24965
I emailed the maker of the plugin and this was his response:
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?June 18, 2013 at 1:18 pm #125338
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: http://www.kriesi.at/support/topic/ (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: http://www.china-market.co.il/shop/
The topic ‘WooCommerce AJAX Product Filter – WordPress Plugin’ is closed to new replies.