  <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr valign="top">
                      <td width=" 50%" style=" padding: 14px 0px 0px 2px; font-size: 12px; font-family: Arial;">
                      <h2 style="font: bold 12px Arial; margin: 0px 0px 3px 0px;">{$resDealOrderDetails[0]['businessName']}</h2>
							  {$resBusinessDetails.businessAddress|address_format:$languageIDs}
							</td>
                      <td style="padding-top: 14px;padding-left:15px;"><h2 style="font: bold 17px Tahoma; margin: 0px;">Order Number: &nbsp;{$orderNumber}</h2>
                        <table border="0" cellpadding="0" cellspacing="5">
                            <tr valign="top">
                              <td style="font-size: 12px; font-family: verdana, helvetica, arial, sans-serif; text-transform: uppercase; color: #000000; padding-right: 10px; white-space: nowrap;">{$language.lblOrderStatus}:</td>
                              <td style="font-size: 12px; font-family: Arial;" width="100%">{$resOrderDetails.orderStatus}</td>
                            </tr>
                            <tr valign="top">
                              <td style="font-size: 12px; font-family: verdana, helvetica, arial, sans-serif; text-transform: uppercase; color: #000000; padding-right: 10px; white-space: nowrap;">{$language.lblOrderedAt}:</td>
                              <td style="font-size: 12px; font-family: Arial;">{$resOrderDetails.orderCreatedDate|date_format:$settingsDateFormat}</td>
                            </tr>
                            <tr valign="top">
                              <td style="font-size: 12px; font-family: verdana, helvetica, arial, sans-serif; text-transform: uppercase; color: #000000; padding-right: 10px; white-space: nowrap;">{$language.lblPaymentStatus}:</td>
                              <td style="font-size: 12px; font-family: Arial;">{$resOrderDetails.paymentStatus}</td>
                            </tr>
                              {if $resDealOrderDetails[0]['shippingMethod'] !=''}
                            <tr valign="top">
                              <td style="font-size: 12px; font-family: verdana, helvetica, arial, sans-serif; text-transform: uppercase; color: #000000; padding-right: 10px; white-space: nowrap;">{$language.lblShippingMethod}:</td>
                              <td style="font-size: 12px; font-family: Arial;"> {$resDealOrderDetails[0]['shippingMethod']} </td>
                            </tr>
                             {/if}
                         
                        </table>
                        </td>
                    </tr>
                  
                </table>
                <table style="padding: 32px 0px 24px 0px;" border="0" cellpadding="0" cellspacing="0" width="100%">
                 
                    <tr valign="top">
                      <td style="font-size: 12px; font-family: Arial; padding-right: 10px; " width="34%"><h3 style="font: bold 17px Tahoma; padding: 0px 0px 3px 1px; margin: 0px;">Billing Information</h3>
                        <p style="margin: 2px 0px 3px 0px;"> {$billingAddress} </p>
                        
                        <p style="margin: 2px 0px 3px 0px;">Phone Number: {$billingPhone} </p> 
                        <p style="margin: 2px 0px 3px 0px;"> Email Address: <a href="mailto:{$billingEmail}">{$billingEmail}</a></p>
                        
                       </td>
                      <td style="font-size: 12px; font-family: Arial;" width="33%"><h3 style="font: bold 17px Tahoma; padding: 0px 0px 3px 1px; margin: 0px;">Shipping Information</h3>
                        <p style="margin: 2px 0px 3px 0px;"> {$shippingInfo}</p>
                      </td>
                    </tr>
                  
                </table>
                <table style="background-color: #d2f4dc;" cellpadding="0" cellspacing="1" width="100%">
                 
                    <tr>
                      <th style="background-color: #d2f4dc; padding: 6px 10px; white-space: nowrap; font-size: 12px; font-family: Arial;" width="70%">{$language.lblProduct}</th>
                       <th style="background-color: #d2f4dc; padding: 6px 10px; white-space: nowrap; font-size: 12px; font-family: Arial;" width="70%"> {$language.lblShipmentStatus}</th>
                     
                      <th style="background-color: #d2f4dc; padding: 6px 10px; white-space: nowrap; font-size: 12px; font-family: Arial;">{$language.lblQuantity}</th>
                      <th style="background-color: #d2f4dc; padding: 6px 10px; white-space: nowrap; font-size: 12px; font-family: Arial;">{$language.lblPrice}</th>
                      <th style="background-color: #d2f4dc; padding: 6px 10px; white-space: nowrap; font-size: 12px; font-family: Arial;">{$language.lblTotal}</th>
                    </tr>
                      
                    {foreach from=$resDealOrderDetails item="deal" key="key1"}
                    {assign var="discount" value=$deal.dealOptionRegularPrice-$deal.dealOptionDealPrice}
                    <tr>
                      <td style="padding: 5px 10px; background-color: #ffffff; font-size: 12px; font-family: Arial;"> {$deal.dealTitle}
                        <p style="margin: 2px 0px 3px 0px;"> {$resOrderDetails.dealType}</p>
                        <br>
                        <strong>option :</strong>&nbsp;
                         {$deal.dealOptionName}
                         {assign var="unserialize" value=$deal.extra|unserialize}
                         {if $unserialize.combinationValues.customOption|count >0}
                        <strong>{$language.lblCombinationSKU} </strong>&nbsp; - {$unserialize.combinationValues.cimbinationSKU}<br />
                       {foreach from=$unserialize.combinationValues.customOption item="combination" key="key"}
											{if $key neq 0}<span class="x-style">X </span>{/if}
											{$combination.customOptionName}{$combination.variantValue}
										{/foreach}
                                     {/if}<br />
                                     {if $unserialize.customOptionValues|count >0}
                                     <strong>Options:</strong>&nbsp;{foreach from=$unserialize.customOptionValues item="customOptionValues"}
                        {$customOptionValues.0.customOptionName}
                        {foreach from=$customOptionValues item="customOption" key="key"}
											{if $customOption.inputType != 'file'}
												{$customOption.variantValue}{if $key >0},{/if}
											{else if $customOption.inputType == 'file' && $customOption.variantValue!=''}
												{html->anchor href="/cart/getFile/id/{$customOption.variantValue}/" 
												caption=$customOption.variantValue 
												title=$customOption.customOptionName}
											{/if}
										{/foreach}
                                        
                                        {/foreach}
                                        {/if}
                                         {if $deal.carrierDetails!=''}<br>
                        <strong> {$language.lblShippingDetails} :</strong> {$deal.carrierDetails}
                        {/if}
                        
                         </td>
                         <td style="padding: 5px 10px; background-color: #ffffff; text-align: center; font-size: 12px; font-family: Arial;">
						{if $deal.shipmentStatus== 'Delivered'}
							{$language.lblShipped}
						{else}
							{$language.lblPending}
						{/if}
					</td>
                      <td style="padding: 5px 10px; background-color: #ffffff; text-align: center; font-size: 12px; font-family: Arial;">{$deal.orderItemQuantity}</td>
                      <td style="padding: 5px 10px; background-color: #ffffff; text-align: right; font-size: 12px; font-family: Arial;">{$deal.orderItemPrice|price:'':$deal.purchasedCurrency:$deal.purchasedCurrency}<br />
                        {if $deal.isTaxable=="Yes"}<span class="text-style05">({$language.lblTaxable})</span>{/if}</td>
                      <td style="padding: 5px 10px; background-color: #ffffff; text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;">{$deal.orderItemSubtotal|price:'':$deal.purchasedCurrency:$deal.purchasedCurrency}</td>
                    </tr>
                     {/foreach}
                    
                  
                </table>
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                      <td align="right"><table style="padding: 3px 0px 12px 0px;" border="0">
                         
                            <tr>
                              <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><strong>{$language.lblSubtotalAmount} :</strong>&nbsp;</td>
                              <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;">{$resOrderDetails.orderSubtotal|price:'':$resOrderDetails.purchasedCurrency:$resOrderDetails.purchasedCurrency}</td>
                            </tr>
                              {if $resOrderDetails.orderOtherServiceCharge>0}
                            <tr>
                              <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><strong>{$language.lblServiceCharge}</strong>&nbsp;</td>
                              <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;">{$resOrderDetails.orderOtherServiceCharge|price:'':$resOrderDetails.purchasedCurrency:$resOrderDetails.purchasedCurrency}</td>
                            </tr>
                             {/if}
                               {if $resOrderDetails.orderPromoDiscountAmount>0}
                            <tr>
                              <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><strong>{$language.lblDiscount}</strong>&nbsp;</td>
                              <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;">{$resOrderDetails.orderPromoDiscountAmount|price:'':$resOrderDetails.purchasedCurrency:$resOrderDetails.purchasedCurrency}<br >
                              ({$resOrderDetails.orderPromoCode})</td>
                            </tr>
                             {/if}
                              {if $resOrderDetails.orderUserCreditAmount>0}
                            <tr>
                              <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><strong>{$language.lblCreditAmount}</strong>&nbsp;</td>
                              <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;">{$resOrderDetails.orderUserCreditAmount|price:'':$resOrderDetails.purchasedCurrency:$resOrderDetails.purchasedCurrency}</td>
                            </tr>
                             {/if}
                            {if $resOrderDetails.orderTaxAmount>0}
                            <tr>
                              <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><strong>{$language.lblTaxAmount}</strong>&nbsp;</td>
                              <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;">{$resOrderDetails.orderTaxAmount|price:'':$resOrderDetails.purchasedCurrency:$resOrderDetails.purchasedCurrency}</td>
                            </tr>
                             {/if}
                             {if $resOrderDetails.shippingAmount>0}
                            <tr>
                              <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;"><strong>{$language.lblShippingAmount}</strong>&nbsp;</td>
                              <td style="text-align: right; white-space: nowrap; font-size: 12px; font-family: Arial;">{$resOrderDetails.shippingAmount|price:'':$resOrderDetails.purchasedCurrency:$resOrderDetails.purchasedCurrency}</td>
                            </tr>
                             {/if}
                            <tr>
                              <td colspan="2"><hr style="border: 0px solid #d5d5d5; border-top-width: 1px;"></td>
                            </tr>
                            <tr>
                              <td style="text-align: right; white-space: nowrap; font: 15px Tahoma;">Total Amount:&nbsp;</td>
                              <td style="text-align: right; "><strong style="font:normal 17px Tahoma;">{$resOrderDetails.orderTotalAmount|price:'':$resOrderDetails.purchasedCurrency:$resOrderDetails.purchasedCurrency}</strong></td>
                            </tr>
                        </table></td>
                    </tr>
                  
                </table>