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

{form->hidden name="currentPage" id="currentPage" value="checkout"}
{if $showWarning|default:''>0 || $shippingMethods|@count|default:0>0}
<ul class="content payment-first">
        
            <h3 class="text-uppercase">{$language.lblShippingMethodinfo}</h3>
     
	{if $shippingMethods|@count|default:0>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 shipp-mthd margin-bottom" id="ajaxCartItems{$key}">
				<h6 class="item-title rb_medium font12 cm-font uppercase">{$items.itemName|unescape}</h6>
				<ul id="ajaxShippingMethods" class="">
				{if $items.methods|@count|default:0>0}
					{foreach $items.methods as $method}
                                                <li class="clearfix slip shippingMthd rb_light font12">
						{form->radio 
						name="shippingMethod_"|cat:$key
                                                id="shippingMethodID_"|cat:$shippingMethodCounter
						options=$method.methodID|cat:"->"|cat:$method.methodName
						class="shippingMethodSelect"
						value=$items.shippingMethodID
                                                checked="checked"
						group_shipping_cost=$group_shipping_cost
						ref=$key}
                                                    <label for="shippingMethodID_{$shippingMethodCounter}" class="custom-label "> 
                                               &nbsp;
						</label>
                                               {if $method.shippingCharge > 0}
						{assign var="shippingCharge" value=$method.shippingCharge}	
						{else}
						{assign var="shippingCharge" value=0}	
						{/if}
						{$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}
						{if $items.free_shipping=='true'}
							<strong>[ {$language.lblFreeShippingPromotion} ]</strong>
						{/if}
						</li>						
						{assign var="shippingMethodCounter" value=$shippingMethodCounter+1}	
					{/foreach}
					{else}
                                            
					<li>
					<div class="warning">{$language.lblNoShippingMethodAvilable}</div>
					</li>
					{/if}
					
					<li>
						{form->validate
						name="shippingMethod_val_"|cat:$key
						validate="shippingMethod_"|cat:$key|cat:"->required"
						validate_event="submit"
						error=$language.lblSelectShippingMethod}
					</li>
				
				</ul>
		</li>
		{/foreach}
			
	{else}
            {if $showWarning|default:''>0}
    <li><div class="warning">{$language.lblNoShippingMethodAvilable}</div></li>
            {/if}
	{/if}
</ul>
           {/if}
{form->close}
{form->validate_script form="formCheckoutShippingMethod"}