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

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