Quote from Jacky on March 8, 2022, 14:08
My theme is flatsome, and I use DMTF as the Woocommerce product filter
When clicking the option, it works to filter products, but the product count is not correct, then I find the error show belew.
wp-content/plugins/meta-data-filter/ext/mdf_posts_messenger//js/posts_messenger.js
Uncaught TypeError: jQuery(...).first(...).find(...).size is not a function
at mdf_check_count_subscr (posts_messenger.js?ver=5.9.1:68:69)
at mdf_check_request_attr (posts_messenger.js?ver=5.9.1:62:9)
at mdf_init_posts_messenger (posts_messenger.js?ver=5.9.1:29:5)
at posts_messenger.js?ver=5.9.1:33:1
And I find the code below on your website
add_filter('mdf_terms_order',function($default){
return 'DESC';//ASC
});
//id,name,slug,count,term_group
add_filter('mdf_terms_orderby',function($default){
return 'term_group';
});
but they did not work for the attributes. Cannot adjust the term_group for any attributes.
It works on the count.
I purchased this plugin many years ago and because woocommerce have their own filters I did not use it. I tried to use it this time. but find some issues.
Also, the plugin cannot work well with perfmatters, when I wanna defer javascript, the plugin cannot work. I have to exclude from deferral: front.js, jquery.min.js, and posts_messenger.js
My theme is flatsome, and I use DMTF as the Woocommerce product filter
When clicking the option, it works to filter products, but the product count is not correct, then I find the error show belew.
wp-content/plugins/meta-data-filter/ext/mdf_posts_messenger//js/posts_messenger.js
Uncaught TypeError: jQuery(...).first(...).find(...).size is not a function
at mdf_check_count_subscr (posts_messenger.js?ver=5.9.1:68:69)
at mdf_check_request_attr (posts_messenger.js?ver=5.9.1:62:9)
at mdf_init_posts_messenger (posts_messenger.js?ver=5.9.1:29:5)
at posts_messenger.js?ver=5.9.1:33:1
And I find the code below on your website
add_filter('mdf_terms_order',function($default){
return 'DESC';//ASC
});
//id,name,slug,count,term_group
add_filter('mdf_terms_orderby',function($default){
return 'term_group';
});
but they did not work for the attributes. Cannot adjust the term_group for any attributes.
It works on the count.
I purchased this plugin many years ago and because woocommerce have their own filters I did not use it. I tried to use it this time. but find some issues.
Also, the plugin cannot work well with perfmatters, when I wanna defer javascript, the plugin cannot work. I have to exclude from deferral: front.js, jquery.min.js, and posts_messenger.js