{% import "@SyliusShop/Common/Macro/money.html.twig" as money %} {% set items_subtotal = sylius_order_items_subtotal(order) %} {% set tax_included = sylius_order_tax_included(order) %} {% set tax_excluded = sylius_order_tax_excluded(order) %} {% set order_promotion_adjustment = constant('Sylius\\Component\\Core\\Model\\AdjustmentInterface::ORDER_PROMOTION_ADJUSTMENT') %} {% set order_promotions = sylius_aggregate_adjustments(order.adjustmentsRecursively(order_promotion_adjustment)) %} {% set class = class|default({ row: 'd-flex justify-content-between align-items-center py-2 border-bottom', total_row: 'd-flex justify-content-between align-items-center py-2 fs-5 fw-medium', highlight: 'fw-medium', }) %}
{{ 'sylius.ui.items_total'|trans }}: {{ money.convertAndFormat(items_subtotal) }}
{{ 'sylius.ui.taxes_total'|trans }}:
{% if not tax_included and not tax_excluded %}
{{ money.convertAndFormat(0) }}
{% endif %} {% if tax_excluded %}
{{ money.convertAndFormat(tax_excluded) }}
{% endif %} {% if tax_included %}
({{ 'sylius.ui.included_in_price'|trans }}) {{ money.convertAndFormat(tax_included) }}
{% endif %}
{{ 'sylius.ui.discount'|trans }}: {{ money.convertAndFormat(order.orderPromotionTotal) }} {% if order.orderPromotionTotal != 0 %} {% endif %}
{% include '@SyliusShop/Common/Order/Table/_shipping.html.twig' with {order, class} %}
{{ 'sylius.ui.total'|trans }}: {{ money.convertAndFormat(order.total) }}
{% if order.currencyCode is not same as(sylius.currencyCode) %}
{{ 'sylius.ui.total_in_base_currency'|trans }}: {{ money.format(order.total, order.currencyCode) }}
{% endif %}