I would like to show quantity for one of the product variants only on a product page regardless of which variant is selected. Why does the following code not output anything, no matter what option is selected? Does the where filter work with variant options?
{% assign onem_variants = variants | where: “option1”, “1 Metre” %}
{% for variant in onem_variants %}
{{ variant.inventory_quantity }} metres in stock
{% endfor %}