{% block component_product_box_price_info %}
{# @deprecated tag:v6.5.0 - purchaseUnit will be removed, use product.purchaseUnit if needed #}
{% set purchaseUnit = product.purchaseUnit %}
{# @deprecated tag:v6.5.0 - listingPrice will be removed without replacement, since it was removed from the product struct #}
{% set listingPrice = product.calculatedListingPrice %}
{# @deprecated tag:v6.5.0 - fromPrice will be removed without replacement #}
{% set fromPrice = listingPrice.from %}
{% set cheapest = product.calculatedCheapestPrice %}
{% set real = product.calculatedPrice %}
{% if product.calculatedPrices.count > 0 %}
{% set real = product.calculatedPrices.last %}
{% endif %}
{% set referencePrice = real.referencePrice %}
{% set name = product.translated.name %}
{% set displayFrom = product.calculatedPrices.count > 1 %}
{% set displayParent = product.variantListingConfig.displayParent and product.parentId === null %}
{% if displayParent %}
{% set displayFromVariants = displayParent and real.unitPrice !== cheapest.unitPrice %}
{% set real = cheapest %}
{% endif %}
<div class="product-price-info" style="margin-top: 0px;">
{# {% block component_product_box_price_unit %}
<p class="product-price-unit">
{% block component_product_box_price_purchase_unit %}
{% if referencePrice and referencePrice.unitName %}
<span class="product-unit-label">
{{ "listing.boxUnitLabel"|trans|sw_sanitize }}
</span>
<span class="price-unit-content">
{{ referencePrice.purchaseUnit }} {{ referencePrice.unitName }}
</span>
{% endif %}
{% endblock %}
{% block component_product_box_price_reference_unit %}
{% if referencePrice is not null %}
<span class="price-unit-reference">
({{ referencePrice.price|currency }} / {{ referencePrice.referenceUnit }} {{ referencePrice.unitName }})
</span>
{% endif %}
{% endblock %}
</p>
{% endblock %} #}
{% block component_product_box_price %}
<div class="product-price-wrapper">
{% set price = real %}
{% set calcedTax = (price.calculatedTaxes.elements|first) %}
{% set tax = calcedTax.tax %}
{% set isListPrice = price.listPrice.percentage > 0 %}
{% set isRegulationPrice = price.regulationPrice != null %}
<div class="almarenaRegular" style="width:100%; color:black; display:flex; font-size:20px;">
<div class="width-50">
(netto)
</div>
<div class="width-50" style="text-align: end;">
{{ (price.totalPrice-tax)|currency(decimals=2) }}
</div>
</div>
<div class="almarenaBold" style="width:100%; color:black; display:flex; font-size:20px">
<div class="width-50">
Gesamtpreis
</div>
<div class="width-50" style="text-align: end;">
{{ (price.totalPrice)|currency(decimals=2) }}
</div>
</div>
{#
<div class="product-cheapest-price{% if isListPrice and isRegulationPrice and not displayFrom and not displayFromVariants %} with-list-price{% endif %}{% if isRegulationPrice and not displayFrom and displayFromVariants %} with-regulation-price{% endif %}{% if displayFrom and isRegulationPrice %} with-from-price{% endif %}">
{% if cheapest.unitPrice != real.unitPrice %}
<div>{{ "listing.cheapestPriceLabel"|trans|sw_sanitize }}<span class="product-cheapest-price-price"> {{ cheapest.unitPrice|currency }}</span></div>
{% endif %}
</div>
#}
{# {% if displayFrom or (displayParent and displayFromVariants) %}
{{ "listing.listingTextFrom"|trans|sw_sanitize }}
{% endif %}
<span class="product-price{% if isListPrice and not displayFrom and not displayFromVariants %} with-list-price{% endif %}">
{% if isListPrice and not displayFrom and not displayFromVariants %}
{% set afterListPriceSnippetExists = "listing.afterListPrice"|trans|length > 0 %}
{% set beforeListPriceSnippetExists = "listing.beforeListPrice"|trans|length > 0 %}
{% set hideStrikeTrough = beforeListPriceSnippetExists or afterListPriceSnippetExists %}
<span class="list-price{% if hideStrikeTrough %} list-price-no-line-through{% endif %}">
{% if beforeListPriceSnippetExists %}{{ "listing.beforeListPrice"|trans|trim|sw_sanitize }}{% endif %}
<span class="list-price-price">{{ price.listPrice.price|currency }}</span>
{% if afterListPriceSnippetExists %}{{ "listing.afterListPrice"|trans|trim|sw_sanitize }}{% endif %}
<span class="list-price-percentage">{{ "detail.listPricePercentage"|trans({'%price%': price.listPrice.percentage })|sw_sanitize }}</span>
</span>
{% endif %}
</span>
<div>
</div> #}
{# {% if isRegulationPrice %}
<span class="product-price with-regulation-price">
{% if isListPrice %}<br/>{% endif %}<span class="regulation-price">{{ "general.listPricePreviously"|trans({'%price%': price.regulationPrice.price|currency }) }}</span>
</span>
{% endif %} #}
</div>
{% endblock %}
</div>
{% endblock %}
<style>
.width-50{
width: 50%;
}
.font-size32{
font-size: 32px;
}
.font-size25{
font-size: 25px;
}
.font-size16{
font-size: 16px;
}
.font-size14{
font-size: 14px;
}
.font-weight-bold{
font-weight: bold;
}
</style>