I am using Drupal 8, Drupal Commerce 2 for my commerce website.
The product variation has a field 'field_stock' to indicate product stock level.
I have a view to show and filter products.
I added a grouped filter for the 'stock' number field.
Configure filter criterion: Product variation: Available Items (field_stock)
- Filter type to expose: Grouped filters
- Widget type: Select
Available options:
- Any
- Grouping 1: In stock, is greater than, 0
- Grouping 2: Out of stock. is less than or equal, 0
after saving the filter and reopening it, the values set are empty (the zeros in the grouping 1 and grouping 2)
it looks like there's a problem in persisting values for grouped filters!
Comments
Comment #2
Wisamx commentedComment #5
pameeela commentedThanks for reporting this issue. We rely on issue reports like this one to resolve bugs and improve Drupal core.
As part of the Bug Smash Initiative, we are triaging Drupal core issues with the priority 'Major'.
I've tried to reproduce this but it is working fine on 9.0.2.
Grouped filter config:

In stock results:

Out of stock results:

Going to close based on this, may have been fixed elsewhere but I wasn't able to find an issue for it.