{form->start name="formCheckoutShippingMethod" method="post" action="" formType="ajax_form"}
<ul class="content">
	{if $shippingMethods|@count>0}
                {assign var="shippingMethodCounter" value="1"}
		{foreach $shippingMethods as $items key="key"}
		{if $group_shipping_cost=='Yes'}	
				{assign var="key" value=$items['businessID']} 
			{/if}
			<li class="clearfix ajaxCartItems" id="ajaxCartItems{$key}">
				<br><b>{$items.itemName}</b><br><br>
				<ul id="ajaxShippingMethods" class="">
				{if $items.methods|@count|default:0>0}
					{foreach $items.methods as $method name="k"}
                                                {assign var="methodName" value="{$method.methodName}"}
                                                {assign var="showShippingFee" value="Yes"}
                                                {if $items.free_shipping=='true'}
                                                    {assign var="methodName" value="{$language.lblFreeShippingPromotion}"}
                                                    {assign var="showShippingFee" value="No"}
                                                {/if}
						<li class="clearfix">                                                    
                                               {if $smarty.foreach.k.iteration eq 1}      
						{form->radio 
                                                id="shippingMethodID_"|cat:$shippingMethodCounter
						name="shippingMethod_"|cat:$key
						options=$method.methodID|cat:"->"|cat:$methodName
						class="shippingMethodSelect customradio"
						value=$items.shippingMethodID
                                                group_shipping_cost=$group_shipping_cost
						ref=$key checked="checked"}
                                                {else}
                                                    {form->radio 
						name="shippingMethod_"|cat:$key
                                                id="shippingMethodID_"|cat:$shippingMethodCounter
						options=$method.methodID|cat:"->"|cat:$methodName
						class="shippingMethodSelect customradio"
						value=$items.shippingMethodID
						group_shipping_cost=$group_shipping_cost
						ref=$key}
                                                    
                                                {/if}
                                                {if $showShippingFee|default:''=='Yes'}
                                                    {$method.shippingCharge|price:'Full':$cartData.currencyID:$cartData.currencyID}
                                                {/if}
						{if $method.settingsGroupKey !='free_shipping' && $method.settingsGroupParent!=1}
							{if $method.shippingtype=='Free'}
								( Free )
							{/if}	
						{/if}
						{if $method.shippingTax|default:'' >0}
							(Tax Inc.)
						{/if}
                                                {*{if $items.free_shipping=='true'}
							<strong>[ {$language.lblFreeShippingPromotion} ]</strong>
						{/if}*}
						</li>
                                                {assign var="shippingMethodCounter" value=$shippingMethodCounter+1}	
					{/foreach}
					{*<li>
						{form->validate 
						name="shippingMethod_"|cat:$key 
						validate="shippingMethod_"|cat:$key|cat:"->required" 
						error=$language.lblSelectShippingMethod
						}
					</li>*}
				{else}
					<li>
					{$language.lblNoShippingMethodAvilable}
					</li>
					{*<li>
						{form->validate 
						name="shippingMethod_"|cat:$key 
						validate="shippingMethod_"|cat:$key|cat:"->required" 
						error=$language.lblNoShippingMethodAvilable
						}
					</li>*}
				{/if}
				</ul>
		</li>	
		{/foreach}	
		
		<li class="clearfix">
			<div class="column flt-right wid313" >
			{form->button name="submitCheckoutShippingMethod" 
			value=$language.lblProceedToTheNext 
			class="button03 curve-3 submitCheckoutShippingMethod"}
			
			</div>
		</li>
	{else}
		<li>{$language.lblNoShippingMethodAvilable}</li>
	{/if}
</ul>	
{form->close}
{form->validate_script form="formCheckoutShippingMethod"}