SOLVED: Filter Select - Review star value issue

//Edited this to a bug as “Lesser…” and “Greater…” operators do not work for whatever reason there is.

To let the user sort with AJAX with ratings criteria, I need to use the new Filter element. I would like to have 1 - 5 star attributes. The resulting values shown something like 4.80, 4.62 and so on. I have COMPARE set to “Equal or greater”, but actually none of those compare settings do change anything on the output.

How is it possible to to define a value range for the field “Find”, 1 star = 0-1.00, 2 star rating = 2.00 - 2.99 and so on?

Please see the screenshot which explains it better
https://ibb.co/zrzZtp8

Anyone can help here?

“Greater than” or “Lesser …” has no effect. Generell the response of that element is funky. I tried every possible combination and even less sane ones but that thing is not acting like it should… Seems this is still in Beta?

//Edit: Which brings us to further errors. The filter element is fundamentally flawed. Even a simple price range filter is not possible. Whatever I do, its max value is 70. Including the variable products, the maximum displayed should be 1560€. There is only 1 product cards query in the template… Since there is no option to define the max/min, I assume you guys want the filter to fetch those available min/max values by itself?? What is going on here??

Hi @Mike8040,

I tried to watch the video, but it’s not available anymore. Would it be possible to reupload it, and please include both issues in that video, so that I’ll know how to reproduce it.
If you show it step by step, that would be nice.

Thanks,
Matej

Well, this is because I didn’t post any video. Those are screenshots that in my opinion already show whats wrong / not working.

Any update on this? It there a bug with the "Equal or greater” operator or I’m doing something that bricks doesn’t expect?

Hi @Mike8040,

first - sorry that I forgot to get back to you.

I tested this in 1.11.1.1 and I can reproduce the issue. Even if I set “Equal or greater”, it always showed only one result.
I’ve then tested in the latest dev version, and the issue is solved. Now, I’ll ask the dev team to confirm this, and if I need more info for your case, I’ll ask for it. If not, then I’ll update this topic once we release the fix.

Sorry again,
Matej

Amazing, thanks for your feedback! Any time horizon for that public release?

I can only say soon :man_shrugging:.

1 Like

Hi @Mike8040 ,

We’ve fixed this in Bricks 1.12 BETA, now available as a manual download (Bricks – Account)

Please let us know if you are still experiencing issues.

You can see the full changelog here: Bricks 1.12 Changelog – Bricks

As with any beta release, please do not use it on a production/live website. It is only meant for testing in a local or staging environment.

Best regards,
Matej

Not solved here… Still not recognizing “greater than or equal”. Version 1.12.1 here…
Ah, and added to that “Hide empty” gets ignored. It is deactivated, so it should show two stars/emoji rating, but they are missing.

image

Price is also still bananas. Like I described above it should show 4€ - 1300€, but it stills shows 4 - 70. Yes, filter index was updated… I looks to me that variable products get ignored.
Was this all tested before it was marked as solved?

//EDIT: It would be great for showing a “rating” filter and replacing its ugly “rated-1” naming, if we were able to just use the taxonomy “product_visibilty” with what ever we need to show on the front-end. But selecting taxonomy we aren’t able to change the label for some reason.

But anyway, it would be still great when the operator “greater than or equal” would finally work though

Hi @Mike8040,

below you can see a screenshot, where I set up the same/similar filter as you, and as you can see, “greater than or equal” is working. I’ve selected 3.5 rating and it shows 3.5 and 4, but it’s not showing the others.

Can you double check you are on at least 1.12?

Matej

Matej

Sorry, but I don’t understand your screenshot being a proof for my issue reported. For one it seems like a disproof as the issue 1, the price range filter, is not including the max variation price like I reported (showing 38€ and not the possible 45€ for the hoodie)

The second issue is not visible that you solved it since you are using a dropdown. As you can see in several screenshots, that I’m trying to show equal emojis for star rating amounts (1, 2, 3, 4, 5) as a button. Also I used 1.12.1 as I said and the screenshots were taken because “greater than or equal” was still not working for me.
Again the setting, while I tried every variation of it now like a dumb ape since I’m waiting since NOV 2024 that I can finally have checkmark on that matter. So I tried every possible variation, caching, filter update task…

//Edit: It also should be noted that an additional bug is present. “Hide empty” gets totally ignored. It should show 2 emojis for rating of 2. It may that it is not possible with _wc_average_rating, if no 2 star ratings are available, but then again tax= product_visibilty does list ratings that aren’t available. But you do not let us change the labels for taxonomies.

Any update? It is marked as solved since two months now which I showed through evidences that it is not. I know u are small team and do your best, but it feels awkward to see it solved and the topic is silent

Hi @Mike8040,

I’m sorry, but I overlooked your answer.

  1. The range filter will go from minimum value to minimum value, that’s how it currently works.

  2. “Greater than or equal” means, that it will show all products, that have a rating the same or greater than the one that you selected. And the custom options you mapped, mean, that if the rating is “4.00”, it will show four emojis instead. But, if the value/rating is 4.20, it will just show a number, as you don’t have it mapped.
    So “Greater than or equal” doesn’t mean that it will show one emoji if the rating is 1.2 for example.
    Because of this, I think it works fine - even in your case.

  3. I also can’t reproduce the issues with “Hide empty”. What this control does, is that it will show the button/select, if there are no options for that exact value.
    Let’s say you have two categories → in the first one, you have a product with a rating 3.0, and in second one, you have a product with a rating of 4.0
    If you keep “Hide empty” disabled, then it will always show both “3.0” and “4.0” ratings in the filter, even if you filter by “second category”. But if you enable that option, and then you filter by “second category”, it will hide the 3.0 rating.

So, I don’t think there is an issue… or maybe I’m checking the wrong things.

Best regards,
Matej