{if !empty($shippingstatesList)}
{foreach from=$shippingstatesList item="state"}
{assign var="ID" value=$state.stateID}
<option value={$ID} {if $ID eq $shippingstateID} selected="selected"{/if}>{$state.stateName}</option>
{/foreach}
{/if}