I have a question about the storefront filtering.
On the Shopify documentation (https://shopify.dev/themes/navigation-search/filtering), on the “Filter Types / Produt-specific filters” section, I can see on the table that for the Metafield, we can put a single metafield value, or a comma-separated list and use it to filter products.
I tried it, by selecting the “single_line_text_field”, but it doesn’t seem to work as expected. In fact, if I put for example, “canada,usa” (a comma separated list) on my product metafield, the behavior we are trying to have is the filter option “canada” and the filter option “usa” available on our filters list. The behavior we actually have is the option “canada,usa” on our filters list (see screenshots below).
It seems like the Shopify docs are incorrect on this. I had the same issue but came up with a workaround. It does require some liquid and javascript knowledge though, so it’s not a simple update to make.
It looks like Shopify has recently solved this problem in their April 6th changelog by allowing to create multiple values for the single line text field.