<html>

<head>

	<style type="text/css">
		html, body {
			background:#f2f2f2;
			font-family:helvetica, sans-serif;
			margin:0px;
			padding:0px;
		}
		#main {
			margin:50px;
			padding:20px;
			background:#fff;
		}
		fieldset {
			border:1px solid #eee;
			margin: 20px 0px 20px 0px;
		}
		fieldset legend {
			font-weight:bold;
		}
		a {
			color:#00a;
			text-decoration:none;
		}
		.product {
			margin-bottom:20px;
		}
		.product .img {
			width:70px;
			float:left;
		}
		.product .inner-product {
			padding:0px 0px 0px 0px;
			float:left;
		}
	</style>

</head>

<body>

	<div id="main">

		<{if $logo = $webshop->getLogo()}>
			<h1><a href="/"><img src="<{$logo->getInline(100, 100, 'fit')}>" alt="<{$webshop->getName()|escape}>" /></a></h1>
		<{else}>
			<h1><a href="/"><{$webshop->getName()|escape}></a></h1>
		<{/if}>

		<h1><{t section="Mail"}>Dropshipping mail<{/t}></h1>

		<p><{t section="Mail" url=$order->getPublicUrl()|escape}>(Se den også på <a href="{url}">{url}</a>)<{/t}></p>

		<h2><{t section="Mail"}>Ordreoplysninger<{/t}></h2>

		<h3><{t section="Mail"}>Varer<{/t}></h3>

		<ul>
			<{$products = $order->getOrderProducts()}>
			<{section name="i" loop=$products}>
				<li>
					<strong><{$products[i]->getAmount()}> <{t section="Mail"}>stk.<{/t}> <{$products[i]->getName()|escape}> (SKU: <{$products[i]->getOwnId()|escape}>)</strong>
					<{assign var="attributes" value=$products[i]->getAttributes()}>
					<{if $attributes}>
						<ul>
							<{section name="j" loop=$attributes}>
								<li><{$attributes[j].name}>: <{$attributes[j].val}></li>
							<{/section}>
						</ul>
					<{/if}>
				</li>
			<{/section}>
		</ul>

		<br/>

		<h3><{t section="Mail"}>Pris<{/t}></h3>
		<p><{$order->getPrice()|number_format:2:",":"."}> <{$webshop->getCurrency()}></p>
		<br/>

		<h3><{t section="Mail"}>Bestillingsadresse<{/t}></h3>
		<p><{$order->getOrderName()|escape}></p>
		<p><{$order->getOrderAddress()|escape}></p>
		<p><{$order->getOrderZipcode()|escape}> <{$order->getOrderCity()|escape}></p>
		<p><{$order->getOrderCountry()|escape}></p>

		<br/>

		<h3><{t section="Mail"}>Leveringsadresse<{/t}></h3>
		<p><{$order->getDelName()|escape}></p>
		<p><{$order->getDelAddress()|escape}></p>
		<p><{$order->getDelZipcode()|escape}> <{$order->getDelCity()|escape}></p>
		<p><{$order->getDelCountry()|escape}></p>

		<{if $order->getSetting('shop_id')}>
			<p><{t section="Mail"}>Pakkeshop:<{/t}> <{$order->getSetting('shop_id')|escape}></p>
		<{/if}>
		
	</div>

</body>

</html>