Woof FILTER: Add Count selected

setTimeout(function () {
        $('.woof_redraw_zone .woof_container').each(function (i, item) {
            var active_filter = $(this).find('.woof_list_checkbox .icheckbox_square-blue.checked').length;
     
            var element_active_filter = "";
            if(active_filter > 0){
                element_active_filter = '<span class="count-active-filter">'+active_filter+'</span>';
            }
// append here
            $("#item_filter_custom_get").append(element_active_filter);
        });
    }, 100);

Leave a Reply

Your email address will not be published. Required fields are marked *