{foreach from=$resCart['items'] item="cartItem"}
    <tr>
    <td align="left" valign="top" >
    {$cartItem.unserialize.productOptionName}
     {if $cartItem.freeBaseProductID>0}
                                ({$language.lblFreeGift})
     {/if}
	{if $cartItem.unserialize.combinationValues.customOption|count|default:0 >0}
    <div class="cart-detil"><span class="heading">Combination : SKU - {$cartItem.unserialize.combinationValues.cimbinationSKU}</span>
    	<div class="show-hide-cart" style="display:none;">
   		<span class="combination " >{foreach from=$cartItem.unserialize.combinationValues.customOption|default:'' item="combination" key="key"}
			{if $key neq 0} <span class="x-style">X </span>{/if}
            {$combination.customOptionName|default:''} &nbsp; {$combination.variantValue|default:''}
		{/foreach}</span>
        </div>
        </div>
        
	{/if}
	
	{if $cartItem.unserialize.customOptionValues|count >0}
   <div class="cart-detil"><span class="heading">Options</span>
   <div class="show-hide-cart" style="display:none;">
	{foreach from=$cartItem.unserialize.customOptionValues item="customOptionValues"}
		<span class="combination clearfix" >
        <span class="left">{$customOptionValues.0.customOptionName} &nbsp;</span>
        <span class="right">
		{foreach from=$customOptionValues item="customOption" key="key"}
			{if $customOption.inputType|default:'' != 'file'}
				{$customOption.variantValue|default:''}{if $key >0},{/if}
			{else if $customOption.inputType|default:'' == 'file' && $customOption.variantValue|default:''!=''}
				{html->anchor href="/order/getFile/id/{$customOption.variantValue|default:''}/" 
				caption=$customOption.variantValue|default:'' 
				title=$customOption.customOptionName|default:''}
			{/if}
		{/foreach}
		</span>
        </span>
	{/foreach}
    </span>
    </div>
	</div>
	{/if}
    </td>
    <td align="left" valign="top" >
	{if $deleteLink eq 'Yes' && $cartItem.freeProduct=='No'}
	<input style="width:30px;" type="text" class="textbox quantity" id="cart_quantity_{$cartItem.cartItemID}" name="cart_quantity_{$cartItem.cartItemID}" value="{$cartItem.orderItemQuantity}"/>
    <input type="button" rel="{$cartItem.productOptionID}_{$cartItem.cartItemID}" busid="{$cartItem.businessID}" id="update_cart_{$cartItem.productOptionID}" name="update_cart" value="Update" class="button04 update_cart" />
	{if $cartItem.freeProductGifts|default:'' >0}
    {html->anchor href="" content="<strong><span class='add'></span>{$language.lblAddFreeProduct}</strong>" 
											default=$language.lblAddFreeProduct 
											title="{$language.lblAddFreeProduct}" 
											class="custom-btnt add click addItemFree free-gift-product"
											id="addItemFree"
                                                                                        rel="{$cartItem.productID}"
											}
                                                                                        {/if}
        {else}
	{$cartItem.orderItemQuantity}
	{/if}
	</td>
    <td align="right" valign="top" >
    {$cartItem.orderItemPrice|price:'Full':0:$resCart.currencyID}
    </td>
    <td align="right" valign="top">
    {$cartItem.orderItemSubtotal|price:'Full':0:$resCart.currencyID}
    </td>
     <td align="left" valign="top">
    {if $deleteLink eq 'Yes' && ($cartItem.freeProduct=='No' || ($cartItem.freeProduct=='Yes' && $cartItem.freeBaseProductID>0))}
    <a href="Javascript:void(0);" 
    rel="{$cartItem.cartItemID}" 
    class="remove-link delete02 icon-set" 
    title="Remove Item">
    </a>
    {/if}
    </td>
    </tr>
{/foreach}
{if $type eq 'Full'}
    <tr>
    <td align="right" valign="top" colspan="3"><strong>{$language.lblSubtotal}</strong></td>
    <td align="right" valign="top" >
    {$resCart.orderSubtotal|price:'Full':0:$resCart.currencyID}
    </td>
     <td align="left" valign="top"> </td>
    </tr>
    {if $resCart.shippingAmount>0}
        <tr>
        <td align="right" valign="top" colspan="3"><strong>{$language.lblShippingAmount}</strong></td>
        <td align="right" valign="top" >
        {$resCart.shippingAmount|price:'Full':0:$resCart.currencyID}
        </td>
        <td align="left" valign="top"> </td>
        </tr>
    {/if}
    {if $resCart.orderOtherServiceCharge>0}
        <tr>
        <td align="right" valign="top" colspan="3"><strong>{$language.lblServiceCharge}</strong></td>
         <td align="right" valign="top">
        {$resCart.orderOtherServiceCharge|price:'Full':0:$resCart.currencyID}
        </td>
         <td align="left" valign="top"> </td>
        </tr>
    {/if}
    {if $resCart.orderPromoDiscountAmount>0}
        <tr>
        <td align="right" valign="top" colspan="3"><strong>{$language.lblDiscount}</strong></td>
        <td align="right" valign="top">
        - {$resCart.orderPromoDiscountAmount|price:'Full':0:$resCart.currencyID}
        {if $resCart.orderPromoCode}({$resCart.orderPromoCode}){/if}
        </td>
         <td align="left" valign="top"> </td>
        </tr>
    {/if}
    {if $resCart.orderUserCreditAmount>0}
        <tr>
        <td align="right" valign="top" colspan="3"><strong>{$language.lblCreditAmount}</strong></td>
        <td align="right" valign="top">
        - {$resCart.orderUserCreditAmount|price:'Full':0:$resCart.currencyID}
        </td>
         <td align="left" valign="top"> </td>
        </tr>
    {/if}
    {if $resCart.orderTaxAmount>0}
        <tr>
        <td align="right" valign="top" colspan="3"><strong>{$language.lblTaxAmount}</strong></td>
        <td align="right" valign="top">
        {$resCart.orderTaxAmount|price:'Full':0:$resCart.currencyID}
        </td>
        </tr>
    {/if}
    <tr>
   <td align="right" valign="top" colspan="3"><strong>{$language.lblTotal}</strong></td>
    <td align="right" valign="top">
    {$resCart.orderTotalAmount|price:'Full':0:$resCart.currencyID}
    </td>
     <td align="left" valign="top"> </td>
    </tr>
{/if}


{assign var="unserialize_data" value=$resCart.extra|unserialize}
{if $unserialize_data.applied_promotions|count|default:0 >0  && $unserialize_data.applied_promotions!= ''}
<tr>
 <td align="left" valign="top" colspan="5">
<ul class="coupon-items discount-info">
	<li class="caret-info"> <span class="caret-outer"></span> <span class="caret-inner"></span></li>
	<li>
		<div id="applied_promotions">
			<strong class="block strong">Applied promotions</strong>
			<ul>
				{foreach from=$unserialize_data.applied_promotions item="promo" key="key"}
					<li class="promo-item">
						{$promo.ruleName} - 
						{if $promo.apply|default:'' == 'by_percentage' && $promo.discountAmount|default:0 >0}
							<span>{$promo.discountAmount} % Off on </span>
							{foreach from=$promo.applicable_items item="item" key="key"}
								{$item.n} ,
							{/foreach}
						{/if}
						{if $promo.apply|default:'' == 'by_fixed' && $promo.discountAmount|default:0 >0}
							<span>{$promo.discountAmount|price:'Full':$resCart.currencyID:$resCart.currencyID} Off on </span>
							{foreach from=$promo.applicable_items item="item" key="key"}
								{$item.n} ,
							{/foreach}
						{/if}
						{if $promo.apply|default:'' == 'cart_fixed' && $promo.discountAmount|default:0 >0}
							<span>{$promo.discountAmount|price:'Full':$resCart.currencyID:$resCart.currencyID} Off</span>
						{/if}
						{if $promo.couponCode|default:'' !=''}
							<span> (CODE - {$promo.couponCode}) </span>
						{/if}
						
						[{$promo.discount|default:0|price:'Full':$resCart.currencyID:$resCart.currencyID}]
						{if $promo.freeShipping|default:'' =='yes'}
							<span> 
								Shipping cost will be added to Promo Discount please update shipping address and shipping method
								({$resCart.shippingAmount|price:'Full':$resCart.currencyID:$resCart.currencyID})
							</span>
						{/if}
						
						{if $promo.giftCoupon|default:0 > 0}
							<span> <strong>
								Free Gift Coupon worth
								({$promo.giftCoupon|price:'Full':$resCart.currencyID:$resCart.currencyID})
							</strong> </span>
						{/if}
						
					</li>
				{/foreach}
			</ul>
			<!--applied_promotions--></div>
	</li>
</ul>
</td></tr>
{/if}
{if $resCart['items']|count >0}
	<script type="text/javascript" >
	var cart_have_item	= 1;
	</script>
{/if}