{% block buy_widget_price_inner %} {% if product.calculatedPrices|length > 1 %} {% block buy_widget_price_block %}
| {{ 'detail.dataColumnQuantity'|trans|sw_sanitize }} | {{ 'detail.dataColumnPrice'|trans|sw_sanitize }} | {% if product.calculatedPrice.referencePrice %}{{ 'detail.dataColumnReferencePrice'|trans|sw_sanitize }} | {% endif %}
|---|---|---|
| {% if loop.last %} {{ 'detail.priceDataInfoFrom'|trans|sw_sanitize }} {{ price.quantity }} {% else %} {{ 'detail.priceDataInfoUntil'|trans|sw_sanitize }} {{ price.quantity }} {% endif %} | {% endblock %} {% block buy_widget_price_block_table_body_cell_price %}{% sw_include '@Storefront/storefront/component/product/block-price.html.twig' with { price: price } only %} | {% endblock %} {% block buy_widget_price_block_table_body_cell_reference_price %} {% if price.referencePrice is not null %}{{ price.referencePrice.price|currency }} / {{ price.referencePrice.referenceUnit }} {{ price.referencePrice.unitName }} | {% endif %} {% endblock %}
{{ 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 %}