Conversation
supportHi, As stated in my ticket on wclovers.com, there’s an issue with your « Store Featured Products » widget. I think I’ve found the bug in your code. In file « wp-content/plugins/wc-multivendor-marketplace/includes/store-widgets/class-wcfmmp-widget-store-featured-products.php » At lines 100 to 109 if ( 'yes' === get_option( 'woocommerce_hide_out_of_stock_items' ) ) { $query_args['tax_query'] = array( array( 'taxonomy' => 'product_visibility', 'field' => 'term_taxonomy_id', 'terms' => $product_visibility_term_ids['outofstock'], 'operator' => 'NOT IN', ), ); } So, when you’re supposed to add a filter, to excluded out of stock products, You’re completely overwriting « $query_args[‘tax_query’] » and losing all the previous filters, specially the one looking for « featured ». If I change your code with this, then it works: if ( 'yes' === get_option( 'woocommerce_hide_out_of_stock_items' ) ) { $query_args['tax_query'][] = array( 'taxonomy' => 'product_visibility', 'field' => 'term_taxonomy_id', 'terms' => $product_visibility_term_ids['outofstock'], 'operator' => 'NOT IN', ); } Please consider adding this fix in your next release and publish it asap. Kind regards, Charles
Thanks for bringing it to our attention. We’ll add this fix to our next update. Thanks!
Hi @eggheads Happy to help when I can. Could you please tell me when the next update should be released?
Thanks for bringing it to our attention. We’ll add this fix to our next update. Thanks!
Hi @eggheads Happy to help when I can. Could you please tell me when the next update should be released?