Home Forums WoodMart support forum Product Filters problem

Product Filters problem

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #716296

    luka-2844
    Participant

    Hello,

    I have problem with Product Filters widget in Shop, Woodmart Nav Product filter…

    For example we have 3 filters in sidebar:
    1. with query type: AND
    2. with query type: OR
    3. with query type AND

    Problem is that when you filter anything for 2nd filter with OR, it is not excluding available options in other 2 filters… which leads in “not found any products”.

    I think it was not working like this before, should be in any case excluding available options in other filters immediately.

    #716298

    luka-2844
    Participant

    Sorry, I have realised that there are 2 different problems regarding this matter.

    1. We are using Woocommerce Brands for brands. For filtering in widget Woocommerce Layered Nav we added “Product Brand”
    We tested with all filters as “AND” in this situation. So when you select options in other filter then “Brand” filter, “Brand” filter is not excluding options, the list of the brands is always the same. But all other filters that are created as regular Attributes are working fine, and are excluding options.
    If “Brands” filter is selected first, then other filters are working good. But if you select other filter before, then “Brands” is not working good.

    2. We have created custom layout for Product Archive and added Woodmart Product Filters Element in Elementor.
    You will see 3rd filter in the list called “TIP KOSE” is filter with multiple options for each product, which means that when you select 1 option from this filter, the other options show up within the same filter as available again (for products that fulfil multiple options for same filter). Now in this Woodmart Product Filters Element in Elementor, for this widget you cannot filter and select multiple options, only 1 option. When you try to click on different option to include it also, it is excluding the previous option selected and then filtering only for 2nd option selected.
    Note that i have noticed this only here. In normal Shop sidebar, this is working as normal and you can select multiple options.

    #716304

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    We have checked your site, and currently all three attribute filters in the shop page widget area are set to the AND query type.

    Since the issue you described involves a filter with the OR query type, could you please confirm where this is set or share screenshots showing the exact configuration and steps to reproduce the problem? This will help us investigate it more accurately.

    Best Regards

    #716324

    luka-2844
    Participant

    Sorry, I have realised that there are 2 different problems regarding this matter.

    1. We are using Woocommerce Brands for brands. For filtering in widget Woocommerce Layered Nav we added “Product Brand”
    We tested with all filters as “AND” in this situation. So when you select options in other filter then “Brand” filter, “Brand” filter is not excluding options, the list of the brands is always the same. But all other filters that are created as regular Attributes are working fine, and are excluding options.
    If “Brands” filter is selected first, then other filters are working good. But if you select other filter before, then “Brands” is not working good.

    2. We have created custom layout for Product Archive and added Woodmart Product Filters Element in Elementor.
    You will see 3rd filter in the list called “TIP KOSE” is filter with multiple options for each product, which means that when you select 1 option from this filter, the other options show up within the same filter as available again (for products that fulfil multiple options for same filter). Now in this Woodmart Product Filters Element in Elementor, for this widget you cannot filter and select multiple options, only 1 option. When you try to click on different option to include it also, it is excluding the previous option selected and then filtering only for 2nd option selected.
    Note that i have noticed this only here. In normal Shop sidebar, this is working as normal and you can select multiple options.

    I am sending you in private link where you can test this..

    #716373

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    We have checked it on our test site and the same behaviour, and this behavior is related to how WooCommerce layered navigation works.

    Product attributes (such as color, size, etc.) filtering system and dynamically updating available options. However, the “Brand” filter you are using is based on a custom taxonomy (from the WooCommerce Brands plugin), which is not handled the same way.

    Because of this, when other filters are selected first, the Brand filter does not dynamically exclude unavailable options, which can lead to inconsistent results.

    As a workaround, you can either use attributes for brands of our theme and check how it works.https://xtemos.com/docs-topic/product-brands/

    02. Could you please share some useful screenshots for better understanding that demonstrate the problem, so we can understand and reproduce it on your website?

    Best Regards

    #716471

    luka-2844
    Participant

    Hello,

    Okay, so regarding first question it is clear now. I have added a brand like normal attribute and now it is normally excluding options.

    Regarding 2nd question…
    First attribute is set with AND option.
    When you are selecting options from left sidebar, you can select multiple options available in the same time. (Picture 1)
    But when you are selecting options for same filter from the Elementor Product filter widget, then you cannot select multiple options.

    So picture 2 is when you select first option from the widget. And picture 3 is when you select 2nd available option from same widget. When you select 2nd option, it should just add this option on top of the 1st option selected. Instead, when you select 2nd option, it exclude 1st selected option and shows only 2nd chosen option.

    Attachments:
    You must be logged in to view attached files.
    #716505

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Navigate to Layout > Edit Product Filter widget > Expand the attribute filter and change Query from AND to OR.
    https://postimg.cc/G45x6WQW

    In this way, multiple selections add cumulatively (like sidebar) instead of replacing.

    Best Regards

    #716513

    luka-2844
    Participant

    Noted, all good now. Tnx

    #716515

    luka-2844
    Participant

    Sorry, it is actually not working okay.

    With OR option, it is filtering products that are inside both options (but separated). Products with 1st option + products with 2nd option = total number of products displayed.

    With AND option, it is filtering products that are inside both options (both in same time). So one product can be in 2 options in the same time.

    And with AND option, which we need, is like this in the sidebar. Widget is set to AND in sidebar, there it is working normally, so you can test from there.
    But in the Elementor part it is not working like this.

    #716556

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Could you please share some useful screenshots for better understanding how it works on your site that demonstrate the problem, so we can understand and reproduce it on your website?

    Best Regards

    #716661

    luka-2844
    Participant

    Hello,

    I created video, low resolution but you will see..

    So in left sidebar you can select multiple options in same time. But in Elementor widget you can select only 1 option. Immediately when you select 2nd available option, it remove 1st option already selected and shows only 2nd option. Instead of showing both options in the same time.

    Both widgets set with option AND

    Attachments:
    You must be logged in to view attached files.
    #716735

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Thank you for the detailed explanation and video.

    What you are experiencing is expected behavior. The WooCommerce sidebar filters support multi-selection within the same attribute using AND logic, which is why they work as you expect. However, the WoodMart Product Filters element in Elementor is designed to allow only a single selection per attribute, so selecting a new option replaces the previous one.

    At the moment, this behavior cannot be changed for the Elementor filter widget. If you require multi-select functionality with AND logic, we recommend using the default sidebar filters.

    Best Regards

    #718989

    vasilbekyarov
    Participant

    He, some of my brand attributes, not showing in filters ?

    How to fix this ?

    I use woodmart brand attribute for brands

    Attachments:
    You must be logged in to view attached files.
    #719016

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Try to regenerate “Regenerate the product attributes lookup table” in Woocommerce > Status > Tools.
    See this screenshot: https://gyazo.com/73736acec1f3ef5787e4e1610d3f3851

    Navigate to Woocommerce > Settings > Product tab > Advanced tab and disable Use the product attributes lookup table for catalog filtering and check the issue: https://gyazo.com/637a2e9265c643fd5cb960587d543e41

    Best Regards

Viewing 14 posts - 1 through 14 (of 14 total)