diff --git a/snippets/tag-label.liquid b/snippets/tag-label.liquid index 6b7cd499..aabe7b4a 100644 --- a/snippets/tag-label.liquid +++ b/snippets/tag-label.liquid @@ -4,6 +4,14 @@ {% capture tag_lower %}{% if tag.lower %}{% if tag.group_type == "pricerange" %}{{ tag.lower | money_with_currency }}{% else %}{{ tag.lower }}{% endif %}{% endif %}{% endcapture %} {% capture tag_upper %}{% if tag.upper %}{% if tag.group_type == "pricerange" %}{{ tag.upper | money_with_currency }}{% else %}{{ tag.upper }}{% endif %}{% endif %}{% endcapture %} {% capture tag_label_template %}tags.{{ tag.group_type }}.{% if tag.lower and tag.upper %}between{% elsif tag.lower %}greater{% elsif tag.upper %}less{% endif %}{% endcapture %} - {% capture tag_label %}{{ tag_label_template | t: tag_lower, tag_upper }}{% endcapture %} + {% capture tag_label %} + {% if tag.lower and tag.upper %} + {{ tag_label_template | t: tag_lower, tag_upper }} + {% elsif tag.lower %} + {{ tag_label_template | t: tag_lower }} + {% else %} + {{ tag_label_template | t: tag_upper }} + {% endif %} + {% endcapture %} {% endif %} {% endif %}