app/template/flapshop/Product/customer_price_detail.twig line 1

Open in your IDE?
  1. {#
  2. * Plugin Name : CustomerRank
  3. *
  4. * Copyright (C) BraTech Co., Ltd. All Rights Reserved.
  5. * http://www.bratech.co.jp/
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. #}
  10. {% if CustomerRank %}
  11. <div class="ec-productRole__price" style="margin: 1rem 0;">
  12.     <p style="font-size: 1.6rem;">{{ CustomerRank.name }}{{ 'customerrank.common.customer_price'|trans }}</p>
  13.     {% if Product.hasProductClass -%}
  14.         {% if Product.getCustomerRankPriceIncTaxMin(CustomerRank.id) == Product.getCustomerRankPriceIncTaxMax(CustomerRank.id) %}
  15.             <div class="ec-price">
  16.                 <span class="ec-price__price" id="customer_rank_price_default">{{ Product.getCustomerRankPriceIncTaxMin(CustomerRank.id)|price }}</span>
  17.                 <span class="ec-price__tax">{{ 'common.tax_include'|trans }}</span>
  18.             </div>
  19.         {% else %}
  20.             <div class="ec-price">
  21.                 <span class="ec-price__price" id="customer_rank_price_default">{{ Product.getCustomerRankPriceIncTaxMin(CustomerRank.id)|price }} ~ {{ Product.getCustomerRankPriceIncTaxMax(CustomerRank.id)|price }}</span>
  22.                 <span class="ec-price__tax">{{ 'common.tax_include'|trans }}</span>
  23.             </div>
  24.         {% endif %}
  25.     {% else %}
  26.         <div class="ec-price">
  27.             <span class="ec-price__price" id="customer_rank_price_default">{{ Product.getCustomerRankPriceIncTaxMin(CustomerRank.id)|price }}</span>
  28.             <span class="ec-price__tax">{{ 'common.tax_include'|trans }}</span>
  29.         </div>
  30.     {% endif %}
  31. </div>
  32. {% endif %}