{** * NOTICE OF LICENSE * * This source file is subject to the Software License Agreement * that is bundled with this package in the file LICENSE.txt. * * @author Peter Sliacky (Zelarg) * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) *} {if ("invoice" == $addressType) && isset($addressesList.invoice)} {assign var='addressesCombobox' value=$addressesList.invoice} {elseif ("delivery" == $addressType) && isset($addressesList.delivery)} {assign var='addressesCombobox' value=$addressesList.delivery} {/if} {*otherwise, addressCombobox won't be set and we won't continue*} {if isset($addressesCombobox) && $addressesCombobox|@count > 0} {assign var='hideAddressesSelection' value=($addressesCombobox|@count == 1 && (("invoice" == $addressType && array_key_exists($idAddressInvoice, $addressesCombobox)) || ("delivery" == $addressType && array_key_exists($idAddressDelivery, $addressesCombobox))))}
{/if}