{include file="file:$_system_root_templates/email/email_top.html"}

<!-- // Begin Content  -->

{assign var=showDiscountCol value=false}
{foreach name=aussen item=order_values from=$order_products}
    {if $order_values.products_discount != "" && ($order_values.products_discount|round:2) > 0 }
        {assign var=showDiscountCol value=true}
        {break}
    {/if}
{/foreach}

<table class="email-content" cellpadding="0" border=0 cellspacing="0" width="800" style="font: 12px Arial, Helvetica, sans-serif;color: #484848;">

    <tr>

        <td colspan="6" class="left" align="left">

            <h1 style="font-size:14px;">Ihre Bestellung zur Kontrolle</h1>

            Hallo {$order_data.billing_title} {$order_data.billing_firstname} {$order_data.billing_lastname},<br /><br /> vielen Dank für Ihre Bestellung in unserem Online Shop.</td>

    </tr>

    <tr>

        <td colspan="6"><br /></td>

    </tr>

    <tr>

        <td colspan="3" align="left">

            <h2 style="font-size:12px;">{txt key="TEXT_ORDER_NUMBER"}</h2>

            {$order_data.orders_id}

        </td>

        <td colspan="3" align="right">

            <h2 style="font-size:12px;">{txt key="TEXT_ORDER_DATE"}</h2>

            {$order_data.date_purchased}

        </td>

    </tr>

    <tr>

        <td colspan="6"><br /></td>

    </tr>

    <tr>

        <td colspan="3" align="left">

            <h2 style="font-size:12px;">{txt key="TEXT_EMAIL"}</h2>

            {$order_data.customers_email_address}

        </td>

        <td colspan="3" align="right">

            {if $order_data.customers_vat_id}<h2 style="font-size:12px;">{txt key="TEXT_VAT_ID"}</h2>

                {$order_data.customers_vat_id}{/if}

        </td>

    </tr>

    {if $order_data.customers_cid}
        <tr>
            <td colspan="6" align="left">
                <h2 style="font-size:12px;">{txt key="TEXT_CUSTOMER_ID"}</h2>
                {$order_data.customers_cid}
            </td>
        </tr>
    {/if}

    <tr>

        <td colspan="6"><br /></td>

    </tr>

    <tr>

        <td colspan="3" align="left">

            <h2 style="font-size:12px;">{txt key="TEXT_SHIPPING_ADDRESS"}</h2>

            {if $order_data.delivery_company}{$order_data.delivery_company}<br />{/if}

            {if $order_data.delivery_company_2}{$order_data.delivery_company_2}<br />{/if}

            {if $order_data.delivery_company_3}{$order_data.delivery_company_3}<br />{/if}

            {$order_data.delivery_title} {$order_data.delivery_firstname} {$order_data.delivery_lastname}<br />

            {$order_data.delivery_street_address}<br />

            {if $order_data.delivery_address_addition}{$order_data.delivery_address_addition}<br />{/if}

            {if $order_data.delivery_suburb}{$order_data.delivery_suburb}<br />{/if}

            {$order_data.delivery_postcode} {$order_data.delivery_city}<br />

            {if $order_data.delivery_state}{$order_data.delivery_state}<br />{/if}

            {$order_data.delivery_country}<br />

            {if $order_data.delivery_phone OR $order_data.delivery_mobile_phone OR $order_data.delivery_fax}<br />{/if}

            {if $order_data.delivery_phone}{txt key="TEXT_PHONE"} {$order_data.delivery_phone}<br />{/if}

            {if $order_data.delivery_mobile_phone}{txt key="TEXT_MOBILE_PHONE"} {$order_data.delivery_mobile_phone}<br />{/if}

            {if $order_data.delivery_fax}{txt key="TEXT_FAX"} {$order_data.delivery_fax}<br />{/if}

        </td>

        <td colspan="3" align="right">

            <h2 style="font-size:12px;">{txt key="TEXT_PAYMENT_ADDRESS"}</h2>

            {if $order_data.billing_company}{$order_data.billing_company}<br />{/if}

            {if $order_data.billing_company_2}{$order_data.billing_company_2}<br />{/if}

            {if $order_data.billing_company_3}{$order_data.billing_company_3}<br />{/if}

            {$order_data.billing_title} {$order_data.billing_firstname} {$order_data.billing_lastname}<br />

            {$order_data.billing_street_address}<br />

            {if $order_data.billing_address_addition}{$order_data.billing_address_addition}<br />{/if}

            {if $order_data.billing_suburb}{$order_data.billing_suburb}<br />{/if}

            {$order_data.billing_postcode} {$order_data.billing_city}<br />

            {if $order_data.billing_state}{$order_data.billing_state}<br />{/if}

            {$order_data.billing_country}<br />

            {if $order_data.billing_phone OR $order_data.billing_mobile_phone OR $order_data.billing_fax}<br />{/if}

            {if $order_data.billing_phone}{txt key="TEXT_PHONE"} {$order_data.billing_phone}<br />{/if}

            {if $order_data.billing_mobile_phone}{txt key="TEXT_MOBILE_PHONE"} {$order_data.billing_mobile_phone}<br />{/if}

            {if $order_data.billing_fax}{txt key="TEXT_FAX"} {$order_data.billing_fax}<br />{/if}

        </td>

    </tr>

    <tr>

        <td colspan="6"><br /></td>

    </tr>

    <tr>

        <td colspan="3" align="left">

            <h2 style="font-size:12px;">{txt key="TEXT_SHIPPING_METHOD"}</h2>

            {$order_data.shipping_code}

        </td>

        <td colspan="3" align="right">

            <h2 style="font-size:12px;">{txt key="TEXT_PAYMENT_METHOD"}</h2>

            {$order_data.payment_name}

            {if $order_data.bank_details}
                <br />
                {txt key='TEXT_BANK_DETAILS'}<br />

                {foreach from=$order_data.bank_details item=bd}

                    {txt key='TEXT_BAD_ACCOUNT_NAME'}: {$bd.bad_account_name}<br />

                    {txt key='TEXT_BAD_BANK_IDENTIFIER_CODE'}: {$bd.bad_bank_identifier_code}<br />

                    {if $bd.bad_due_date}{txt key='TEXT_BAD_DUE_DATE'}: {$bd.bad_due_date}<br />{/if}

                    {txt key='TEXT_BAD_INTERNATIONAL_BANK_ACCOUNT_NUMBER'}: {$bd.bad_international_bank_account_number}<br />

                    {txt key='TEXT_BAD_REFERENCE_NUMBER'}: {$bd.bad_reference_number}

                {/foreach}

            {/if}

        </td>

    </tr>

    <tr>

        <td colspan="6"><br /></td>

    </tr>

    {if $shipping_info_html}

        <tr>

            <td colspan="6" align="left">

                <h2 style="font-size:12px;">{txt key="TEXT_SHIPPING_INFOS"}</h2>

                {$shipping_info_html}

            </td>

        </tr>

        <tr>

            <td colspan="6"><br /></td>

        </tr>

    {/if}

    {if $payment_info_html}

        <tr>

            <td colspan="6" align="left">

                <h2 style="font-size:12px;">{txt key="TEXT_PAYMENT_INFOS"}</h2>

                {$payment_info_html}

            </td>

        </tr>

        <tr>

            <td colspan="6"><br /></td>

        </tr>

    {/if}

    {if $order_data.comments}

        <tr>

            <td colspan="6" align="left">

                <h2 style="font-size:12px;">{txt key="TEXT_COMMENTS"}</h2>

                {$order_data.comments}

            </td>

        </tr>

        <tr>

            <td colspan="6"><br /></td>

        </tr>

    {/if}

    <tr>

        <td colspan="6" align="left">

            <h2 style="font-size:12px;">Ihre Bestellung</h2>

        </td>

    </tr>

    <tr>



        <td align="left" class="left bold" style="font-weight:bold;" {if !$showDiscountCol}colspan="3"{/if}>{txt key="TEXT_ARTICLE"}</td>

        <td align="left" class="left bold" style="font-weight:bold;">{txt key="TEXT_PRODUCTS_MODEL"}</td>

        <td align="right" class="right bold" style="font-weight:bold;">{txt key="TEXT_SINGLE_PRICE"}</td>

        {if $showDiscountCol}<td align="right" class="right bold" style="font-weight:bold;">{txt key="TEXT_PRODUCTS_DISCOUNT"}</td>{/if}

        <td align="right" class="right bold" style="font-weight:bold;">{txt key="TEXT_TOTAL_PRICE"}</td>

    </tr>

    <tr>

        <td colspan="5"><br /></td>

    </tr>

    {foreach name=aussen item=order_values from=$order_products}

        <tr class="order-products">



            <td align="left" class="left" {if !$showDiscountCol}colspan="3"{/if}>{$order_values.products_quantity} x {$order_values.products_name}</td>

            <td align="left" class="left">{$order_values.products_model}</td>

            <td align="right" class="right">{$order_values.products_price.formated}</td>

            {if $showDiscountCol}<td align="right" class="right">{if $order_values.products_discount != ""}{$order_values.products_discount}%{else}-{/if}</td>{/if}

            <td align="right" class="right">{$order_values.products_final_price.formated}</td>

        </tr>

        <tr>

            <td colspan="5"><br /></td>

        </tr>

        {$order_values.products_information.html_content}

    {/foreach}

    <tr class="order-subtotal">

        <td colspan="{if $showDiscountCol}3{else}4{/if}"></td>

        <td align="right" class="right bold"  style="font-weight:bold;">{txt key="TEXT_SUB_TOTAL"}:</td>

        <td align="right" class="right">{$total.product_total.formated}</td>

    </tr>

    <tr>

        <td colspan="6"><br /></td>

    </tr>

    {foreach name=aussen item=order_total_values from=$order_total_data}

        <tr class="order-shipping" >

            <td align="right" class="right" colspan="{if $showDiscountCol}4{else}5{/if}">{$order_total_values.orders_total_name}:</td>

            <td align="right" class="right">{$order_total_values.orders_total_price.formated}</td>

        </tr>

    {/foreach}

    {foreach name=aussen item=tax_data from=$total.total_tax}

        <tr class="order-tax">

            <td colspan="{if $showDiscountCol}3{else}4{/if}"></td>

            <td align="right" class="right">MwSt. {$tax_data.tax_key}%:</td>

            <td align="right" class="right">{$tax_data.tax_value.formated}</td>

        </tr>

    {/foreach}

    <tr>

        <td colspan="6"><br /></td>

    </tr>

    <tr class="order-total">

        <td colspan="{if $showDiscountCol}3{else}4{/if}"></td>

        <td align="right" class="right bold" style="font-weight:bold;">{txt key="TEXT_TOTAL"}:</td>

        <td align="right" class="right">{$total.total.formated}</td>

    </tr>

    {hook key=email_send_order_rows_bottom}

</table>

<!-- // End Content  -->

{include file="file:$_system_root_templates/email/email_bottom.html"}