Associate
Hi,
Really hope someone can help because this is driving me mad, I have made a website with Wordpress and Woocommerce.
I am trying to add a product filter that will arrange items by brand using the "Woocommerce AJAX Product filter" I have everything installed and it does appear on my page, but when clicking a filter the page does not filter, however if I go to another page and return it will show just the filtered results.
I think this is a common problem with the plug-in as the author has mentioned it within the documentation but it's not that clear and so far I have had no luck.
This is what he says:
URL changes but products list are not refreshed/ All products are show, filters don't make a change:
It seems your shop theme is missing some standard WooCommerce actions and hooks so plugin can't recognize page contents to refresh.
This plugin uses "woocommerce_before_shop_loop" and "woocommerce_after_shop_loop" actions to wrap products.
It means that you should print products between these two actions.
By following WooCommerce templating rules, these two action should be located at:
woocommerce/archive-product.php
There is a fallback for non-standard themes:
Some themes are not build with best practices so we provided a fallback:
These themes print products in an unordered list like this:
<ul class="products">
<li>Product 1</li>
<li>Product 2</li>
<li>Product 3</li>
</ul>
This is also a rule for WooCommerce templating. (having a ul with products class)
If you don't know how to fix your theme just send a message to your theme support team and they can do it in a few minutes.
This plugin supports another way to refresh products:
Wrap products in a span tag with codenegar-shop-loop-wrapper class like this:
<span class="codenegar-shop-loop-wrapper">
Product 1
Product 2
Product 3
</span>
I have tried editing the archive-product.php but there are no products listed and can't see where to change the UL list to his custom span class.
Has anyone got any ideas? I would really appreciate some help on this. I am doing this site free of charge for a friend so can't offer any money I'm afraid.
I have tried asking the Author of the plugin but looking at previous support tickets they can take up to 2 weeks to reply and the theme auther does not want to know as it's a third party plug-in.
Really hope someone can help because this is driving me mad, I have made a website with Wordpress and Woocommerce.
I am trying to add a product filter that will arrange items by brand using the "Woocommerce AJAX Product filter" I have everything installed and it does appear on my page, but when clicking a filter the page does not filter, however if I go to another page and return it will show just the filtered results.
I think this is a common problem with the plug-in as the author has mentioned it within the documentation but it's not that clear and so far I have had no luck.
This is what he says:
URL changes but products list are not refreshed/ All products are show, filters don't make a change:
It seems your shop theme is missing some standard WooCommerce actions and hooks so plugin can't recognize page contents to refresh.
This plugin uses "woocommerce_before_shop_loop" and "woocommerce_after_shop_loop" actions to wrap products.
It means that you should print products between these two actions.
By following WooCommerce templating rules, these two action should be located at:
woocommerce/archive-product.php
There is a fallback for non-standard themes:
Some themes are not build with best practices so we provided a fallback:
These themes print products in an unordered list like this:
<ul class="products">
<li>Product 1</li>
<li>Product 2</li>
<li>Product 3</li>
</ul>
This is also a rule for WooCommerce templating. (having a ul with products class)
If you don't know how to fix your theme just send a message to your theme support team and they can do it in a few minutes.
This plugin supports another way to refresh products:
Wrap products in a span tag with codenegar-shop-loop-wrapper class like this:
<span class="codenegar-shop-loop-wrapper">
Product 1
Product 2
Product 3
</span>
I have tried editing the archive-product.php but there are no products listed and can't see where to change the UL list to his custom span class.
Has anyone got any ideas? I would really appreciate some help on this. I am doing this site free of charge for a friend so can't offer any money I'm afraid.
I have tried asking the Author of the plugin but looking at previous support tickets they can take up to 2 weeks to reply and the theme auther does not want to know as it's a third party plug-in.