{% block component_line_item_total_price %} {% block component_line_item_total_price_label %}
{{ 'checkout.cartHeaderTotalPrice'|trans|sw_sanitize }}:
{% endblock %} {% block component_line_item_total_price_value %}
{# Shipping costs discounts always have a price of 0, which might be confusing, therefore we do not show those #} {% if lineItem.payload.discountScope != 'delivery' %} {% set lineItemTotalPrice = lineItem.price.totalPrice ?? 0 %} {% if lineItemTotalPrice < 0 %} − {% endif %} {% if displayMode === 'order' %} {{ lineItemTotalPrice|abs|currency(order.currency.isoCode) }} {% else %} {{ lineItemTotalPrice|abs|currency(currency) }} {% endif %} {% endif %} {% set referencePrice = lineItem.price.referencePrice %} {% if referencePrice is not null and displayMode == 'offcanvas' %}
({{ referencePrice.price|currency(currency) }} / {{ referencePrice.referenceUnit }} {{ referencePrice.unitName }}) {% endif %}
{% endblock %} {% endblock %}