August 4, 2015 at 3:30 am
Hi, me again 🙂
i think i found a nice plugin that does what i need, “YITH WooCommerce Ajax Product Filter “but i did have a problem, some categories did work well, others not… i did add attributes as requested…
I found on their site where they say to add in function.php the following :
===========
The widget of the filters is not working
The page doesn’t update after clicking on a filter
The issue could be related to the fact you are using a non-standard template for a WooCommerce shop page. To solve it, you should ask to the theme’s author to use WooCommerce standard HTML classes. As an alternative, you can use this piece of code in the functions.php file of your theme:
if( ! function_exists( ‘yith_wcan_frontend_classes’ ) ){
function yith_wcan_frontend_classes(){
return array(
‘container’ => ‘YOUR_SHOP_CONTAINER’,
‘pagination’ => ‘YOUR_PAGINATION_CONTAINER’,
‘result_count’ => ‘YOUR_RESULT_COUNT_CONTAINER’
);
}
}
add_filter( ‘yith_wcan_ajax_frontend_classes’, ‘yith_wcan_frontend_classes’ );
==========
i did, but then with this code the filter gives then ALL the products and not just the selection, if this can be solved i found my solution
help
thanks so much
j