<{if $order}>
Ordre ID: <{$order->getWebshopOrderId()}> <{if $order->getInvoiceId()}>
Fakturanummer: <{$order->getInvoiceId()}> <{/if}>

### Din ordre

<{if $order->getStatus() == "new"}>
Din ordre er ikke behandlet endnu.
<{elseif $order->getStatus() == "cancelled"}>
Din ordre er annulleret.
<{elseif $order->getStatus() == "sent"}>
Din ordre er afsendt.
<{if $order->getTrackingNumbers()}>

<{assign var="shipping" value=$order->getShipping()}> <{assign var="tracking_numbers" value=$order->getTrackingNumbers()}> <{t}>Følg din ordre hos<{/t}> <{$shipping->getName()|escape}>: <{section name="k" loop=$tracking_numbers}> <{if $shipping && $shipping->getTrackingUrl()}> <{$tracking_numbers[k]|escape}><{if !$smarty.section.k.last}>,<{/if}> <{else}> <{$tracking_numbers[k]|escape}><{if !$smarty.section.k.last}>,<{/if}> <{/if}> <{/section}>

<{/if}> <{/if}> <{if $webshop->getPacsoftUsername()}> <{assign var="tt" value=$order->getTtData()}> <{* Der ligger meget lækker data i $tt. Smid det igennem en |@var_dump for at kigge /mbn *}> <{foreach from=$tt.items.0.events item="line"}>

<{$line.eventTime|date_format:"%d.%m.%Y %H:%M"}>: <{$line.eventDescription|escape}> hos <{$line.location.displayName|escape}>

<{/foreach}> <{/if}>
<{if !$order->getIsPaid()}> Betal ordren <{/if}> Har du spørgsmål til din ordre?

### Spørgsmål

Skriv dit spørgsmål her, og vi vender tilbage hurtigst muligt pr. mail:

Dit navn:
Din e-mail-adresse: *
Dit spørgsmål: *

### Produkter

<{assign var="products" value=$order->getOrderProducts()}>

Produkt | Antal | Pris | Heraf moms | Total
--- | --- | --- | --- | ---
<{section name="i" loop=$products}> <{assign var="p" value=$products[i]->getProduct()}>
<{assign var="image" value=$p->getImage()}> <{if $image}> getHtmlSize(50, 50, 'box')}> alt="" style="border-radius:100px;"> <{/if}> <{$products[i]->getName()|escape}> <{assign var="attributes" value=$products[i]->getAttributes()}> <{if $attributes}> <{section name="j" loop=$attributes}> <{$attributes[j].name}>: <{$attributes[j].val}> <{/section}> <{/if}> <{assign var="file" value=$products[i]->getFile()}> <{if $file}> Download: <{$file->filename|escape}> <{/if}> | <{$products[i]->getAmount()}> | <{$webshop->getCurrency()}> <{$products[i]->getUnitPrice()|number_format:2:",":"."}> | <{$webshop->getCurrency()}> <{$products[i]->getUnitVat()|number_format:2:",":"."}> | <{$webshop->getCurrency()}> <{$products[i]->getPrice($products[i]->getAmount())|number_format:2:",":"."}>
<{/section}>
TOTAL | <{$order->getOrderProductCount()}> | <{$order->getTotalPrice()|number_format:2:",":"."}> <{$webshop->getCurrency()}> | <{$order->getVat()|number_format:2:",":"."}> <{$webshop->getCurrency()}> | <{$order->getTotalPrice()|number_format:2:",":"."}> <{$webshop->getCurrency()}>

### Levering

Leveringsmetode: <{$order->getShippingName()|escape}>
Leveringspris: <{$order->getShippingPrice()|number_format:2:",":"."}> <{$webshop->getCurrency()}>

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

### Du kan hente din pakke hos

<{$order->getPickupAddress()|escape|nl2br}>

<{/if}>
<{assign var="voucher" value=$order->getVoucher()}> <{if $voucher}>

### Rabatkode

Rabatkode: <{$voucher->getCode()|escape}>

<{*

Rabat: <{$voucher->getPercentDiscount()|escape}> %

*}>

Rabat: <{$order->getVoucherDiscountAmount()|number_format:2:",":"."}> <{$webshop->getCurrency()}>

<{/if}> <{* <{if $webshop->allowCloneOrder()}>
Bestil ordren igen?

### Bestil ordren igen

<{if $settings.texts.terms}> <{$settings.texts.terms}> <{else}> Denne shop har ikke nogen betingelser. Enten opret nogen, eller indsæt en tom tekst under dine designindstillinger. <{/if}>
Jeg accepterer ovenstående handelsbetingelserne.
<{/if}> *}>

### Bestillingsadresse

<{$order->getOrderName()|escape}>

<{$order->getOrderCompanyName()|escape}>

<{$order->getOrderAddress()|escape}>

<{$order->getOrderZipcode()|escape}> <{$order->getOrderCity()|escape}>

<{$order->getOrderCountry()|escape}>

<{$order->getPhone()|escape}>

### Leveringsadresse

<{$order->getDelName()|escape}>

<{$order->getDelCompanyName()|escape}>

<{$order->getDelAddress()|escape}>

<{$order->getDelZipcode()|escape}> <{$order->getDelCity()|escape}>

<{$order->getDelCountry()|escape}>

### Kommentar

<{$order->getComments()|escape}>

<{include file="carousel.html" title="Shop videre" products=$order->getAlsoBought()}> <{assign var="products" value=$order->getProducts()}> <{section name="i" loop=$products}> <{assign var="product" value=$products[i]}> <{capture name="box_title"}>Andre der købte <{$product->getName()|escape}> købte også<{/capture}> <{include file="carousel.html" title=$smarty.capture.box_title products=$product->getAlsoBought()}> <{/section}> <{include file="carousel.html" title="Populært lige nu" products=$webshop->getPopularProducts(25, 14)}> <{/if}>