Support » Plugin: TM WooCommerce Package » Filter by Tag in Products Carousel Widget

  • Resolved mukarev


    This is a great collection – thank you!

    Found one possible problem in includes/widgets/class-tm-products-carousel-widget.php wich leads to no visible products if filtered by a certain product tag.

    Line 368 in current trunk:

    The product tag ID should be used instead of the product tag itself to use within the query.


    $query_args[‘product_tag’] = $instance[‘tm_filter_by_tag’];

    Should be:

    $query_args[‘product_tag_id’] = $instance[‘tm_filter_by_tag’];

    As it works then for me. But I’m not sure if the problem is caused by the code or by my wordpress/woocommerce setup.

    Thank you again 🙂

Viewing 1 replies (of 1 total)
  • Plugin Author TemplateMonster 2002


    Hi and thanks for the feedback.
    Thanks for the founded bug. We will fix it in the next plugin update.
    Right code:

    $query_args['tax_query'][] = array(
    	'taxonomy' => 'product_tag',
    	'field'    => 'term_taxonomy_id',
    	'terms'    => $instance['tm_filter_by_tag']
Viewing 1 replies (of 1 total)
  • The topic ‘Filter by Tag in Products Carousel Widget’ is closed to new replies.