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

Open in your IDE?
  1. {% if options is not defined or options is null %}
  2.     {% if Product.hasProductClass -%}
  3.     {% set options = {
  4.         'price01OpenTag': '<span class="ec-productRole__priceRegularPrice">' ~ '通常価格'|trans ~ ':<span class="price01-default">', 
  5.         'price01CloseTag' : '</span></span>', 
  6.         'price01IncTaxOpenTag' : '<span class="ec-productRole__priceRegularTax">', 
  7.         'price01IncTaxCloseTag' : '</span>'
  8.     } %}
  9.     {% else %}
  10.     {% set options = {
  11.         'price01OpenTag': '<span class="ec-productRole__priceRegularPrice">' ~ '通常価格'|trans ~ ':', 
  12.         'price01CloseTag' : '</span>', 
  13.         'price01IncTaxOpenTag' : '<span class="ec-productRole__priceRegularTax">', 
  14.         'price01IncTaxCloseTag' : '</span>'
  15.     }%}
  16.     {% endif %}
  17. {% endif -%}
  18. {% if Product.hasProductClass -%}
  19.     {% if (isCommentTagExist is defined and isCommentTagExist is not null and isCommentTagExist == true) -%}
  20.     <div class="ec-productRole__priceRegular">
  21.     {% endif -%}
  22.         {% if Product.getPrice01Min is not null and Product.getPrice01IncTaxMin == Product.getPrice01IncTaxMax %}
  23.             {{ options.price01OpenTag|raw }}{{ Product.getPrice01IncTaxMin|price }}{{ options.price01CloseTag|raw }}
  24.             {{ options.price01IncTaxOpenTag|raw }}{{ '税込'|trans }}{{ options.price01IncTaxCloseTag|raw }}
  25.         {% elseif Product.getPrice01Min is not null and Product.getPrice01Max is not null %}
  26.             {{ options.price01OpenTag|raw }}{{ Product.getPrice01IncTaxMin|price }} ~ {{ Product.getPrice01IncTaxMax|price }}{{ options.price01CloseTag|raw }}
  27.             {{ options.price01IncTaxOpenTag|raw }}{{ '税込'|trans }}{{ options.price01IncTaxCloseTag|raw }}
  28.         {% endif %}
  29.     {% if (isCommentTagExist is defined and isCommentTagExist is not null and isCommentTagExist == true) -%}
  30.     </div>
  31.     {% endif -%}
  32. {% else %}
  33.     {% if Product.getPrice01Max is not null %}
  34.         {{ options.price01OpenTag|raw }}{{ Product.getPrice01IncTaxMin|price }}{{ options.price01CloseTag|raw }}
  35.         {{ options.price01IncTaxOpenTag|raw }}{{ '税込'|trans }}{{ options.price01IncTaxCloseTag|raw }}
  36.     {% endif %}
  37. {% endif %}