<{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}>

<{if $order->getInvoiceId()}><{t section="Order" x=$order->getInvoiceId()}>Invoice ({x}) will be sent to:<{/t}><{else}><{t section="Order"}>Invoice will be sent to:<{/t}><{/if}> <{if $is_selfservice && !$is_own_selfservice_order}><{$selfservice_masked_email|escape}><{else}><{$order->getEmail()}><{/if}>

<{if $order->isWithinWithdrawalPeriod()}>

<{t section="Order"}>Fortryd købet<{/t}>

<{/if}> <{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}>

<{if $order->getEmail()}>
<{t section="Order"}>E-mail<{/t}>
<{if $is_selfservice && !$is_own_selfservice_order}><{$selfservice_masked_email|escape}><{else}><{$order->getEmail()|escape}><{/if}>
<{/if}>
<{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}> <{* Deposit lines (pant, #645) — separate order lines with no product object *}> <{$deposit_lines = $order->getDepositLines()}> <{if $deposit_lines}> <{foreach $deposit_lines as $deposit_line}> <{/foreach}> <{/if}>
<{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}><{if $a.unit}> <{$a.unit|escape}><{/if}>
  • <{/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}>
<{$deposit_line->getName()|escape}> <{if $b2b}> <{$deposit_line->getPriceExVat()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}> <{else}> <{$deposit_line->getPrice()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}> <{/if}> <{$deposit_line->getAmount()}> <{t section="Order"}>pcs.<{/t}> <{if $b2b}> <{$deposit_line->getPriceExVat($deposit_line->getAmount())|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}> <{else}> <{$deposit_line->getPrice($deposit_line->getAmount())|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}> <{/if}>

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

<{if !$is_selfservice || $is_own_selfservice_order}>
<{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}> <{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 $webshop->hasLoyaltyProgram() && $order->getPointsUsed()}>
<{t section="Order"}>Loyalty Program Used<{/t}> <{$order->getPointsUsed()|abs|number_format:0:$smarty.capture.decimal:$smarty.capture.thousand}> <{t section="Order"}>points<{/t}>
<{math equation="x/y" x=$order->getPointsUsed() y=$webshop->getLoyaltyProgramBaseCost() assign="loyaltyPointsUsedValue"}>
<{$loyaltyPointsUsedValue|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->getPrepaidAmount() > 0}>
<{t section="Order"}>Prepaid via return<{/t}>
-<{$order->getPrepaidAmount()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{t section="Order"}>Amount to pay<{/t}>
<{$order->getAmountToCharge()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{/if}> <{if $order->getPointsEarned()}>
<{math equation="y/x" x=$webshop->getLoyaltyProgramBaseCost() y=$order->getPointsEarned() assign="points_earned_value"}>

<{t section="Order"}>Loyalty points earned on this order<{/t}>: <{$order->getPointsEarned()}> (<{$points_earned_value|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>)

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