{% import "@SyliusShop/Common/Macro/money.html.twig" as money %} {% set orderShippingPromotionAdjustment = constant('Sylius\\Component\\Core\\Model\\AdjustmentInterface::ORDER_SHIPPING_PROMOTION_ADJUSTMENT') %} {% set shippingAdjustment = constant('Sylius\\Component\\Core\\Model\\AdjustmentInterface::SHIPPING_ADJUSTMENT') %} {% set orderShippingPromotions = sylius_aggregate_adjustments(order.getAdjustmentsRecursively(orderShippingPromotionAdjustment)) %} {% if not orderShippingPromotions is empty %} {{ 'sylius.ui.shipping_total'|trans }}: {{ money.convertAndFormat(order.getAdjustmentsTotal(shippingAdjustment)) }} {{ money.convertAndFormat(order.getAdjustmentsTotal(shippingAdjustment) + order.getAdjustmentsTotal(orderShippingPromotionAdjustment)) }} {% elseif order.shipments is not empty %} {{ 'sylius.ui.shipping_total'|trans }}: {{ money.convertAndFormat(order.shippingTotal) }} {% endif %}