Wrong product count when using the stock “Filter Products by Attribute” widget
-
The plugin works great!
There is just one small detail missing to make it perfect:
When using the “Filter Products by Attribute” widget (the one that comes with WooCommerce) the product count is wrong.
It shows the unfiltered count (including non-visible products), which might confuse customers with user roles which are not entitled to view all products of a certain product attribute.
To confirm you can go to this link
Have a look at the bottom left of the page, where the attribute “Gelb & Goldfarben” is highlighted. It shows the number besides the attributes name (2), but there is only 1 product visible for guests (non-logged in users).This bug only affects product attribute counts.
Standard category counts and everything else is filtered fine.I’ve already tried following:
- “Modify query” option is activated
- Reset the WooCommerce terms-count cache in the WC->Status->Tools page
- Disable the terms-count cache completely through a filter in the functions.php
But the error still persists.
Would be nice if you could solve this!
- This topic was modified 3 years, 9 months ago by .
- This topic was modified 3 years, 9 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Wrong product count when using the stock “Filter Products by Attribute” widget’ is closed to new replies.