{form->start name="formCheckoutShippingMethod" method="post" action="" formType="ajax_form"}




<ul class="content payment-first">
    <h2 class="heading font16 uppercase dark ">{$language.lblShippingMethodinfo}
</h2>
	{assign var=test value=0}
	{if $methoddet|@count|default:0>0}
		{foreach $methoddet as $shipitem}
			{assign var=itemName value="~"|explode:$shipitem.itemName}
                        {assign var=itemIDArr value="~"|explode:$shipitem.productID}
			{assign var=r value=0}
			<li class="clearfix ajaxCartItems shipp-mthd" id="ajaxCartItems{$shipitem.productID}">
			{foreach $itemName as $nam}
                               {assign var=itemNameVal value="-"|explode:$nam} 
				<h5 class="item-title rb_medium font12 cm-font uppercase ship-product-name" rel={$itemNameVal[1]}>{$itemNameVal[0]|unescape} [{$language.lblMerchant} : {$shipitem.businessName}] </h5>
				{assign var=r value=$r+1}
			{/foreach}
			<ul id="ajaxShippingMethods" class="">
			{if $shipitem.methodID!=""}		
				<li class="clearfix slip padL20 shippingMthd rb_light font12">
							
				{form->radio
				name="shippingMethod_"|cat:$shipitem.productID
				options=$shipitem.methodID|cat:"->"|cat:$shipitem.methodName
				class="shippingMethodSelect"
				value=$shipitem.shippingMethodID 
				ref=$shipitem.productID}
				{$shipitem.shippingCharge|price:'Full':$cartData.currencyID:$cartData.currencyID}
				
				{assign var=test1 value=$shipitem.shippingCharge}
				{assign var=test value=$test+$test1}
				
				
				{form->hidden
				name="shippingMethod_"|cat:$shipitem.productID
				options=$shipitem.methodID|cat:"->"|cat:$shipitem.methodName
				class="shippingMethodSelect"  
				value=$shipitem.shippingMethodID
				ref=$shipitem.productID}
				
				
				
				
				{if $shipitem.settingsGroupKey !='free_shipping' && $shipitem.settingsGroupParent!=1}
					{if $shipitem.shippingtype=='Free'}
						( Free )
					{/if}
				{/if}
				{if $shipitem.shippingTax|default:0 >0}
					(Tax Inc.)
				{/if}
				</li>
						
				<li>
					{form->validate
					name="shippingMethod_val_"|cat:$shipitem.productID
					validate="shippingMethod_"|cat:$shipitem.productID|cat:"->required"
					validate_event="submit"
					error=$language.lblSelectShippingMethod}
				</li>
			{else}
				<li>
				<div class="warning">{$language.lblNoShippingMethodAvilable}</div>
				</li>

			{/if}
			</ul>
			</li>
		{/foreach}
	
	{else}
		<li>{$language.lblNoShippingMethodAvilable}</li>
	{/if}

</ul>
{*{if $userID<1 && $test>0}
    <ul class="guest-listing03-summary">
        <li class="clearfix">
          <div class="label" >{$language.lblShippingCharge} </div>
          <div class="value" >{$test|price:'Full':$cartData.currencyID:$cartData.currencyID}</div>
        </li>
    </ul>
{/if}*}
{form->close}
{form->validate_script form="formCheckoutShippingMethod"}


{*{form->start name="formCheckoutShippingMethod" method="post" action="" formType="ajax_form"}
<h2 class="heading font16 uppercase dark ">{$language.lblShippingMethodinfo}
</h2>

{form->hidden name="currentPage" id="currentPage" value="checkout"}
<ul class="content payment-first padding">
	<h3 class="text-uppercase">{$language.lblShippingMethodinfo}</h3>	
	{if $shippingMethods|@count|default:0>0}	
		{foreach $shippingMethods as $items key="key"}

			<li class="clearfix ajaxCartItems shipp-mthd" id="ajaxCartItems{$key}">
				<h5 class="item-title rb_medium font12 cm-font uppercase">{$items.itemName|unescape}</h5>
				<ul id="ajaxShippingMethods" class="">
				{if $items.methods|@count|default:0>0}
					{foreach $items.methods as $method}
						<li class="clearfix slip padL20 shippingMthd rb_light font12">
                                                    
                                                    
						{form->radio
						name="shippingMethod_"|cat:$key
						options=$method.methodID|cat:"->"|cat:$method.methodName
						class="shippingMethodSelect"
						value=$items.shippingMethodID
						ref=$key}
						{$method.shippingCharge|price:'Full':$cartData.currencyID:$cartData.currencyID}
						{if $method.settingsGroupKey !='free_shipping' && $method.settingsGroupParent!=1}
							{if $method.shippingtype=='Free'}
								( Free )
							{/if}
						{/if}
						{if $method.shippingTax|default:0 >0}
							(Tax Inc.)
						{/if}
						</li>
					{/foreach}
					<li>
						{form->validate
						name="shippingMethod_val_"|cat:$key
						validate="shippingMethod_"|cat:$key|cat:"->required"
						validate_event="submit"
						error=$language.lblSelectShippingMethod}
					</li>
				{else}
					<li>
					<div class="warning">{$language.lblNoShippingMethodAvilable}</div>
					</li>

				{/if}
				</ul>
		</li>
		{/foreach}
			
	{else}
		<li>{$language.lblNoShippingMethodAvilable}</li>
	{/if}
</ul>
{form->close}
{form->validate_script form="formCheckoutShippingMethod"}*}
