{# /** * @file * Default order total summary template. * * Available variables: * - attributes: HTML attributes for the wrapper. * - order_entity: The order entity. * - totals: An array of order totals values with the following keys: * - subtotal: The order subtotal price. * - adjustments: The adjustments: * - type: The adjustment type. * - label: The adjustment label. * - amount: The adjustment amount. * - percentage: The decimal adjustment percentage, when available. For example, "0.2" for a 20% adjustment. * - total: The order total price. * * @ingroup themeable */ #} {{ attach_library('commerce_order/total_summary') }}
{{ 'Subtotal'|t }} {{ totals.subtotal|commerce_price_format }}
{% for adjustment in totals.adjustments %}
{{ adjustment.label }} {{ adjustment.amount|commerce_price_format }}
{% endfor %}
{{ 'Total'|t }} {{ totals.total|commerce_price_format }}