1 {l s='Account'}

{l s='Already registered?'}

» {l s='Click here'}

{l s='New Customer'}

{l s='Instant Checkout'}

{l s='Create your account today and enjoy:'}

  • - {l s='Personalized and secure access'}
  • - {l s='A fast and easy check out process'}
  • - {l s='Separate billing and shipping addresses'}

{$HOOK_CREATE_ACCOUNT_TOP}
{l s='(five characters min.)'}
{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}

{l s='Delivery address'}

{$stateExist = false} {$postCodeExist = false} {$dniExist = false} {foreach from=$dlv_all_fields item=field_name} {if $field_name eq "company" && $b2b_enable}
{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}
{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}
{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" && $b2b_enable}
{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}
{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'}

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