PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Filter not updating products, product count bubbled do not make sense.

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

We have a problem when we try to use WOOF filter:

For example, look here: https://3.210.150.254/products/inline-skates/

  • When price filter slider is adjusted, the filter is loading with"Loading" message and the term appears on top, but products do not update until you click the"Filter" button at the bottom. Only then products update. This is not  normal behavior. Products need to be adjusted when filter is loading. I tried"ajaxify store" and"automatic submit" options, they don't seem to make a difference.
  • Select"Downhill" in the"Skating Style" filter. It has"20" in the bubble, meaning there should be 20 products displayed when you trigger the filter. Filter is shown selected, but doesn't work by just selecting, as above. Press"Filter" button. Then the filter appears to work, but there is only a single product displayed, when there should be 20 judging by the bubble number. Either bubble is wrong (maybe counting out of stock or old products?), or filter is not working properly. They should be consistent and working after selecting without reloading the page.

 

 

Hello

Please paste your license key here - https://share.pluginus.net/image/i20210618130558.png -> https://share.pluginus.net/image/i20210618130614.png

Update  the  plugin to latest  version - https://products-filter.com/how-to-make-auto-update-for-wordpress-plugins-and-themes-bought-on-envato

Hi, this plugin was included in the Nitro theme we were using on our website up until recently. It looks like it's updated to the latest version (Version 2.2.3) Is this the correct version? Do we have to buy the plugin again to have support?

Hello

It looks like it's updated to the latest version (Version 2.2.3) - This is a very old version

 Do we have to buy the plugin again to have support?  - I think no. By Envato rules support is there where you bought the plugin, please write on support of wp theme you bought ...

The old theme is discontinued and that was the verion in the last available download. So we just bought the plugin again. I'm including the purchase code. I updated the plugin to the latest version, also updated WooCommerce and everything else, just in case. However the same behavior persists. Please investigate. I'm also including admin access info.

Hello

I highly recommend you watch this video - https://products-filter.com/es/video#beGT6p_look

Please  check  option - https://share.pluginus.net/image/i20220520100341.png

Read  this - https://products-filter.com/extencion/in-stock-checkbox

"Form Ajax redrawing" in your screenshot is NOT present in the plugin menu. Here's all I have in the"Options":

Set filter automatically     No
Autosubmit     Yes
Show count     Yes
Dynamic recount     Yes
Hide empty terms     Yes
Try to ajaxify the shop     No
Hide childs in checkboxes and radio     Yes
Hide woof top panel buttons     No
Lets checked terms will be on the top     Yes
Filter button text
Reset button text

There is an option"Try to ajaxify the shop" which is now disabled. It was enabled before. I also checked the"in stock" extension, though I don't see the selection menu on the screenshot, there is just one checkbox to enable it. Regardless, the behavior is the same: page refreshes when clicking on a term, but shows the same products, and only after"Filter" is pressed it shows correct products. Bubbles still display more priducts than filter shows (even after the"filter" button presses). So both issues are still there. Please investigate.

Hello

You will save a lot of time if you watch the video - https://products-filter.com/es/video#beGT6p_look

please note that the plugin setup is not included in the support, in any case you should know the basics of plugin setup

look for this option in the widget settings.

 

I did watch both videos, but I didn't realize the setting you suggested in the screenshot is NOT in the plugin setup at all, it's on the actual widget in Appearance->Widgets. So I disabled"Form AJAX redrawing" and the first issue is now solved: page reloads and filters refresh. However the second issue is not solved: The numbers in bubbles do not represent the correct number of products to be filtered, or filter doesn't load all of them. To reproduce:

Go to https://3.210.150.254/products/inline-skates/ - you see the filter in the left showing"10" in bubble over"Downhill". But when you press it, you only see a single product."Off-road" shows"15" in the bubble, but only 4 products when pressed,"Inline" bubble shows 33, but only 4 products load when it's pressed, and so on. It may be showing out of stock products, or disabled products, or subcategory products or something else, but it's very misleading and doesn't make sense. The number in the bubble should be the same number of products shown by the filter when pressed. Please advise.

 

Hello

Can  I  disable  plugins/theme  to test?

 

Yes, you can do that. the IP URL is a staging server. If possible re-enable after testing. Thanks.

Hello

I did  a test  - https://share.pluginus.net/video/v20220530105641.mp4 - Remove your customizations and everything will work correctly

We do have another problem then: by default WooCommerce loads in the category page not just the main category but all of the products from all its child categories, which doesn't make no sense at all. When customer selects"inline skates" he wants to see skates, not all the accessories from the"frames" and"parts" child categories, which is what happens when you disabled the custom PHP code. Can you advise on how to exclud the children categories from your filter bubble counts and actions in a similar manner?

Here's what we have done to exclude child categories from the category listing. This is the only code that works and we need to keep it that way. If we could modify the product query your filter has it would be a good solution.

/* Hide products from subcategories */
function exclude_product_cat_children($wp_query) {
if ( isset ( $wp_query->query_vars['product_cat'] ) && $wp_query->is_main_query()) {
$wp_query->set('tax_query', array(
array (
'taxonomy' => 'product_cat',
'field' => 'slug',
'terms' => $wp_query->query_vars['product_cat'],
'include_children' => false
)
)
);
}
}

if ((strpos($_SERVER['REQUEST_URI'], 'products') !== false) || ($_SERVER['REQUEST_URI'] =="/")) {
add_filter('pre_get_posts', 'exclude_product_cat_children');
}

/* Hardkore child category killer */
function filter_woocommerce_shortcode_products_query( $array ) {
foreach ($array['tax_query'] as $key => $value){
$array['tax_query'][$key]['include_children'] = 0;
}
return $array;
};
add_filter( 'woocommerce_shortcode_products_query', 'filter_woocommerce_shortcode_products_query', 10, 1 );

Hello

You can  use  this  hook (https://share.pluginus.net/image/i20220531090910.png)  - woof_dynamic_count_attr

Do you have an example code that can do such results with this hook?

Hello

Yes

add_filter('woof_dynamic_count_attr', function($args,$type){

// change  $args['tax_query']

return $args;

}, 99,2);

 

Hi, the example code places as is doesn't do anything. Bubbles still show exaggerated numbers. I could see no documentation on this function, so I can't see what's wrong with this code and why the numbers do not make sense...

Hello

Hi, the example code places as is doesn't do anything - of course, because I gave an example, all that is necessary on my part.  And indicated where you need to insert your custom code - https://share.pluginus.net/image/i20220614095439.png

Creating a custom code and setting up your business is not included in the support.  If you have no experience in programming, ask the developer who made this customization for you

I understand that, but to do that there needs to be a documentation that points what arguments/values is this function accepting and what does it do. I couldn't find any. Can you point me to such documentation?

Hello

This filter passes WP_Query attributes

Docs - https://developer.wordpress.org/reference/classes/wp_query/

And in my example, I specifically indicated what needs to be changed - https://share.pluginus.net/image/i20220615091300.png