<{if $subject}> <{if $order}> <{t section="Mail" order_id=$order->getWebshopOrderId() webshop_name=$webshop->getName()}>Ordrebekræftelse på din ordre nr. {order_id} fra {webshop_name}<{/t}> <{elseif $recurring_order}> <{t section="Mail" sub_id=$recurring_order->getWebshopRecurringOrderId() webshop_name=$webshop->getName()}>Ordrebekræftelse på dit abonnement nr. {sub_id} fra {webshop_name}<{/t}> <{/if}> <{else}> <{t section="Mail"}>Tak for din bestilling<{/t}>
<{t section="Mail"}>Hej<{/t}> <{$order->getOrderFirstName()|escape}>,

<{t section="Mail"}>Tak for din ordre. Vi sender dig en e-mail når den er færdigbehandlet og afsendt.<{/t}>

<{t section="Mail"}>Ordredetaljer<{/t}>
<{* Ordrens egne linjer med de priser kunden betalte (getProducts() gav katalogets nuværende priser). Linjer fra en samlepakkes indhold er en del af pakken og vises ikke for sig. *}> <{$order_lines = $order->getOrderProducts()}> <{foreach $order_lines as $order_line}> <{if !$order_line->getFromBundle()}> <{/if}> <{/foreach}> <{* 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="Mail"}>Produkt<{/t}> <{t section="Mail"}>Antal<{/t}> <{t section="Mail"}>Pris<{/t}> <{t section="Mail"}>Total<{/t}>
<{$order_line->getName()|escape}>
<{$attributes = $order_line->getAttributes()}> <{if $attributes}>
<{foreach $attributes as $attribute}><{$attribute.name|escape}>: <{$attribute.val|escape}><{if !$attribute@last}>, <{/if}><{/foreach}>
<{/if}>
<{$order_line->getAmount()}> <{$order_line->getUnitPrice()|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}> <{$order->getCurrency()}> <{$order_line->getRealPrice($order_line->getAmount())|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}> <{$order->getCurrency()}>
<{$deposit_line->getName()|escape}>
<{$deposit_line->getAmount()}> <{$deposit_line->getUnitPrice()|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}> <{$order->getCurrency()}> <{$deposit_line->getPrice($deposit_line->getAmount())|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}> <{$order->getCurrency()}>
<{* Kolonnerne på ordren: price = varerne inkl. moms efter rabat (uden fragt), shipping_price, total_price = alt inkl. fragt og efter pointrabat. Samme rækker som Montanas ordremail. *}>
<{if $order->getVoucherDiscountAmount()}>
<{t section="Mail"}>Rabat:<{/t}> <{$order->getVoucherDiscount()|escape}> <{if $order->getVoucherDiscountAmount() > 0}>-<{/if}><{$order->getVoucherDiscountAmount()|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}> <{$order->getCurrency()}>
<{/if}> <{if $order->getCampaignDiscount() > 0}>
<{t section="Mail"}>Kampagnerabat<{/t}> -<{$order->getCampaignDiscount()|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}> <{$order->getCurrency()}>
<{/if}>
<{t section="Mail"}>Subtotal<{/t}> <{$order->getPrice()|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}> <{$order->getCurrency()}>
<{t section="Mail"}>Fragt<{/t}> <{$order->getShippingPrice()|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}> <{$order->getCurrency()}>
<{if $point_discount = $order->getPointDiscount()}>
<{t section="Mail"}>Pointrabat<{/t}> -<{$point_discount|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}> <{$order->getCurrency()}>
<{/if}>
<{t section="Mail"}>Heraf moms<{/t}> <{$order->getVat()|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}> <{$order->getCurrency()}>
<{t section="Mail"}>Total<{/t}> <{$order->getTotalPrice()|number_format:2:$webshop->getDecimalSeparator(","):$webshop->getThousandSeparator(".")}> <{$order->getCurrency()}>
<{* Forbrugeraftaleloven § 8, stk. 1, nr. 12-13 og § 13: undtagelser fra fortrydelsesretten skal fremgå af ordrebekræftelsen *}> <{if $order && $order->hasWithdrawalExemptProducts()}>
<{t section="Mail"}>Varer uden fortrydelsesret<{/t}>
<{foreach $order->getWithdrawalExemptProducts() as $exempt_item}>
<{$exempt_item.name|escape}>: <{$exempt_item.text|escape}>
<{/foreach}>
<{/if}>
<{t section="Mail"}>Ordrenummer<{/t}>
#<{$order->getWebshopOrderId()}>
<{t section="Mail"}>Dato<{/t}>
<{$smarty.now|date_format:"%d-%m-%Y"}>
<{t section="Mail"}>E-mail<{/t}>
<{$order->getEmail()|escape}>
<{t section="Mail"}>Telefon<{/t}>
<{$order->getPhone()|escape}>
<{if $order->getPickupAddress()}>
<{t section="Mail"}>Pakkeshop<{/t}>
<{$order->getPickupAddress()|escape|nl2br}>
<{/if}>
<{t section="Mail"}>Faktureringsadresse<{/t}>
<{$order->getOrderName()|escape}>
<{if $order->getOrderCompanyName()}> <{$order->getOrderCompanyName()|escape}>
<{/if}> <{$order->getOrderAddress()|escape}>
<{$order->getOrderZipcode()|escape}> <{$order->getOrderCity()|escape}>
<{$order->getOrderCountry()|escape}>
<{t section="Mail"}>Leveringsadresse<{/t}>
<{$order->getDelName()|escape}>
<{if $order->getDelCompanyName()}> <{$order->getDelCompanyName()|escape}>
<{/if}> <{$order->getDelAddress()|escape}>
<{$order->getDelZipcode()|escape}> <{$order->getDelCity()|escape}>
<{$order->getDelCountry()|escape}>
<{t section="Mail"}>Se din ordre online<{/t}>
<{* Forbrugeraftaleloven § 8, stk. 1, nr. 11: oplys om den digitale fortrydelsesfunktion *}> <{if $order && $order->isWithinWithdrawalPeriod()}>

<{t section="Mail" url=$order->getWithdrawalUrl()|escape}>Fortryder du dit køb? Du kan fortryde online her: Fortryd købet<{/t}>

<{/if}>
<{/if}>