Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mathieu1984

    (@mathieu1984)

    I’ll try to explain it more clearly. The best way to reproduce it is:

    • Add a first Filter by Attribute (e.g. ‘product type’)
    • Add a second Filter by Attribute (e.g. ‘brand’)
    • Now you first filter on the first attribute and select e.g. ‘t-shirt’ as a product type. The filter will correctly show you all products with ‘t-shirt’ as product type. So far no problem. The products are correctly filtered
    • However, what isn’t correctly filtered are the available attributes in the second filter. All brands are still shown when the first filter is set. Even brands that do not have products with ‘t-shirt’ as a product type. In my previous Woocommerce version, not only were the products correctly filtered (which is still the case), the available values to select from in a second filter were also filtered. This is no longer the case. The filters obviously still works and when setting the second filter, the products are still correctly filtered. But it is confusing for users to see attributes in a second filter that, when selected, will result in a selection of 0 products anyway. Previously, these options were hidden when a first filter was set. If Brand X does not have t-shirts, previously, Brand X wasn’t shown as an option in the second filter when a first attribute filter was set to ‘t-shirt’.

    Like I said, deselecting the ‘use the product attributes lookup table for catalog filtering’ seems to solve this in the current Woocommerce version (i.e. the filters show the behaviour of past versions), but this behaviour should be unrelated to that setting.

    Thread Starter mathieu1984

    (@mathieu1984)

    Hi,

    Thank you for your reply. I’m familiar with the link. However, this new functionality seems to be what causes the changed/wrong behaviour of the standard woocommerce attribute filters when using multiple instances of these filters on the same page. I can turn off the new product filtering for now, but I would like to know if this is a known issue or if there is anything else I can do to have the filters working correctly as in past versions while also having the new functionality.

    Thread Starter mathieu1984

    (@mathieu1984)

    UPDATE: I was just able to find a workaround. In Woocommerce – Settings – Products – Advanced, I unchecked “Use the product attributes lookup table for catalog filtering”. After unchecking this box, I now have the expected behaviour as it was in the past.

    Is there a better fix for this? I would really like to use the new product filtering mechanism that was introduced in 6.3, but unchecking this box disables this again.

    mathieu1984

    (@mathieu1984)

    I seem to have the same problem. It works fine for AND query type, but if I change it to OR query type I also get the empty attributes. I tried disabling all plugins, but the problem persists. I did notice that I’m on MySQL version 5.5.31. Could this be the cause or is there anything else I can try?

    You can see it here.

Viewing 4 replies - 1 through 4 (of 4 total)