{# /** * @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 */ #} {% for adjustment in totals.adjustments %} {% endfor %} {% if payment_method %} {% block payment_method %} {% endblock %} {% endif %}
{{ 'Order #@number'|t({'@number': commerce_order.getOrderNumber}) }}
{% if (billing_information or shipping_information) %} {% if shipping_information %} {% endif %} {% if billing_information %} {% endif %} {% if shipping_information %} {% endif %} {% if billing_information %} {% endif %}
{{ 'Shipping Information'|t }}{{ 'Billing Information'|t }}
{% block shipping_information %} {{ shipping_information }} {% endblock %} {% block billing_information %} {{ billing_information }} {% endblock %}
{% endif %}
{% block order_items %} {% for order_item in commerce_order.getItems %} {% endfor %}
{{ order_item.getQuantity|number_format }} x {{ order_item.label }} {{ order_item.getTotalPrice|commerce_price_format }}
{% endblock %}

{{ 'Subtotal: @subtotal'|t({'@subtotal': totals.subtotal|commerce_price_format}) }}

{{ adjustment.label }}: {{ adjustment.total|commerce_price_format }}

{{ 'Order Total: @total'|t({'@total': commerce_order.getTotalPrice|commerce_price_format}) }}

{{ 'Payment Method'|t }}: {{ payment_method }}