{# * This file is the default customer invoice template for Ubercart. * * Available variables: * - products: An array of product objects in the order, with the following * members: * - title: The product title. * - model: The product SKU. * - qty: The quantity ordered. * - total_price: The formatted total price for the quantity ordered. * - individual_price: If quantity is more than 1, the formatted product * price of a single item. * - details: Any extra details about the product, such as attributes. * - line_items: An array of line item arrays attached to the order, each with * the following keys: * - type: The type of line item (subtotal, shipping, etc.). * - title: The line item display title. * - formatted_amount: The formatted amount of the line item. * - shippable: TRUE if the order is shippable. * * Tokens: All site, store and order tokens are also available as * variables, such as site_logo, store_name and order_first_name. * * Display options: * - op: 'view', 'print', 'checkout-mail' or 'admin-mail', depending on * which variant of the invoice is being rendered. * - business_header: TRUE if the invoice header should be displayed. * - shipping_method: TRUE if shipping information should be displayed. * - help_text: TRUE if the store help message should be displayed. * - email_text: TRUE if the "do not reply to this email" message should * be displayed. * - store_footer: TRUE if the store URL should be displayed. * - thank_you_message: TRUE if the 'thank you for your order' message * should be displayed. * * @see template_preprocess_uc_order() */ #}
{% if business_header %} {% endif %}
{{ site_logo }}
{{ store_name }}
{{ site_slogan }}
{{ store_address }}
{{ store_phone }}
{% if thank_you_message %}

{{ 'Thanks for your order, @order_first_name!'|t({'@order_first_name': order_first_name}) }}

{% if order.data.new_user_name %}

{{ 'An account has been created for you with the following details:'|t }}

{{ 'Username:'|t }} {{ order_new_username }}
{{ 'Password:'|t }} {{ order_new_password }}

{% endif %}

{{ 'Want to manage your order online?'|t }}
{{ 'If you need to check the status of your order, please visit our home page at @store_link and click on "My account" in the menu or login with the following link:'|t({'@store_link': store_link}) }}

{{ site_login_link }}

{% endif %} {% if order_payment_method %} {% endif %} {% if shippable %} {% endif %} {% if help_text or email_text or store_footer %} {% endif %}
{{ 'Purchasing Information:'|t }}
{{ 'E-mail Address:'|t }} {{ order_email }}
{% if shippable %} {% endif %}
{{ 'Billing Address:'|t }}
{{ order_billing_address }}

{{ 'Billing Phone:'|t }}
{{ order_billing_phone }}
{{ 'Shipping Address:'|t }}
{{ order_shipping_address }}

{{ 'Shipping Phone:'|t }}
{{ order_shipping_phone }}
{{ 'Order Grand Total:'|t }} {{ order_total }}
{{ 'Payment Method:'|t }} {{ order_payment_method }}
{{ 'Order Summary:'|t }}
{{ 'Shipping Details:'|t }}
{% if shipping_method and shippable %} {% endif %} {% for item in line_items if item.type != 'subtotal' and item.type != 'total' %} {% endfor %}
{{ 'Order #:'|t }} {{ order_link }}
{{ 'Order Date: '|t }} {{ order_created }}
{{ 'Shipping Method:'|t }} {{ order_shipping_method }}
{{ 'Products Subtotal:'|t }}  {{ order_subtotal }}
{{ item.title }}: {{ item.formatted_amount }}
  ------
{{ 'Total for this Order:'|t }}  {{ order_total }}


{{ 'Products on order:'|t }}  {% for product in products %} {% endfor %}
{{ product.qty }} x {{ product.title }} - {{ product.total_price }} {{ product.individual_price }}
{{ 'SKU'|t }}: {{ product.model }}
{{ product.details }}


{% if help_text %}

{{ 'Where can I get help with reviewing my order?'|t }}
{{ 'To learn more about managing your orders on @store_link, please visit our help page.'|t({'@store_link': store_link, '@store_help_url': store_help_url}) }}

{% endif %} {% if email_text %}

{{ 'Please note: This e-mail message is an automated notification. Please do not reply to this message.'|t }}

{{ 'Thanks again for shopping with us.'|t }}

{% endif %} {% if store_footer %}

{{ store_link }}
{{ site_slogan }}

{% endif %}