{% block buy_widget_price_inner %} {% if product.calculatedPrices|length > 1 %} {% block buy_widget_price_block %}
{% block buy_widget_price_block_table %} {% block buy_widget_price_block_table_head %} {% block buy_widget_price_block_table_head_inner %} {% if product.calculatedPrice.referencePrice %} {% endif %} {% endblock %} {% endblock %} {% block buy_widget_price_block_table_body %} {% block buy_widget_price_block_table_body_inner %} {% for price in product.calculatedPrices %} {% block buy_widget_price_block_table_body_row %} {% block buy_widget_price_block_table_body_cell_quantity %} {% endblock %} {% block buy_widget_price_block_table_body_cell_price %} {% endblock %} {% block buy_widget_price_block_table_body_cell_reference_price %} {% if price.referencePrice is not null %} {% endif %} {% endblock %} {% endblock %} {% endfor %} {% endblock %} {% endblock %}
{{ 'detail.dataColumnQuantity'|trans|sw_sanitize }} {{ 'detail.dataColumnPrice'|trans|sw_sanitize }} {{ 'detail.dataColumnReferencePrice'|trans|sw_sanitize }}
{% if loop.last %} {{ 'detail.priceDataInfoFrom'|trans|sw_sanitize }} {{ price.quantity }} {% else %} {{ 'detail.priceDataInfoUntil'|trans|sw_sanitize }} {{ price.quantity }} {% endif %} {% sw_include '@Storefront/storefront/component/product/block-price.html.twig' with { price: price } only %} {{ price.referencePrice.price|currency }} / {{ price.referencePrice.referenceUnit }} {{ price.referencePrice.unitName }}
{% endblock %}
{% endblock %} {% else %} {% set price = product.calculatedPrice %} {% if product.calculatedPrices|length == 1 %} {% set price = product.calculatedPrices.first %} {% endif %} {% block buy_widget_price_content %} {% set listPrice = price.listPrice %} {% set isListPrice = price.listPrice.percentage > 0 %} {% set isRegulationPrice = price.regulationPrice != null %}

{{ price.unitPrice|currency }}

{% if isListPrice %} {% block buy_widget_was_price %} {% block buy_widget_was_price_badge %} % {% endblock %} {% set afterListPriceSnippetExists = 'listing.afterListPrice'|trans|length > 0 %} {% set beforeListPriceSnippetExists = 'listing.beforeListPrice'|trans|length > 0 %} {% block buy_widget_was_price_wrapper %} {% if beforeListPriceSnippetExists %}{{'listing.beforeListPrice'|trans|trim}}{% endif %} {{ listPrice.price|currency }} {% if afterListPriceSnippetExists %} {{'listing.afterListPrice'|trans|trim}} {% endif %} {{ 'detail.listPricePercentage'|trans({'%price%': listPrice.percentage })|sw_sanitize }} {% endblock %} {% endblock %} {% endif %} {% if isRegulationPrice %} {{ 'general.listPricePreviously'|trans({'%price%': price.regulationPrice.price|currency }) }} {% endif %} {% endblock %} {% if product.purchaseUnit %} {% block buy_widget_price_unit %}
{% block buy_widget_price_unit_label %} {{ 'detail.priceUnitName'|trans|sw_sanitize }} {% endblock %} {% block buy_widget_price_unit_content %} {{ product.purchaseUnit }} {{ product.unit.translated.name }} {% endblock %} {% if price.referencePrice is not null %} {% block buy_widget_price_unit_reference_content %} ({{ price.referencePrice.price|currency }} / {{ price.referencePrice.referenceUnit }} {{ price.referencePrice.unitName }}) {% endblock %} {% endif %}
{% endblock %} {% endif %} {% endif %} {% endblock %}