Widget not showing due to empty $this->filtered_product_ids
-
Hello, I was using the free version of your plugin with no problems but suddenly the widgets are not showing in my sidebar. I’ve tried to fix it looking for the problem in the code and finally I got that it’s a problem with an empty array result from:
$this->layered_nav_product_ids = array_intersect( $this->unfiltered_product_ids, $this->layered_nav_post__in );
in class.yith-wcan-frontend.php line 176.
If i replace it with just
$this->layered_nav_product_ids = $this->layered_nav_post__in;
It is showing the filters good but when I paginate or click on any filter they disappear after the web loads.
$this->unfiltered_product_ids is empty when doing the intersect but I don’t know why :/ If I do a var_dump of its content it is done 4 times inn each page loads and 3 of them it’s null but not the others…
Any idea of what can be happening? Or how to solve this? Thanks ??
https://www.ads-software.com/plugins/yith-woocommerce-ajax-navigation/
- The topic ‘Widget not showing due to empty $this->filtered_product_ids’ is closed to new replies.