Home › Forums › WoodMart support forum › Filter Logic Issue Between Groups in Theme vs WooCommerce Native Filters
Filter Logic Issue Between Groups in Theme vs WooCommerce Native Filters
- This topic has 15 replies, 2 voices, and was last updated 2 months, 2 weeks ago by Artem Temos.
-
AuthorPosts
-
October 14, 2024 at 10:49 pm #604972
x7corpParticipantDear Support Team,
I am encountering an issue with the filtering logic between filter groups in the theme, which behaves differently from WooCommerce’s native filters.
The Problem:
When using the filters in your theme, if I select a specific colour (e.g., black), all other attributes (like shade) remain available as options, even if they are incompatible (e.g., “light”). This gives the customer the impression that these combinations are possible, but when applied, no products match both filters.
The expected behaviour is that when a selection like black is made, the other filter groups (e.g., shade) should update dynamically to show only compatible options (e.g., dark shades), hiding or disabling irrelevant choices like “light.”
Expected Behaviour in WooCommerce Native Filters:
In WooCommerce’s native filtering system, once a filter like colour is selected, the options in the other groups automatically update to reflect only what is available. For example, if a customer selects black, incompatible filter options (like “light” in the shade filter) are removed or disabled, ensuring that the customer only sees valid combinations.
I’ve tested WooCommerce’s native filters and recorded a video demonstrating that the logic works correctly there. However, your theme’s filtering system behaves differently, showing incompatible filter combinations that return no products when applied.
I have already tested by removing all plugins and the issue remains, the fault to be with the filters logic.
Clarification:
I am aware of the difference between AND and OR logic within filter groups (such as selecting multiple colours). The issue here is specifically about the AND logic needed between filter groups (such as colour and shade) so that incompatible combinations are not presented to the customer. This behaviour works when using a filter group that is using AND logic within it, but not when using OR logic.
Could you please investigate whether the theme’s filtering logic between groups can be adjusted to align with WooCommerce’s native behaviour?
Thank you for your support. Please help I repurchased support only for this reason. VIDEO + STAGING LOGIN PROVIDED.
October 15, 2024 at 9:26 am #605027
Artem TemosKeymasterHello,
You need to set AND for your filter widgets (currently, it is set to OR) and regenerate lookup tables in WooCommerce -> Status -> Tools. Let me know if it helps.
Kind Regards
October 15, 2024 at 10:14 am #605052
x7corpParticipantHi Artem,
I believe there’s been a misunderstanding regarding my issue. The problem is with the logic between filter groups, not within the groups.
As I’ve explained, I fully understand how to set the logic for each group individually. The issue lies in how the theme handles the interaction between groups. Specifically, WooCommerce’s native filters use OR logic within individual groups, but they dynamically update the other groups based on the current selection.
For example, if a customer selects black under the colour filter, all other colours should remain (OR logic), but all other groups, such as the shade filter should update to hide or disable incompatible options (like “light”). This dynamic interaction between groups is what is missing in the theme’s filtering system.
I have shared a video demonstrating how WooCommerce’s native filters work, showing this behaviour clearly. Please review these materials to fully understand the issue.
Thank you for your time, and I look forward to your response.
October 15, 2024 at 10:17 am #605055
Artem TemosKeymasterHello,
Yes, we understand what you mean. Please try to configure it as we wrote in our previous reply and test how it works. We will check this no your staging as well.
Kind Regards
October 15, 2024 at 12:51 pm #605123
x7corpParticipantHi Artem,
With all due respect, you are still not understanding the issue.
Please carefully review the videos I’ve provided, as they clearly demonstrate the problem. The issue is not with setting individual widget/group logic to AND or OR within a filter group—it is about how the logic functions between different filter groups.
When I set the individual widget/group logic query to OR, I expect that users can select multiple options within the group (e.g., multiple colours), and this is how it should work. However, when I change this to AND, it removes all options within that group, which is not what I want or how WooCommerce’s native filter works.
In the WooCommerce native filter example I shared:
Each individual group uses OR logic (allowing, for example, multiple colours to be selected).
Once a selection is made, the other groups should update based on AND logic between the groups (i.e., only showing compatible options from other groups).The problem is with the logic BETWEEN filter groups/widgets, not within the individual group. I’ve explained this several times and provided videos that clearly show how it works in WooCommerce’s native filter system. I urge you to either test this yourself or carefully review the videos to fully understand the issue.
October 15, 2024 at 12:55 pm #605124
Artem TemosKeymasterHello,
Yes, we understand. But also note that you are using filter blocks while testing the default theme, and they may work a bit differently. Check with classic widgets, and you will see that our theme works exactly the same.
Kind Regards
October 15, 2024 at 1:48 pm #605144
x7corpParticipantHi Artem,
Thank you for your reply. I understand your point regarding the difference between filter blocks and classic widgets, but the expected behaviour should be consistent across both, as this is a fundamental aspect of filtering logic.
To clarify:
- The issue I’ve highlighted is not related to the specific method (blocks or widgets) used, but rather how the logic functions between groups.
- Regardless of whether filter blocks or classic widgets are used, the filtering logic between groups (e.g., colour and shade) should still work as described: when a selection is made in one filter group, other filter groups should dynamically update based on compatible options using AND logic.
The native WooCommerce filter works this way with both blocks and widgets, as demonstrated in the videos I provided. I expect the theme to function similarly, ensuring a smooth user experience regardless of the filter method used.
Could you please verify if this behaviour is consistent with classic widgets and ensure that filter blocks are behaving as expected, in line with WooCommerce’s native logic?
October 15, 2024 at 3:01 pm #605177
Artem TemosKeymasterHello,
WooCommerce has two types of filter widgets: classic widgets (which are already outdated) and new block filters. Our theme’s widgets are based on classic widgets and work exactly like any other theme. You can check it on your shop page now, where we added classic WooCommerce widgets
https://gyazo.com/e2cf1806a46e92cdc6e7f075653087bf
https://gyazo.com/819fc89020467fffe7af75ee139fdb30So, if you want to make them work, as you explained, you need to replace our theme’s widgets with new WooCommerce blocks.
Kind Regards
October 15, 2024 at 3:28 pm #605192
x7corpParticipantHi Artem,
I’m surprised that the theme still relies on classic widgets for filtering. With WooCommerce moving towards block-based and dynamic filtering, it would make sense for the theme to align with these modern standards, especially as you promote WooCommerce compatibility.
Could you clarify why the theme continues to use this older system? I believe updating the filtering to meet current WooCommerce standards would greatly improve the user experience and keep the theme competitive.
Thank you for your time and consideration.
October 15, 2024 at 3:32 pm #605193
Artem TemosKeymasterHello,
We can’t abandon this functionality and force all our customers to recreate filters on their websites. However, you can still use new WooCommerce block filters if you want. We will also consider adding our new block filters functionality in the future.
Kind Regards
October 15, 2024 at 5:02 pm #605225
x7corpParticipantHi Artem,
Thank you for your suggestion. However, after testing the WooCommerce block filters, I’ve found that they are not compatible with the theme. The styling does not match, and functionality is inconsistent with the rest of the site.
I understand the need to maintain classic widget functionality for existing customers, but it would be great if you could prioritise adding native support for block filters in future updates. This would ensure better integration with WooCommerce’s modern features and improve the user experience for those wanting to adopt newer filtering options.
Thank you for your attention to this, and I look forward to any updates you may provide.
October 15, 2024 at 5:05 pm #605227
Artem TemosKeymasterHello,
However, after testing the WooCommerce block filters, I’ve found that they are not compatible with the theme. The styling does not match, and functionality is inconsistent with the rest of the site.
They are fully compatible with the theme. They work as designed by WooCommerce and our theme doesn’t add any special styles to them.
I understand the need to maintain classic widget functionality for existing customers, but it would be great if you could prioritise adding native support for block filters in future updates. This would ensure better integration with WooCommerce’s modern features and improve the user experience for those wanting to adopt newer filtering options.
The theme already supports them. What you are looking for is one more variation for product filters: our new theme’s filters block, which uses WooCommerce blocks as a foundation and has our theme’s styling. For now, there are no such blocks in our theme, but we will consider adding them in the future.
Kind Regards
October 15, 2024 at 5:31 pm #605231
x7corpParticipantPerhaps I am not implementing them properly. Please look at the staging I provided earlier and look how they are presenting front-end.
October 16, 2024 at 9:19 am #605297
Artem TemosKeymasterIt seems that Gutenberg styles are disabled at the moment. Check this in Theme Settings -> Performance -> CSS.
October 16, 2024 at 9:38 pm #605580
x7corpParticipantHi Artem,
I’ve tested the WooCommerce block filters, but I found them to be slower and less effective than the theme’s current filter system. One of the main reasons I chose this theme was for its clean look and efficient filter appearance, which I prefer over the alternatives.
I understand that you might have reasons for maintaining classic widget functionality, but it should be possible to make your filters dynamic for OR filters, similar to how they already work for AND filters. Perhaps a theme setting could be introduced that allows users to switch the query from OR to AND between filter groups even when using OR filters within each group.
This would greatly improve the user experience by helping customers see compatible combinations, rather than being presented with a “No products were found matching your selection” message.
Thank you for considering this suggestion.
All the best.
October 17, 2024 at 9:12 am #605657
Artem TemosKeymasterHello,
As a workaround, you can try to disable the “Table usage” option in WooCommerce -> Settings -> Products -> Advanced. Then classic widgets will work exactly as WooCommerce blocks. https://gyazo.com/b826e7385602e070b1fc86a9ce306c6b
Kind Regards
-
AuthorPosts
Tagged: filter
- You must be logged in to create new topics. Login / Register