app/Plugin/TaxManagement42/Resource/template/default/Product/list_discount_rate.twig line 1

Open in your IDE?
  1.                                     {% if Product.discountRateMax is not null and Product.discountRateMax > 0%}
  2.                                     {# 割引率0以下or100以上の場合表示しない #}
  3.                                         {% if Product.hasProductClass -%}
  4.                                             {% if Product.discountRateMin == Product.discountRateMax %}
  5.                                             <span class="price_off ec-font-bold">({{ Product.discountRateMin }}%OFF)</span>
  6.                                             {% else %}
  7.                                             <span class="price_off ec-font-bold">({% if Product.discountRateMin > 0 %}{{ Product.discountRateMin }}% {% endif %} ~ {{ Product.discountRateMax }}%OFF)</span>
  8.                                             {% endif %}
  9.                                         {% else -%}
  10.                                             <span class="price_off ec-font-bold">({{ Product.discountRateMin }}%OFF)</span>
  11.                                         {% endif %}
  12.                                     {% endif %}