Viewing 1 replies (of 1 total)
  • Plugin Author RealMag777

    (@realmag777)

    Hello
    Yes, exuding in drop-down doesn work for subcategories – it is a bug! You can easy fix it, I did it already for the next version but its still beta:

    * open wp-content\plugins\woocommerce-products-filter\views\html_types\select.php
    * find function woof_draw_select_childs
    * before

    $childs = apply_filters('woof_sort_terms_before_out', $childs, 'select');

    add

    //excluding hidden terms
            $hidden_terms = array();
            if (isset($WOOF->settings['excluded_terms'][$tax_slug]))
            {
                $hidden_terms = explode(',', $WOOF->settings['excluded_terms'][$tax_slug]);
            }

    then after

    if ($_REQUEST['hide_terms_count_txt'])
                {
                    $count_string = "";
                }

    drop next code

    //excluding hidden terms
                if (in_array($term['term_id'], $hidden_terms))
                {
                    continue;
                }
Viewing 1 replies (of 1 total)
  • The topic ‘Want to display selected category in dropdown’ is closed to new replies.