Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

fix vp-1236 show price with UNDER tag #131

Merged
merged 2 commits into from
Jan 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion snippets/tag-label.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}