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

Open in your IDE?
  1. {% if options is not defined or options is null %}
  2.     {% if isCommentTagExist is defined and isCommentTagExist is not null and isCommentTagExist == true -%}
  3.         {% set options = {
  4.             'price02OpenTag': '<span class="ec-price__price price02-default price02-default-no-tax">', 
  5.             'price02CloseTag' : '</span>', 
  6.             'price02IncTaxOpenTag' : '<span class="ec-price__tax ec-price__price price02-default">', 
  7.             'price02IncTaxCloseTag' : '</span>'
  8.         } %}
  9.     {% else %}
  10.         {% if TaxManagementConfig.isIncludeTaxFlag is not null and TaxManagementConfig.isIncludeTaxFlag == false -%}
  11.         {% set options = {
  12.             'price02OpenTag': '<span class="ec-price__price price02-default price02-default-no-tax">', 
  13.             'price02CloseTag' : '</span>', 
  14.             'price02IncTaxOpenTag' : '<span class="ec-price__tax">', 
  15.             'price02IncTaxCloseTag' : '</span>'
  16.         } %}
  17.         {% else %}
  18.         {% set options = {
  19.             'price02OpenTag': '<span class="ec-price__price price02-default">', 
  20.             'price02CloseTag' : '</span>', 
  21.             'price02IncTaxOpenTag' : '<span class="ec-price__tax">', 
  22.             'price02IncTaxCloseTag' : '</span>'
  23.         }%}
  24.         {% endif %}
  25.     {% endif %}
  26. {% endif -%}
  27. {% if isCommentTagExist is defined and isCommentTagExist is not null and isCommentTagExist == true -%}
  28. <div class="ec-productRole__price">
  29.     <div class="ec-price">
  30. {% endif %}
  31. {% if TaxManagementConfig is defined and TaxManagementConfig.isIncludeTaxFlag is not null and TaxManagementConfig.isIncludeTaxFlag == false -%}
  32.     {% if Product.hasProductClass -%}
  33.         {% if Product.getPrice02Min == Product.getPrice02Max %}
  34.         {{ options.price02OpenTag|raw }}{{ Product.getPrice02Max|price }}{{ options.price02CloseTag|raw }}
  35.         {{ options.price02IncTaxOpenTag|raw }}({{ Product.getPrice02IncTaxMin|price }}{{ '税込'|trans }}){{ options.price02IncTaxCloseTag|raw }}
  36.         {% else %}
  37.         {{ options.price02OpenTag|raw }}{{ Product.getPrice02Min|price }} ~ {{ Product.getPrice02Max|price }} {{ options.price02CloseTag|raw }}
  38.         {{ options.price02IncTaxOpenTag|raw }}({{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}{{ '税込'|trans }}){{ options.price02IncTaxCloseTag|raw }}
  39.         {% endif %}
  40.     {% else -%}
  41.         {{ options.price02OpenTag|raw }}{{ Product.getPrice02Min|price }}{{options.price02CloseTag|raw }}
  42.         {{ options.price02IncTaxOpenTag|raw }}({{ Product.getPrice02IncTaxMin|price }}{{ '税込'|trans }}){{ options.price02IncTaxCloseTag|raw }}
  43.     {% endif -%}
  44. {% else -%}
  45.     {% if Product.hasProductClass -%}
  46.         {% if Product.getPrice02Min == Product.getPrice02Max %}
  47.             {{ options.price02OpenTag|raw }}{{ Product.getPrice02IncTaxMin|price }}{{options.price02CloseTag|raw }}
  48.             {{ options.price02IncTaxOpenTag|raw }}{{ '税込'|trans }}{{ options.price02IncTaxCloseTag|raw }}
  49.         {% else %}
  50.             {{ options.price02OpenTag|raw }}{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }} {{ options.price02CloseTag|raw }}
  51.             {{ options.price02IncTaxOpenTag|raw }}{{ '税込'|trans }}{{ options.price02IncTaxCloseTag|raw }}
  52.         {% endif %}
  53.     {% else -%}
  54.         {{ options.price02OpenTag|raw }} {{ Product.getPrice02IncTaxMin|price }} {{ options.price02CloseTag|raw }}
  55.         {{ options.price02IncTaxOpenTag|raw }}{{ '税込'|trans }}{{ options.price02IncTaxCloseTag|raw }}
  56.     {% endif -%}
  57. {% endif -%}
  58. {% if isIncludeDiscountRate is defined and isIncludeDiscountRate is not null and isIncludeDiscountRate == true -%}
  59.     {{ include('@TaxManagement42/default/Product/detail_discount_rate.twig') }}
  60. {% endif -%}
  61. {% if isCommentTagExist is defined and isCommentTagExist is not null and isCommentTagExist == true -%}
  62.     </div>
  63. </div>
  64. {% endif %}