Hi. How can we help?

Product filter doesn't display the parent category if it is empty

The category "ΤΣΑΝΤΕΣ"  not swowed because is empty. Because for WordPress the parent category is empty. 


However, for this you can:

1. Add this code in functions.php file located in main root of your theme:


if( function_exists( 'YITH_WCAN' ) ){
add_filter( 'yith_wcan_skip_no_products_in_category', 'yith_wcan_skip_no_products_in_category', 10, 3 );
if( ! function_exists( 'yith_wcan_skip_no_products_in_category' ) ){
function yith_wcan_skip_no_products_in_category( $skip, $terms, $term ){
$skip = ! empty( $terms[ $term->term_id ] ) ? false : $skip;
return $skip;

2. Replace the file attached in wp-content/plugins/yith-woocommerce-ajax-product-filter-premium/widgets


Was this article helpful?
0 out of 0 found this helpful

Back to Help Center >

Powered by Zendesk