{if $shipping_hidden == true}
{form type=radio class=autosubmit name=selected_shipping value=$shipping_code checked=true params='onClick="this.form.submit();"'} {$shipping_name} {if $shipping_price.formated} ({$shipping_price.formated}) {/if} {if $shipping_icon} {img img=$shipping_icon type=w_media_shipping alt=$shipping_name} {/if} {if $shipping_desc}

{$shipping_desc}

{/if}
{else} {if $shipping_code == $shipping_selected}
{form type=radio class=autosubmit name=selected_shipping value=$shipping_code checked=true} {$shipping_name} {if $shipping_price.formated} ({$shipping_price.formated}) {/if} {if $shipping_icon} {img img=$shipping_icon type=w_media_shipping alt=$shipping_name} {/if} {if $shipping_desc}

{$shipping_desc}

{/if}
{else}
{form type=radio class=autosubmit name=selected_shipping value=$shipping_code params='onClick="this.form.submit();"'} {$shipping_name} {if $shipping_price.formated} ({$shipping_price.formated}) {/if} {if $shipping_icon} {img img=$shipping_icon type=w_media_shipping alt=$shipping_name} {/if} {if $shipping_desc}{/if}
{/if} {/if}