{* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {capture name=path}{l s='Your addresses'}{/capture}

{l s='Your addresses'}

{if isset($id_address) && (isset($smarty.post.alias) || isset($address->alias))} {l s='Modify address'} {if isset($smarty.post.alias)} "{$smarty.post.alias}" {else} {if isset($address->alias)}"{$address->alias|escape:'html':'UTF-8'}"{/if} {/if} {else} {l s='To add a new address, please fill out the form below.'} {/if}

{include file="$tpl_dir./errors.tpl"}

*{l s='Required field'}

{assign var="stateExist" value=false} {assign var="postCodeExist" value=false} {assign var="dniExist" value=false} {assign var="homePhoneExist" value=false} {assign var="mobilePhoneExist" value=false} {assign var="atLeastOneExists" value=false} {foreach from=$ordered_adr_fields item=field_name} {if $field_name eq 'company'}
{/if} {if $field_name eq 'vat_number'}
{/if} {if $field_name eq 'dni'} {assign var="dniExist" value=true}
{l s='DNI / NIF / NIE'}
{/if} {if $field_name eq 'firstname'}
{/if} {if $field_name eq 'lastname'}
{/if} {if $field_name eq 'address1'}
{/if} {if $field_name eq 'address2'}
{/if} {if $field_name eq 'postcode'} {assign var="postCodeExist" value=true}
{/if} {if $field_name eq 'city'}
{* if customer hasn't update his layout address, country has to be verified but it's deprecated *} {/if} {if $field_name eq 'Country:name' || $field_name eq 'country'}
{/if} {if $field_name eq 'State:name'} {assign var="stateExist" value=true}
{/if} {if $field_name eq 'phone'} {assign var="homePhoneExist" value=true}
{if isset($one_phone_at_least) && $one_phone_at_least} {assign var="atLeastOneExists" value=true}

** {l s='You must register at least one phone number.'}

{/if}
{/if} {if $field_name eq 'phone_mobile'} {assign var="mobilePhoneExist" value=true}
{/if} {/foreach} {if !$postCodeExist}
{/if} {if !$stateExist}
{/if} {if !$dniExist}
{l s='DNI / NIF / NIE'}
{/if}
{if !$homePhoneExist}
{/if} {if isset($one_phone_at_least) && $one_phone_at_least && !$atLeastOneExists}

{l s='You must register at least one phone number.'}

{/if}
{if !$mobilePhoneExist}
{/if}

{if isset($id_address)}{/if} {if isset($back)}{/if} {if isset($mod)}{/if} {if isset($select_address)}{/if}

{strip} {if isset($smarty.post.id_state) && $smarty.post.id_state} {addJsDef idSelectedState=$smarty.post.id_state|intval} {else if isset($address->id_state) && $address->id_state} {addJsDef idSelectedState=$address->id_state|intval} {else} {addJsDef idSelectedState=false} {/if} {if isset($smarty.post.id_country) && $smarty.post.id_country} {addJsDef idSelectedCountry=$smarty.post.id_country|intval} {else if isset($address->id_country) && $address->id_country} {addJsDef idSelectedCountry=$address->id_country|intval} {else} {addJsDef idSelectedCountry=false} {/if} {if isset($countries)} {addJsDef countries=$countries} {/if} {if isset($vatnumber_ajax_call) && $vatnumber_ajax_call} {addJsDef vatnumber_ajax_call=$vatnumber_ajax_call} {/if} {/strip}