I have currently a product metafield of type decimal and values min:0.1 and max:2.0. I would like for this metafield to create a filter on my Shopify store with multiple ranges as shown next:
- 0.1 - 0.2
- 0.3 - 0.4
- 0.5 - 0.8
- 0.9 - 2.0
Users should be able to select multiple options i.e it could be a dropdown with checkboxes or toggle buttons one each of the above options. Example, given x the name of the above metafield value, if the two first options are selected Shopify should return products where 0.1 >= x <= 0.4.
Is this possible with the current storefront API and liquid? I asked this before and the response that I got was that the current implementation for filters, doesn’t allow the functionality I described above. It does only allow to represent metafield x as a string, then comparison with the selected value(s) from the dropdown would be straight forward.