{# /** * @file * Template for the order receipt. * * Available variables: * - commerce_order: The order entity. * - billing_information: The billing information. * - shipping_information: The shipping information. * - payment_method: The payment method. * - totals: An array of order totals values with the following keys: * - subtotal: The order subtotal price. * - adjustments: An array of adjustment totals: * - type: The adjustment type. * - label: The adjustment label. * - total: The adjustment total price. * - weight: The adjustment weight, taken from the adjustment type. * - total: The order total price. * * @ingroup themeable */ #} {{ 'Order #@number'|t({'@number': commerce_order.getOrderNumber}) }} {% if billing_information %} {{ 'Billing Information'|t }} {% block billing_information %} {{ billing_information }} {% endblock %} {% endif %} {% if shipping_information %} {{ 'Shipping Information'|t }} {% block shipping_information %} {{ shipping_information }} {% endblock %} {% endif %} {% block order_items %} {% for order_item in commerce_order.getItems %} {{ order_item.getQuantity|number_format }} x {{ order_item.label }}: {{ order_item.getTotalPrice|commerce_price_format }} {% endfor %} {% endblock %} {% block totals %} {{ 'Subtotal: @subtotal'|t({'@subtotal': totals.subtotal|commerce_price_format}) }} {% for adjustment in totals.adjustments %} {{ adjustment.label }}: {{ adjustment.total|commerce_price_format }} {% endfor %} {{ 'Order Total: @total'|t({'@total': commerce_order.getTotalPrice|commerce_price_format})}} {% endblock %} {% if payment_method %} {% block payment_method %} {{ 'Payment Method: @payment_method'|t({'@payment_method': payment_method|render }) }} {% endblock %} {% endif %}