<{if $order}>
<{if $customer && !$order->getIsPaid()}>
  1. <{t section="Order"}>Your orders<{/t}>
  2. <{t section="Order"}>Your order<{/t}> <{$order->getWebshopOrderId()}>
<{/if}> <{assign var="products" value=$order->getOrderProducts()}>

<{t section="Order"}>Order #<{/t}><{$order->getWebshopOrderId()}> <{if !$order->getIsPaid()}><{t section="Order"}>(Unpaid)<{/t}><{/if}>

<{t section="Order"}>Order date<{/t}>

Faktura <{if $order->getInvoiceId()}>(<{$order->getInvoiceId()}>)<{/if}> sendes til: <{$order->getEmail()}>

<{assign var="orderStatus" value=$order->getStatus()}> <{if $order->getPaymentGateway() != 'other' && !$order->getIsPaid() && !$b2b && $order->getStatus() != 'cancelled'}> <{t section="Order"}>Pay and complete the order here<{/t}> <{/if}>

<{t section="Order"}>Order placed the <{/t}>

<{t section="Order"}>E-mail<{/t}>
<{$order->getEmail()}>
<{t section="Order"}>Telephone<{/t}>
<{$order->getPhone()}>
<{t section="Order"}>Order date<{/t}>
<{t section="Order"}>Order number<{/t}>
#<{$order->getWebshopOrderId()}>
<{t section="Order"}>Total<{/t}>
<{$order->getTotalPrice()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{section name="i" loop=$products}> <{assign var="product" value=$products[i]->getProduct()}> <{if $product}> <{assign var="images" value=$product->getImages()}> <{assign var="attributes" value=$products[i]->getAttributes()}> <{math assign="productPrice" equation="x * y" x=$products[i]->getUnitPrice($products[i]->getAmount()) y=$products[i]->getAmount()}> <{if !$products[i]->getFromBundle()}> <{/if}> <{/if}> <{/section}>
<{t section="Order"}>Products<{/t}>
<{t section="Order"}>Product<{/t}> <{t section="Order"}>Price per unit<{/t}> <{t section="Order"}>Units<{/t}> <{t section="Order"}>Subtotal<{/t}>
<{section name="j" loop=$images start=0 max=1}> <{$images[j]->getDescription()|escape}> <{/section}>
<{$products[i]->getName()|escape}> <{if $attributes}>
    <{foreach from=$attributes item=a}>
  • <{$a.name|escape}>: <{$a.val|escape}>
  • <{/foreach}>
<{/if}> <{assign var="file" value=$products[i]->getFile()}> <{if $file}>

<{t}>Download file<{/t}>: <{$file->filename|escape}>

<{/if}>
<{if $b2b}> <{$products[i]->getPriceExVat()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}> <{else}> <{$products[i]->getPrice()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}> <{/if}>
<{if $b2b}> <{$products[i]->getPriceExVat()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}> <{else}> <{$products[i]->getPrice()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}> <{/if}> <{$products[i]->getAmount()}> <{t section="Order"}>pcs.<{/t}> <{if $b2b}> <{$products[i]->getPriceExVat($products[i]->getAmount())|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}> <{else}> <{$products[i]->getPrice($products[i]->getAmount())|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}> <{/if}>

<{t section="Order"}>Customer information<{/t}>

<{t section="Order"}>Order address<{/t}>
<{$order->getOrderName()|escape}> <{if $order->getOrderCompanyName()}> <{$order->getOrderCompanyName()|escape}> <{/if}> <{$order->getOrderAddress()|escape}> <{if $order->getOrderAddress2()}> <{$order->getOrderAddress2()|escape}> <{/if}> <{$order->getOrderZipcode()|escape}> <{$order->getOrderCity()|escape}> <{$order->getOrderCountry()|escape}>
<{t section="Order"}>Delivery address<{/t}>
<{if $order->getPickupAddress()|count_characters > 1}>

<{t}>Parcel shop:<{/t}> <{$order->getPickupAddress()|nl2br}>

<{else}> <{$order->getDelName()|escape}> <{if $order->getDelCompanyName()}> <{$order->getDelCompanyName()|escape}> <{/if}> <{$order->getDelAddress()|escape}> <{if $order->getDelAddress2()}> <{$order->getDelAddress2()|escape}> <{/if}> <{$order->getDelZipcode()|escape}> <{$order->getDelCity()|escape}> <{$order->getDelCountry()|escape}> <{/if}>
<{if $order->getComments()}>
<{t section="Order"}>Order comments<{/t}>
<{$order->getComments()|escape}>
<{/if}>
<{t section="Order"}>Payment Method<{/t}>
<{assign var="gateways" value=$webshop->getPaymentGateways()}> <{section name="i" loop=$gateways}> <{if $order->getPaymentGatewayId() == $gateways[i]->getPaymentGatewayId()}> <{$gateways[i]->getName()|escape}> <{/if}> <{/section}>
<{t section="Order"}>Subtotal<{/t}>
<{if $b2b}> <{math assign="price_ex_vat" equation="x - y" x=$order->getPrice() y=$order->getVat() }> <{$price_ex_vat|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}> <{else}> <{$order->getPrice()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}> <{/if}>
<{t section="Order"}>Shipping<{/t}>
<{if $b2b}> <{else}> <{$order->getShippingPrice()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}> <{/if}>
<{if $order->getVoucherDiscount()}>
<{t section="Order"}>Fragt<{/t}> <{$order->getVoucherDiscount()}>
-<{$order->getVoucherDiscountAmount()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{/if}>
<{t section="Order"}>VAT<{/t}>
<{$order->getVat()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{t section="Order"}>Total including VAT<{/t}>
<{$order->getTotalPrice()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{if $order->getPaymentGateway() != 'other' && !$order->getIsPaid() && !$b2b && $order->getStatus() != 'cancelled'}> <{t section="Order"}>Pay and complete your order here<{/t}> <{/if}>
<{/if}>