{% if Product.discountRateMax is not null and Product.discountRateMax > 0%}
{# 割引率0以下or100以上の場合表示しない #}
{% if Product.hasProductClass -%}
{% if Product.discountRateMin == Product.discountRateMax %}
<span class="price_off ec-font-bold">({{ Product.discountRateMin }}%OFF)</span>
{% else %}
<span class="price_off ec-font-bold">({% if Product.discountRateMin > 0 %}{{ Product.discountRateMin }}% {% endif %} ~ {{ Product.discountRateMax }}%OFF)</span>
{% endif %}
{% else -%}
<span class="price_off ec-font-bold">({{ Product.discountRateMin }}%OFF)</span>
{% endif %}
{% endif %}