<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    {literal}
  <style type="text/css">     
       @charset "utf-8";
/* CSS Document */
.fixing_left { float:left; }
.fixing_right { float:right; }
.clearfix:after { clear:both; content:'.'; display:block; height:0; visibility:hidden }
.clearfix { display:block }
* html .clearfix { height:1% }
*+html .clearfix { display:inline-block }
.create-label-popup{background:#f4f6f8;padding:20px;}
.create-label-popup .order-items{padding:15px;border:#ddd 1px solid;background:#fff;margin:0 auto 25px;width:600px;font:400 12px/18px Arial, Helvetica, sans-serif }
.create-label-popup h3{font:700 16px Arial, Helvetica, sans-serif;padding:0 0 5px;margin:0;}
.create-label-popup p{padding:0 0 5px;margin:0;}
.create-label-popup .info-listing{border-bottom:1px dotted #ddd;padding:10px;margin:0 0 10px;}
.create-label-popup .info-listing.heading{border-bottom:2px solid #ddd;}
.create-label-popup .width48{width:48%;}
.create-label-popup .grid{margin:10px 0;}
.create-label-popup .grid th{background:#fff;color:#333;font:700 12px Arial, Helvetica, sans-serif;border-bottom:#ddd 2px solid;padding:5px;}
.create-label-popup .grid td{background:#fff;color:#333;font:400 12px Arial, Helvetica, sans-serif;border-bottom:#ddd 1px solid;padding:10px 5px;}
.rmv-border{border-bottom:0!important;}
@media print { 
.print{display:none;}
}
.clearfix:before,.clearfix:after {content: " ";display: table}
.clearfix:after {clear: both}
    </style> 
    {/literal}
 {if $languageDirection eq "rtl"}
   <style type="text/css">
    
       body{
           text-align: right;direction: rtl;
       }
       table{
           direction: rtl;
       }
        td [align ="left"],th [align ="left"]{
            text-align: right;
       }
        td [align ="right"],th [align ="right"]{
            text-align: left;
       }
       .left{
           text-align: right;
       }
       .right{
           text-align: left;
       }
       .fixing_right{
           float:left;
       } .fixing_left{
           float:right;
       }
    </style>
    {/if}

</head>

<body>
<div class="create-label-popup"><img src="{$view_images}/print-icon.png" width="24" height="24" alt="print" class="print fixing_right" onclick="window.print();"/> 
    {foreach from=$resShippedOrders item="product" key="key1"}
     <div class="order-items clearfix">
	
	 
        	<div class="info-listing clearfix heading">
            <div class="fixing_right width48">
        	  <h3>{$language.lblShipto}</h3>
        	  <p>{$product.shippingAddress|address_format:$languageIDs}</p>
                  {if $shippingPhone|default:'' neq ''}<br><span> {$language.lblPhone}:</span>{$shippingPhone} {/if}
                </div>
                <div class="fixing_left width48">
                    <h3>{$language.lblPackingSlip} <strong>#{$product.orderNumber}</strong></h3>
        	 <p>
        	       {$language.lblOrderedAt} : 
                 <strong>{$product.orderCreatedDate|date_format:$settingsDateFormat|default:''}</strong></p>
      	       <p>
        	       {$language.lblShipmentDate} : 
        	       <strong> {$product.activityDate|date_format:$settingsDateFormat|default:''}
                   </strong></p>
                  {if $shippingMethod!=''}
            	<p> {$language.lblShippingMethod}:	
                <strong>
                       {if $shippingMethod eq "One Day Delivery"}
                                        {$language.lblOneDayDelivery}
                                        {else if $shippingMethod eq "Free Shipping"}
                                        {$language.lbFreeShipping}
                                        {else if $shippingMethod eq "Flat Rate Shipping"}
                                        {$language.lblFlatRateShipping}
                                        {else if $shippingMethod eq "Same Day Delivery"}
                                        {$language.lblSameDayDelivery}
                                        {else if $shippingMethod eq "All For Free"}
                                        {$language.lblAllForFree}
                                        {else if $shippingMethod eq "Quick Delivery"}
                                        {$language.lblQuickDelivery}
                                        {else if $shippingMethod eq "Same Day Delivery"}
                                        {$language.lblSameDayDelivery}
                                        {else if $shippingMethod eq "Next Day Delivery"}
                                        {$language.lblNextDayDelivery}
                                        {else if $shippingMethod eq "Jihazi Delivery" || $shippingMethod eq "Jihazi Delivery Charge"}
                                        {$language.lblJihaziDelivery}
                                        {/if}
                </strong></p>
                	{/if}
                    <p>{$language.lblStatus} :	<strong>{$getDynOrderStatusByKey[$product.dynamicOrderStatus]}</strong></p>
          	<p> {$language.lblPaymentMethod} :	<strong>{$product.orderPaymentMethodName}</strong></p>
                
          	{*{if $product.logisticPartner !='' || $product.trackingNumber!=''}
            	<p> {$language.lblShippingMethod}:	
                <strong>
                {if $product.carrier == 'other'}
									{$product.other_logistic_partner}
								{else}
									{$product.logisticPartner}
								{/if}
								  &nbsp;({$language.lblTrackingnumber} :{$product.trackingNumber})
                </strong></p>
                	{/if}*}
                        
                </div>
          </div>
          <div class="info-listing clearfix">
          	<div class="width48 fixing_left">
           <h3>  {$companyName}</h3>
            {$adminInfo}
            {if $companyPhone|default:'' neq ''}
                <p>{$language.lblPhone}	:	<strong>{$companyPhone}</strong></p>
            {/if}
            {if $companyFax|default:'' neq ''}
            	<p>{$language.lblFax}	:	<strong>{$companyFax}</strong></p>
            {/if}
            {if $companyWebsite|default:'' neq ''}
           	 <p>{$language.lblWebsite}	:	<strong>{$companyWebsite}</strong></p>
            {/if}
            {if $companyEmail|default:'' neq ''}
                <p>{$language.lblEmail}	:	<strong>{$companyEmail}</strong></p>
            {/if}
            </div>
            <div class="width48 fixing_right">
            <h3>{$language.lblBillTo}</h3>
<p>{$product.billingAddress|address_format:$languageIDs} 
<a href="mailto:{$resBillAddress['billingEmail']|default:''}">{$resBillAddress['billingEmail']|default:''}</a><br>
 {if $resBillAddress['billingPhone']|default:''}
                        {$resBillAddress['billingPhone']|default:''|escape}  {/if}
</p>
            </div>
          </div>
          <div class="info-listing clearfix rmv-border">
          	
             
        <table style="background-color: #dddddd;" class="grid" cellpadding="0" cellspacing="0" width="100%">
                  <tbody>
                    <tr>
                      <th width="70%" align="left" valign="middle" class="left">{$language.lblProductTitle}</th>
                       <th width="70%" align="left" valign="middle" class="left">{$language.lblCode} </th>
                     
                      <th align="left" valign="middle" class="left">{$language.lblQuantity}</th>
					</tr>
                      {foreach from=$product.items item="items" key="key2"} 
                    <tr>
                      <td align="left" valign="top" class="left"> 
					   {$items.productTitle}
                        (
                         {$items.productOptionName})
                         {assign var="unserialize" value=$items.extra|unserialize}
                         {if $settingsTaxApplicable eq 'Yes' && $unserialize.orderItemTaxDescription neq ''} 		
                                {assign var="taxDescription" value="{$unserialize.orderItemTaxDescription}"}
                        {/if}
                         {if $unserialize.combinationValues.customOption|count|default:0 >0}
                        <strong>{$language.lblCombination} :</strong>&nbsp; SKU - {$unserialize.combinationValues.cimbinationSKU|default:''}<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>{$language.lblOptions}:</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}
											
											{/if}
										{/foreach}
                                        
                                        {/foreach}
                                        {/if}   </td>
                         <td align="left" valign="top" class="left">
						 						{if $unserialize.combinationValues.cimbinationSKU|default:''}
						 {$unserialize.combinationValues.cimbinationSKU}{else}
						 {$items.optionSKU}
						 {/if}
						 						 </td>
                      <td align="left" valign="top" class="left">
					  {$items.quantity}</td>
                   </tr>
                     {if $items.comment|default:''}
                      <tr><td align="left" valign="top" colspan="3" class="left"><p><strong>{$language.lblComments}</strong> : {$items.comment} </p></td></tr>{/if}
                   {/foreach}
                  </tbody>
                </table>
                  
          </div>
      
      
              <table style="padding: 3px 0px 12px 0px;" border="0" width="70%" align="{if $languageDirection eq 'rtl'}left{else}right{/if}">
                          <tr>
                              <td align="right" valign="middle" style="white-space: nowrap; font-size: 12px; " class="right"><strong>{$language.lblPromotionSchemaOrderSubtotal} :</strong>&nbsp;</td>
                              <td align="right" valign="middle" style="white-space: nowrap; font-size: 12px; " class="right">{$product.orderSubtotal|price:'':$product.purchasedCurrency:$product.purchasedCurrency}</td>
                            </tr>
                              {if $product.orderOtherServiceCharge>0}
                            <tr>
                              <td align="right" valign="middle" style="white-space: nowrap; font-size: 12px; " class="right"><strong>{$language.lblServiceCharge} :</strong>&nbsp;</td>
                              <td align="right" valign="middle" style="white-space: nowrap; font-size: 12px; " class="right">{$product.orderOtherServiceCharge|price:'':$product.purchasedCurrency:$product.purchasedCurrency}</td>
                            </tr>
                             {/if}
                              
                              {if $product.orderConvenientFee>0}
                            <tr>
                              <td align="right" valign="middle" style="white-space: nowrap; font-size: 12px; " class="right"><strong>{$language.lblConvenientFee} :</strong>&nbsp;</td>
                              <td align="right" valign="middle" style="white-space: nowrap; font-size: 12px; " class="right">{$product.orderConvenientFee|price:'':$product.purchasedCurrency:$product.purchasedCurrency}</td>
                            </tr>
                             {/if} 
                               {if $product.orderPromoDiscountAmount>0}
                            <tr>
                              <td align="right" valign="middle" style="white-space: nowrap; font-size: 12px; " class="right"><strong>{$language.lblDiscount} :</strong>&nbsp;</td>
                              <td align="right" valign="middle" style="white-space: nowrap; font-size: 12px; " class="right">{$product.orderPromoDiscountAmount|price:'':$product.purchasedCurrency:$product.purchasedCurrency}<br >
                              {$product.orderPromoCode}</td>
                            </tr>
                             {/if}
                              {if $product.orderUserCreditAmount>0}
                            <tr>
                              <td align="right" valign="middle" style="white-space: nowrap; font-size: 12px; " class="right"><strong>{$language.lblCreditAmount} :</strong>&nbsp;</td>
                              <td align="right" valign="middle" style="white-space: nowrap; font-size: 12px; " class="right">{$product.orderUserCreditAmount|price:'':$product.purchasedCurrency:$product.purchasedCurrency}</td>
                            </tr>
                             {/if}
                            {if $product.orderTaxAmount>0}
                            <tr>
                              <td align="right" valign="middle" style="white-space: nowrap; font-size: 12px; " class="right"><strong>{$language.lblTaxAmount}{if $taxDescription|default:'' neq ''} - {$taxDescription}{/if} :</strong>&nbsp;</td>
                              <td align="right" valign="middle" style="white-space: nowrap; font-size: 12px; " class="right">{$product.orderTaxAmount|price:'':$product.purchasedCurrency:$product.purchasedCurrency}</td>
                            </tr>
                             {/if}
                             {if $product.shippingAmount>0}
                            <tr>
                              <td align="right" valign="middle" style="white-space: nowrap; font-size: 12px; " class="right"><strong>{$language.lblShippingAmount}:</strong>&nbsp;</td>
                              <td align="right" valign="middle" style="white-space: nowrap; font-size: 12px; " class="right">{$product.shippingAmount|price:'':$product.purchasedCurrency:$product.purchasedCurrency}</td>
                            </tr>
                             {/if}
                            <tr align="right" valign="middle" class="right">
                              <td colspan="2"><hr style="border: 0px solid #d5d5d5; border-top-width: 1px;"></td>
                            </tr>
                            <tr>
                              <td align="right" valign="middle" style="white-space: nowrap; font: 15px Tahoma;" class="right">{$language.lblTotal}:&nbsp;</td>
                              <td align="right" valign="middle" style="text-align: right;font-size:17px; " class="right">
                                 {$product.orderTotalAmount|price:'':$product.purchasedCurrency:$product.purchasedCurrency}</td>
                            </tr>
                      </table>
           
         </div>
    {/foreach}
    </div>
    
  
</body>
</html>
