<option value="new"
        data-first-name="" data-last-name=""
        data-address1="" data-address2=""
        data-city="" data-state-code=""
        data-country-code="" data-postal-code=""
        data-phone="">
    ${Resource.msg('msg.add.new.address', 'checkout', null)}
</option>
<isif condition="${pdict.order.shipping[0].shippingAddress}">
    <option class="multi-shipping" disabled>${Resource.msg('msg.shipping.addresses', 'checkout', null)}</option>
    <isloop items="${pdict.order.shipping}" var="aShippingModel">
        <option class="multi-shipping" value="${aShippingModel.UUID}"
                ${!shippingModel.matchingAddressId && aShippingModel.UUID === shippingModel.UUID ? 'selected="selected"' : '' }
        data-first-name="${aShippingModel.shippingAddress.firstName||''}" data-last-name="${aShippingModel.shippingAddress.lastName||''}"
        data-address1="${aShippingModel.shippingAddress.address1||''}" data-address2="${aShippingModel.shippingAddress.address2||''}"
        data-city="${aShippingModel.shippingAddress.city||''}" data-state-code="${aShippingModel.shippingAddress.stateCode||''}"
        data-country-code="${aShippingModel.shippingAddress.countryCode.value||''}" data-postal-code="${aShippingModel.shippingAddress.postalCode}"
        data-phone="${aShippingModel.shippingAddress.phone}" data-is-gift="${aShippingModel.isGift}" data-gift-message="${aShippingModel.giftMessage}"
        >
        <isif condition="${aShippingModel.shippingAddress.firstName
                    && aShippingModel.shippingAddress.lastName
                    && aShippingModel.shippingAddress.address1
                    && aShippingModel.shippingAddress.city
                    && aShippingModel.shippingAddress.stateCode
                    && aShippingModel.shippingAddress.postalCode}"
        >
            ${aShippingModel.shippingAddress.postalCode||''}
            ${aShippingModel.shippingAddress.stateCode||''}
            ${aShippingModel.shippingAddress.city || ''}
            ${aShippingModel.shippingAddress.address1 || ''}
            ${aShippingModel.shippingAddress.address2 || ''}
            ${aShippingModel.shippingAddress.firstName || ''}
            ${aShippingModel.shippingAddress.lastName || ''}
            ${!aShippingModel.selectedShippingMethod.displayName||'-'}
            ${aShippingModel.selectedShippingMethod.displayName||''}
            <iselse/>
            ${Resource.msg('msg.new.address', 'checkout', null)}
        </isif>
        </option>
    </isloop>
</isif>
<isif condition="${pdict.customer.addresses && pdict.customer.addresses.length > 0}">
    <option disabled>${Resource.msg('msg.account.addresses', 'checkout', null)}</option>
    <isloop items="${pdict.customer.addresses}" var="address">
        <option value="${'ab_'+address.ID}"
                ${address.ID==shippingModel.matchingAddressId ? 'selected="selected"' : '' }
        data-first-name="${address.firstName||''}" data-last-name="${address.lastName||''}"
        data-address1="${address.address1||''}" data-address2="${address.address2||''}"
        data-city="${address.city||''}" data-state-code="${address.stateCode||''}"
        data-country-code="${address.countryCode.value||''}" data-postal-code="${address.postalCode||''}"
        data-phone="${address.phone||''}" data-is-gift="${''}" data-gift-message="${''}">
        ${address.ID || ''} - ${address.postalCode||''} ${address.stateCode||''} ${address.city || ''} ${address.address1 || ''} ${address.address2 || ''} ${address.firstName || ''} ${address.lastName || ''}
        </option>
    </isloop>
</isif>


