{{assign var=CartID value=$args}}
{{assign var=CartCollection	value=133}}
{{assign var=CartDetailsCollection value=134}}

{{getCollectionByCategory CollectionID=138 ColumnID=1 Value=$CartID var=BillingInfoData OrderColumn='ID'}}
{{assign var=BillingInfo value=$BillingInfoData[0]}}
{{getCollectionByCategory CollectionID=139 ColumnID=1 Value=$CartID var=ShippingInfoData OrderColumn='ID'}}
{{assign var=ShippingInfo value=$ShippingInfoData[0]}}

{{assign var=CollectionBinfo value=138}}
{{assign var=Prefix value='Collection_'}}
{{assign var=Prefix value=$Prefix|concat:$CollectionBinfo}}
{{assign var=Prefix value=$Prefix|concat:'_'}}

{{assign var=FirstName 	value=$Prefix|concat:'2'}}
{{assign var=LastName 	value=$Prefix|concat:'3'}}
{{assign var=Company 	value=$Prefix|concat:'4'}}
{{assign var=Address 	value=$Prefix|concat:'5'}}
{{assign var=Address2 	value=$Prefix|concat:'6'}}
{{assign var=City 		value=$Prefix|concat:'7'}}
{{assign var=State 		value=$Prefix|concat:'8'}}
{{assign var=Zip 		value=$Prefix|concat:'9'}}
{{assign var=Phone 		value=$Prefix|concat:'10'}}
{{assign var=Fax 		value=$Prefix|concat:'11'}}
{{assign var=Email 		value=$Prefix|concat:'12'}}

<table cellpadding="4" cellspacing="4" border="0" style="font-size:8pt; ">
<tr><td height="10"> </td></tr>
<tr valign="top">
	<td>
			<table cellpadding="4" cellspacing="4" border="0">
			<tr><td colspan="2"><font size="+1"><strong>Billing Information</strong></font></td></tr>
			<tr>
				<td bgcolor="#98BED3" width="150"><font color="#FFFFFF"><strong>FirstName</strong></font></td>
				<td>{{$BillingInfo.$FirstName}}</td>
			</tr>
			<tr>
				<td bgcolor="#98BED3" width="150"><font color="#FFFFFF"><strong>LastName</strong></font></td>
				<td>{{$BillingInfo.$LastName}}</td>
			</tr>
			<tr>
				<td bgcolor="#98BED3" width="150"><font color="#FFFFFF"><strong>Company</strong></font></td>
				<td>{{$BillingInfo.$Company}}</td>
			</tr>
			<tr>
				<td bgcolor="#98BED3" width="150"><font color="#FFFFFF"><strong>Address</strong></font></td>
				<td>{{$BillingInfo.$Address}} {{$BillingInfo.$Address2}}</td>
			</tr>
			<tr>
				<td bgcolor="#98BED3" width="150"><font color="#FFFFFF"><strong>State</strong></font></td>
				<td>{{assign var=stateid value=$BillingInfo.$State}}
		{{createOptions CollectionID=10 Column=1 var=states}} 
		{{$states.$stateid}}</td>
			</tr>
			<tr>
				<td bgcolor="#98BED3" width="150"><font color="#FFFFFF"><strong>Zip</strong></font></td>
				<td>{{$BillingInfo.$Zip}}</td>
			</tr>
			<tr>
				<td bgcolor="#98BED3" width="150"><font color="#FFFFFF"><strong>Phone</strong></font></td>
				<td>{{$BillingInfo.$Phone}}</td>
			</tr>
			<tr>
				<td bgcolor="#98BED3" width="150"><font color="#FFFFFF"><strong>Fax</strong></font></td>
				<td>{{$BillingInfo.$Fax}}</td>
			</tr>
			<tr>
				<td bgcolor="#98BED3" width="150"><font color="#FFFFFF"><strong>Email</strong></font></td>
				<td>{{$BillingInfo.$Email}}</td>
			</tr>
			</table>
	
	</td>
	<td>
			{{assign var=CollectionBinfo value=139}}
			{{assign var=Prefix value='Collection_'}}
			{{assign var=Prefix value=$Prefix|concat:$CollectionBinfo}}
			{{assign var=Prefix value=$Prefix|concat:'_'}}
			
			{{assign var=FirstName 	value=$Prefix|concat:'2'}}
			{{assign var=LastName 	value=$Prefix|concat:'3'}}
			
			{{assign var=Company 	value=$Prefix|concat:'9'}}
			{{assign var=Address 	value=$Prefix|concat:'4'}}
			{{assign var=Address2 	value=$Prefix|concat:'5'}}
			{{assign var=City 		value=$Prefix|concat:'6'}}
			{{assign var=State 		value=$Prefix|concat:'7'}}
			{{assign var=Zip 		value=$Prefix|concat:'10'}}
			{{assign var=Phone 		value=$Prefix|concat:'8'}}
			{{assign var=Email 		value=$Prefix|concat:'11'}}

			
			<table cellpadding="4" cellspacing="4" border="0">
			<tr><td colspan="2"><font size="+1"><strong>Delivery Contact Information</strong></font></td></tr>
			<tr>
				<td bgcolor="#98BED3" width="150"><font color="#FFFFFF"><strong>FirstName</strong></font></td>
				<td>{{$ShippingInfo.$FirstName}}</td>
			</tr>
			<tr>
				<td bgcolor="#98BED3" width="150"><font color="#FFFFFF"><strong>LastName</strong></font></td>
				<td>{{$ShippingInfo.$LastName}}</td>
			</tr>
			<tr>
				<td bgcolor="#98BED3" width="150"><font color="#FFFFFF"><strong>Company</strong></font></td>
				<td>{{$ShippingInfo.$Company}}</td>
			</tr>
			<tr>
				<td bgcolor="#98BED3" width="150"><font color="#FFFFFF"><strong>Address</strong></font></td>
				<td>{{$ShippingInfo.$Address}} {{$ShippingInfo.$Address2}}</td>
			</tr>
			<tr>
				<td bgcolor="#98BED3" width="150"><font color="#FFFFFF"><strong>State</strong></font></td>
				<td>{{assign var=stateid value=$ShippingInfo.$State}}
		{{$states.$stateid}}</td>
			</tr>
			<tr>
				<td bgcolor="#98BED3" width="150"><font color="#FFFFFF"><strong>Zip</strong></font></td>
				<td>{{$ShippingInfo.$Zip}}</td>
			</tr>
			<tr>
				<td bgcolor="#98BED3" width="150"><font color="#FFFFFF"><strong>Phone</strong></font></td>
				<td>{{$ShippingInfo.$Phone}}</td>
			</tr>
			<tr>
				<td bgcolor="#98BED3" width="150"><font color="#FFFFFF"><strong>Email</strong></font></td>
				<td>{{$ShippingInfo.$Email}}</td>
			</tr>
			</table>
	
	</td>

</tr>
</table>
<br/>
<font size="+1"><strong>Purchased Products</strong></font><br/>

{{getcontent id=45}}
