{% if options is not defined or options is null %}
{% if isCommentTagExist is defined and isCommentTagExist is not null and isCommentTagExist == true -%}
{% set options = {
'price02OpenTag': '<span class="ec-price__price price02-default price02-default-no-tax">',
'price02CloseTag' : '</span>',
'price02IncTaxOpenTag' : '<span class="ec-price__tax ec-price__price price02-default">',
'price02IncTaxCloseTag' : '</span>'
} %}
{% else %}
{% if TaxManagementConfig.isIncludeTaxFlag is not null and TaxManagementConfig.isIncludeTaxFlag == false -%}
{% set options = {
'price02OpenTag': '<span class="ec-price__price price02-default price02-default-no-tax">',
'price02CloseTag' : '</span>',
'price02IncTaxOpenTag' : '<span class="ec-price__tax">',
'price02IncTaxCloseTag' : '</span>'
} %}
{% else %}
{% set options = {
'price02OpenTag': '<span class="ec-price__price price02-default">',
'price02CloseTag' : '</span>',
'price02IncTaxOpenTag' : '<span class="ec-price__tax">',
'price02IncTaxCloseTag' : '</span>'
}%}
{% endif %}
{% endif %}
{% endif -%}
{% if isCommentTagExist is defined and isCommentTagExist is not null and isCommentTagExist == true -%}
<div class="ec-productRole__price">
<div class="ec-price">
{% endif %}
{% if TaxManagementConfig is defined and TaxManagementConfig.isIncludeTaxFlag is not null and TaxManagementConfig.isIncludeTaxFlag == false -%}
{% if Product.hasProductClass -%}
{% if Product.getPrice02Min == Product.getPrice02Max %}
{{ options.price02OpenTag|raw }}{{ Product.getPrice02Max|price }}{{ options.price02CloseTag|raw }}
{{ options.price02IncTaxOpenTag|raw }}({{ Product.getPrice02IncTaxMin|price }}{{ '税込'|trans }}){{ options.price02IncTaxCloseTag|raw }}
{% else %}
{{ options.price02OpenTag|raw }}{{ Product.getPrice02Min|price }} ~ {{ Product.getPrice02Max|price }} {{ options.price02CloseTag|raw }}
{{ options.price02IncTaxOpenTag|raw }}({{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }}{{ '税込'|trans }}){{ options.price02IncTaxCloseTag|raw }}
{% endif %}
{% else -%}
{{ options.price02OpenTag|raw }}{{ Product.getPrice02Min|price }}{{options.price02CloseTag|raw }}
{{ options.price02IncTaxOpenTag|raw }}({{ Product.getPrice02IncTaxMin|price }}{{ '税込'|trans }}){{ options.price02IncTaxCloseTag|raw }}
{% endif -%}
{% else -%}
{% if Product.hasProductClass -%}
{% if Product.getPrice02Min == Product.getPrice02Max %}
{{ options.price02OpenTag|raw }}{{ Product.getPrice02IncTaxMin|price }}{{options.price02CloseTag|raw }}
{{ options.price02IncTaxOpenTag|raw }}{{ '税込'|trans }}{{ options.price02IncTaxCloseTag|raw }}
{% else %}
{{ options.price02OpenTag|raw }}{{ Product.getPrice02IncTaxMin|price }} ~ {{ Product.getPrice02IncTaxMax|price }} {{ options.price02CloseTag|raw }}
{{ options.price02IncTaxOpenTag|raw }}{{ '税込'|trans }}{{ options.price02IncTaxCloseTag|raw }}
{% endif %}
{% else -%}
{{ options.price02OpenTag|raw }} {{ Product.getPrice02IncTaxMin|price }} {{ options.price02CloseTag|raw }}
{{ options.price02IncTaxOpenTag|raw }}{{ '税込'|trans }}{{ options.price02IncTaxCloseTag|raw }}
{% endif -%}
{% endif -%}
{% if isIncludeDiscountRate is defined and isIncludeDiscountRate is not null and isIncludeDiscountRate == true -%}
{{ include('@TaxManagement42/default/Product/detail_discount_rate.twig') }}
{% endif -%}
{% if isCommentTagExist is defined and isCommentTagExist is not null and isCommentTagExist == true -%}
</div>
</div>
{% endif %}