{* * 2007-2016 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-2016 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} {if !isset($email_create)}{l s='Authentication'}{else} {l s='Authentication'} {$navigationPipe}{l s='Create your account'} {/if} {/capture}

{if !isset($email_create)}{l s='Authentication'}{else}{l s='Create an account'}{/if}

{if isset($back) && preg_match("/^http/", $back)}{assign var='current_step' value='login'}{include file="$tpl_dir./order-steps.tpl"}{/if} {include file="$tpl_dir./errors.tpl"} {assign var='stateExist' value=false} {assign var="postCodeExist" value=false} {assign var="dniExist" value=false} {if !isset($email_create)}

{l s='Create an account'}

{l s='Please enter your email address to create an account.'}

{if isset($back)}{/if}

{l s='Already registered?'}

{l s='Forgot your password?'}

{if isset($back)}{/if}

{if isset($inOrderProcess) && $inOrderProcess && $PS_GUEST_CHECKOUT_ENABLED}

{l s='Instant checkout'}

*{l s='Required field'}

{foreach from=$genders key=k item=gender}
{/foreach}
{* {l s='January'} {l s='February'} {l s='March'} {l s='April'} {l s='May'} {l s='June'} {l s='July'} {l s='August'} {l s='September'} {l s='October'} {l s='November'} {l s='December'} *}
{if isset($newsletter) && $newsletter}
{/if} {if isset($optin) && $optin}
{/if}

{l s='Delivery address'}

{foreach from=$dlv_all_fields item=field_name} {if $field_name eq "company"}
{elseif $field_name eq "vat_number"} {elseif $field_name eq "dni"} {assign var='dniExist' value=true}
{l s='DNI / NIF / NIE'}
{elseif $field_name eq "address1"}
{elseif $field_name eq "address2"}
{elseif $field_name eq "postcode"} {assign var='postCodeExist' value=true}
{elseif $field_name eq "city"}
{elseif $field_name eq "Country:name" || $field_name eq "country"}
{elseif $field_name eq "State:name"} {assign var='stateExist' value=true}
{/if} {/foreach} {if $stateExist eq false}
{/if} {if $postCodeExist eq false}
{/if} {if $dniExist eq false}
{l s='DNI / NIF / NIE'}
{/if}
{assign var=stateExist value=false} {assign var=postCodeExist value=false} {assign var=dniExist value=false}

{l s='Invoice address'}

{foreach from=$inv_all_fields item=field_name} {if $field_name eq "company"}
{elseif $field_name eq "vat_number"} {elseif $field_name eq "dni"} {assign var=dniExist value=true}
{l s='DNI / NIF / NIE'}
{elseif $field_name eq "firstname"}
{elseif $field_name eq "lastname"}
{elseif $field_name eq "address1"}
{elseif $field_name eq "address2"}
{elseif $field_name eq "postcode"} {$postCodeExist = true}
{elseif $field_name eq "city"}
{elseif $field_name eq "country" || $field_name eq "Country:name"}
{elseif $field_name eq "state" || $field_name eq 'State:name'} {$stateExist = true} {/if} {/foreach} {if !$postCodeExist}
{/if} {if !$stateExist}
{/if} {if $dniExist eq false}
{l s='DNI / NIF / NIE'}
{/if}
{if isset($one_phone_at_least) && $one_phone_at_least}

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

{/if}
{$HOOK_CREATE_ACCOUNT_FORM}

*{l s='Required field'}

{/if} {else}
{$HOOK_CREATE_ACCOUNT_TOP} {if $b2b_enable} {/if} {if isset($PS_REGISTRATION_PROCESS_TYPE) && $PS_REGISTRATION_PROCESS_TYPE} {/if} {$HOOK_CREATE_ACCOUNT_FORM}
{if isset($back)}{/if}

*{l s='Required field'}

{/if} {strip} {if isset($smarty.post.id_state) && $smarty.post.id_state} {addJsDef idSelectedState=$smarty.post.id_state|intval} {elseif isset($address->id_state) && $address->id_state} {addJsDef idSelectedState=$address->id_state|intval} {else} {addJsDef idSelectedState=false} {/if} {if isset($smarty.post.id_state_invoice) && isset($smarty.post.id_state_invoice) && $smarty.post.id_state_invoice} {addJsDef idSelectedStateInvoice=$smarty.post.id_state_invoice|intval} {else} {addJsDef idSelectedStateInvoice=false} {/if} {if isset($smarty.post.id_country) && $smarty.post.id_country} {addJsDef idSelectedCountry=$smarty.post.id_country|intval} {elseif isset($address->id_country) && $address->id_country} {addJsDef idSelectedCountry=$address->id_country|intval} {else} {addJsDef idSelectedCountry=false} {/if} {if isset($smarty.post.id_country_invoice) && isset($smarty.post.id_country_invoice) && $smarty.post.id_country_invoice} {addJsDef idSelectedCountryInvoice=$smarty.post.id_country_invoice|intval} {else} {addJsDef idSelectedCountryInvoice=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} {if isset($email_create) && $email_create} {addJsDef email_create=$email_create|boolval} {else} {addJsDef email_create=false} {/if} {/strip}