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

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

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

<{if $order->getInvoiceId()}><{t section="Order" x=$order->getInvoiceId()}>Faktura ({x}) sendes til:<{/t}><{else}><{t section="Order"}>Faktura sendes til:<{/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"}>Betal og gennemfør ordren her<{/t}> <{/if}>

<{t section="Order"}>Ordren blev afgivet den <{/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"}>Telefon<{/t}>
<{$order->getPhone()}>
<{t section="Order"}>Ordredato<{/t}>
<{t section="Order"}>Ordrenummer<{/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}> <{* Pant-linjer (#645) — selvstændige ordrelinjer uden produkt-objekt *}> <{$deposit_lines = $order->getDepositLines()}> <{if $deposit_lines}> <{foreach $deposit_lines as $deposit_line}> <{/foreach}> <{/if}>
<{t section="Order"}>Produkter<{/t}>
<{t section="Order"}>Produkt<{/t}> <{t section="Order"}>Pris pr. enhed<{/t}> <{t section="Order"}>Antal<{/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 fil<{/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"}>stk.<{/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"}>stk.<{/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"}>Kundeoplysninger<{/t}>

<{if !$is_selfservice || $is_own_selfservice_order}>
<{t section="Order"}>Ordreadresse<{/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"}>Leveringsadresse<{/t}>
<{if $order->getPickupAddress()|count_characters > 1}>

<{t}>Pakkeshop:<{/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"}>Ordrekommentarer<{/t}>
<{$order->getComments()|escape}>
<{/if}>
<{t section="Order"}>Betalingsmetode<{/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"}>Fragt<{/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"}>Kundeklub anvendt<{/t}> <{$order->getPointsUsed()|abs|number_format:0:$smarty.capture.decimal:$smarty.capture.thousand}> <{t section="Order"}>point<{/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"}>Moms<{/t}>
<{$order->getVat()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{t section="Order"}>Total inkl. moms<{/t}>
<{$order->getTotalPrice()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{if $order->getPrepaidAmount() > 0}>
<{t section="Order"}>Forudbetalt via retur<{/t}>
-<{$order->getPrepaidAmount()|number_format:2:$smarty.capture.decimal:$smarty.capture.thousand}> <{$currency}>
<{t section="Order"}>At betale<{/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"}>Kundeklubpoint optjent på denne ordre<{/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"}>Betal og gennemfør din ordre her<{/t}> <{/if}>
<{/if}>