<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<body>
	<table id="sellsmart-mailing" align="center">
	<tr><td><table class="wrapper"><tr><td>
		<table class="header">
			<tr><td class="logo"><center><a href="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}"><img src="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}templates/images/mailing/logo.png" /></a></center></td></tr>
			<tr><td><center><h1>{{$config.website_name}}</h1></center></td></tr>
		</table>
		
		<!-- order send start -->
		<table class="details">
			<tr><td colspan="2"><strong>{{$lang.Order_info_title}}</strong></td></tr>
		</table>
		<p class="separator">&nbsp;</p>
		<table class="details">
			<tr><td class="name">{{$lang.Order_id}}:</td><td>{{$aOrder.iOrder}}</td></tr>
		</table>
		<p class="separator">&nbsp;</p>
		<table class="details">
			<tr><th colspan="2"><strong>{{$lang.Your_personal_information}}</strong></th></tr>
			<tr><td colspan="2">
				<p>{{$aOrder.sFirstName}} {{$aOrder.sLastName}}</p>
				{{if !empty( $aOrder.sCompanyName )}}<p>{{$aOrder.sCompanyName}}</p>{{/if}}
				{{if !empty( $aOrder.sNip )}}<p>{{$aOrder.sNip}}</p>{{/if}}
				{{if !empty( $aOrder.sPesel )}}<p>{{$aOrder.sPesel}}</p>{{/if}}
				<p>{{$aOrder.sStreet}}</p>
				<p>{{$aOrder.sZipCode}} {{$aOrder.sCity}}</p>
				<p>{{$aOrder.sCountry}}</p>
				<p>{{$aOrder.sPhone}}</p>
				<p>{{$aOrder.sEmail}}</p>
				<br/>
				<p>{{$lang.Invoice}}: {{$aOrder.sInvoice}}</p>
			</td></tr>
		</table>
		<p class="separator">&nbsp;</p>
			{{if !empty($aOrder.sPostalName) || !empty($aOrder.sPostalStreet) || !empty($aOrder.sPostalZipCode) || !empty($aOrder.sPostalCity) || ( !empty($aOrder.sPostalCountry) && $aOrder.sPostalCountry != $aOrder.sCountry ) || ( !empty($aOrder.sPostalPhone) && $aOrder.sPostalPhone != $aOrder.sPhone )}}
				<table class="details">
					<tr><th colspan="2"><strong>{{$lang.PostalData}}</strong></th></tr>
					<tr><td colspan="2">
						<p>{{$aOrder.sPostalName}}</p>
						<p>{{$aOrder.sPostalStreet}}</p>
						<p>{{$aOrder.sPostalZipCode}} {{$aOrder.sPostalCity}}</p>
						<p>{{$aOrder.sPostalCountry}}</p>
						<p>{{$aOrder.sPostalPhone}}</p>
					</td></tr>
				</table>
				<p class="separator">&nbsp;</p>
			{{/if}}
		<table class="details">
			<tr><th colspan="2"><strong>{{$lang.Order_comment}}</strong></th></tr>
			<tr><td colspan="2">
				<p>{{$aOrder.sComment}}</p>
			</td></tr>
		</table>
		<p class="separator">&nbsp;</p>
		{{if $aOrder.iGift}}
			<table class="details">
				<tr><th colspan="2"><strong>{{$lang.Packing_as_gift}}</strong></th></tr>
				<tr><td>{{$lang.Pack_as_gift}}</td><td>{{$lang.Yes}}</td></tr>
				<tr><td>{{$lang.Show_Client}}</td><td>{{if $aOrder.iShowClient}}{{$lang.Yes}}{{else}}{{$lang.No}}{{/if}}</td></tr>
				<tr><td>{{$lang.Gift_Text}}</td><td>{{$aOrder.sGiftText}}</td></tr>
			</table>
			<p class="separator">&nbsp;</p>
		{{/if}}
		<table class="products">
			<tr><th colspan="5"><strong>{{$lang.Order_summary}}</strong></th></tr>
			<tr class="head">
				<td class="c_name"></td>
				<td class="c_name">{{$lang.Name}}</td>
				<td class="c_price">{{$lang.Price}} [{{$config.currency_symbol}}]</td>
				<td class="c_quantity">{{$lang.Quantity}}</td>
				<td class="c_summary">{{$lang.Summary}} [{{$config.currency_symbol}}]</td>
			</tr>
			{{foreach from=$aOrder.aProducts item=aListProduct}}
				<tr class="product">
					<td class="c_name"><img src="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}{{$config.dir_files}}{{$aProductMinSizes.MainBasket}}/{{$aListProduct.aDataImage.sFileName}}" alt="{{$aListProduct.sName}}" /></td>
					<td class="c_name"><a href="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}{{$aListProduct.sLinkName}}?sLang={{$aOrder.sLanguage}}">{{$aListProduct.sName}}</a></td>
					<td class="c_price">{{$aListProduct.sPrice}}</td>
					<td class="c_quantity">{{$aListProduct.iQuantity}}</td>
					<td class="c_summary">{{$aListProduct.sSummary}}</td>
				</tr>
			{{/foreach}}
			<tr class="summary-product"><td class="desc" colspan="4"><strong>{{$lang.Order_summary}}:</strong></td><td class="value">{{$aOrder.sProductsSummary}}</td></tr>
			{{if !empty( $aOrder.sDiscountCouponValue ) && $aOrder.sDiscountCouponValue != '0.00'}}
				<tr class="summary-product"><td class="desc" colspan="4"><strong>{{$lang.Discount_coupon_value}}</strong></td><td class="value">{{$aOrder.sDiscountCouponValue}}</td></tr>
				<tr class="summary-product"><td class="desc" colspan="4"><strong>{{$lang.Summary_after_discount}}:</strong></td><td class="value">{{$aOrder.sProductsSummaryDiscount}}</td></tr>
			{{/if}}
			<tr class="summary-delivery"><td class="desc" colspan="4">{{$lang.Delivery_and_payment}} ({{$aOrder.aCarrier.sName}}, {{$aOrder.aPayment.sName}}):</td><td class="value">{{$aOrder.sPaymentCarrierPrice}}</td></tr>
			{{if $aOrder.iGift}}
				<tr class="summary-gift"><td class="desc" colspan="4">{{$lang.Packing_as_gift}}:</td><td class="value">{{$aOrder.sGiftCost}}</td></tr>
			{{/if}}
			<tr class="summary-order"><td class="desc" colspan="4"><strong>{{$lang.Summary_cost}}</strong>:</td><td class="value">{{$aOrder.sOrderSummary}}</td></tr>
		</table>
		<p class="separator">&nbsp;</p>
		<table class="details">
			<tr><th colspan="2"><strong>{{$lang.Payment_description}}</strong></th></tr>
			<tr><td colspan="2">
				{{$aOrder.sPaymentDescription}}
			</td></tr>
		</table>
		
		<p class="separator">&nbsp;</p>
		<table class="details">
			<tr><th colspan="2"><strong>{{$lang.Order_view_again_header}}</strong></th></tr>
			<tr><td colspan="2">
				<a href="{{$aUrl.scheme}}://{{$aUrl.host}}{{$aUrl.path}}{{$aOrder.sOrderSummaryPageLink}}iOrder={{$aOrder.iOrder}}&amp;sOrderKey={{$aOrder.sOrderKey}}">{{$lang.Order_view_again}}</a>
			</td></tr>
		</table>
		
		<p class="separator">&nbsp;</p>
		<!-- order send end -->
		
		<table class="foot">
			<tr><td colspan="2">
				{{$config.email_foot_info}}
			</td></tr>
		</table>
	</td></tr></table></td></tr>
	</table></body>
</html>