Jump to content

Need help! "Register" button appears 2 times!


richard2039

Recommended Posts

Hi,

 

I don't know if someone can help me?  :unsure:

 

When I want to create an account on my website, on the personal information page, I can see the "Register" button 2 times (cf enclosed image).

 

I must have done something wrong the the TPL themes/default-bootstrap/authentication.tpl

 

Here is the code below, can someone find the mistake???

 

Thanks in advance if you can help....  :rolleyes:

 

{capture name=path}

                {if !isset($email_create)}{l s='Authentication'}{else}

                               <a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Authentication'}">{l s='Authentication'}</a>

                               <span class="navigation-pipe">{$navigationPipe}</span>{l s='Create your account'}

                {/if}

{/capture}

<h1 class="page-heading">{if !isset($email_create)}{l s='Authentication'}{else}{l s='Create an account'}{/if}</h1>

{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)}

                <!--{if isset($authentification_error)}

                <div class="alert alert-danger">

                               {if {$authentification_error|@count} == 1}

                                               <p>{l s='There\'s at least one error'} :</p>

                                               {else}

                                               <p>{l s='There are %s errors' sprintf=[$account_error|@count]} :</p>

                               {/if}

                               <ol>

                                               {foreach from=$authentification_error item=v}

                                                               <li>{$v}</li>

                                               {/foreach}

                               </ol>

                </div>

                {/if}-->

                <div class="row">

                               <div class="col-xs-12 col-sm-6">

                                               <form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="create-account_form" class="box">

                                                               <h3 class="page-subheading">{l s='Create an account'}</h3>

                                                               <div class="form_content clearfix">

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

                                                                              <div class="alert alert-danger" id="create_account_error" style="display:none"></div>

                                                                              <div class="form-group">

                                                                                              <label for="email_create">{l s='Email address'}</label>

                                                                                              <input type="text" class="is_required validate account_input form-control" data-validate="isEmail" id="email_create" name="email_create" value="{if isset($smarty.post.email_create)}{$smarty.post.email_create|stripslashes}{/if}" />

                                                                              </div>

                                                                              <div class="submit">

                                                                                              {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}

                                                                                              <button class="btn btn-default button button-medium exclusive" type="submit" id="SubmitCreate" name="SubmitCreate">

                                                                                                              <span>

                                                                                                                             <i class="icon-user left"></i>

                                                                                                                             {l s='Create an account'}

                                                                                                              </span>

                                                                                              </button>

                                                                                              <input type="hidden" class="hidden" name="SubmitCreate" value="{l s='Create an account'}" />

                                                                              </div>

                                                               </div>

                                               </form>

                               </div>

                               <div class="col-xs-12 col-sm-6">

                                               <form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="login_form" class="box">

                                                               <h3 class="page-subheading">{l s='Already registered?'}</h3>

                                                               <div class="form_content clearfix">

                                                                              <div class="form-group">

                                                                                              <label for="email">{l s='Email address'}</label>

                                                                                              <input class="is_required validate account_input form-control" data-validate="isEmail" type="text" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|stripslashes}{/if}" />

                                                                              </div>

                                                                              <div class="form-group">

                                                                                              <label for="passwd">{l s='Password'}</label>

                                                                                              <span><input class="is_required validate account_input form-control" type="password" data-validate="isPasswd" id="passwd" name="passwd" value="{if isset($smarty.post.passwd)}{$smarty.post.passwd|stripslashes}{/if}" /></span>

                                                                              </div>

                                                                              <p class="lost_password form-group"><a href="{$link->getPageLink('password')|escape:'html':'UTF-8'}" title="{l s='Recover your forgotten password'}" rel="nofollow">{l s='Forgot your password?'}</a></p>

                                                                              <p class="submit">

                                                                                              {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}

                                                                                              <button type="submit" id="SubmitLogin" name="SubmitLogin" class="button btn btn-default button-medium">

                                                                                                              <span>

                                                                                                                             <i class="icon-lock left"></i>

                                                                                                                             {l s='Sign in'}

                                                                                                              </span>

                                                                                              </button>

                                                                              </p>

                                                               </div>

                                               </form>

                               </div>

                </div>

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

                               <form action="{$link->getPageLink('authentication', true, NULL, "back=$back")|escape:'html':'UTF-8'}" method="post" id="new_account_form" class="std clearfix">

                                               <div class="box">

                                                               <div id="opc_account_form" style="display: block; ">

                                                                              <h3 class="page-heading bottom-indent">{l s='Instant checkout'}</h3>

                                                                              <!-- Account -->

                                                                              <div class="required form-group">

                                                                                              <label for="guest_email">{l s='Email address'} <sup>*</sup></label>

                                                                                              <input type="text" class="is_required validate form-control" data-validate="isEmail" id="guest_email" name="guest_email" value="{if isset($smarty.post.guest_email)}{$smarty.post.guest_email}{/if}" />

                                                                              </div>

                                                                              <div class="cleafix gender-line">

                                                                                              <label>{l s='Title'}</label>

                                                                                              {foreach from=$genders key=k item=gender}

                                                                                                              <div class="radio-inline">

                                                                                                                             <label for="id_gender{$gender->id}" class="top">

                                                                                                                                             <input type="radio" name="id_gender" id="id_gender{$gender->id}" value="{$gender->id}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id} checked="checked"{/if} />

                                                                                                                                             {$gender->name}

                                                                                                                             </label>

                                                                                                              </div>

                                                                                              {/foreach}

                                                                              </div>

                                                                              <div class="required form-group">

                                                                                              <label for="firstname">{l s='First name'} <sup>*</sup></label>

                                                                                              <input type="text" class="is_required validate form-control" data-validate="isName" id="firstname" name="firstname" value="{if isset($smarty.post.firstname)}{$smarty.post.firstname}{/if}" />

                                                                              </div>

                                                                              <div class="required form-group">

                                                                                              <label for="lastname">{l s='Last name'} <sup>*</sup></label>

                                                                                              <input type="text" class="is_required validate form-control" data-validate="isName" id="lastname" name="lastname" value="{if isset($smarty.post.lastname)}{$smarty.post.lastname}{/if}" />

                                                                              </div>

                                                                              <div class="form-group date-select">

                                                                                              <label>{l s='Date of Birth'}</label>

                                                                                              <div class="row">

                                                                                                              <div class="col-xs-4">

                                                                                                                             <select id="days" name="days" class="form-control">

                                                                                                                                             <option value="">-</option>

                                                                                                                                             {foreach from=$days item=day}

                                                                                                                                                             <option value="{$day}" {if ($sl_day == $day)} selected="selected"{/if}>{$day}  </option>

                                                                                                                                             {/foreach}

                                                                                                                             </select>

                                                                                                                             {*

                                                                                                                                             {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'}

                                                                                                                             *}

                                                                                                              </div>

                                                                                                              <div class="col-xs-4">

                                                                                                                             <select id="months" name="months" class="form-control">

                                                                                                                                             <option value="">-</option>

                                                                                                                                             {foreach from=$months key=k item=month}

                                                                                                                                                             <option value="{$k}" {if ($sl_month == $k)} selected="selected"{/if}>{l s=$month} </option>

                                                                                                                                             {/foreach}

                                                                                                                             </select>

                                                                                                              </div>

                                                                                                              <div class="col-xs-4">

                                                                                                                             <select id="years" name="years" class="form-control">

                                                                                                                                             <option value="">-</option>

                                                                                                                                             {foreach from=$years item=year}

                                                                                                                                                             <option value="{$year}" {if ($sl_year == $year)} selected="selected"{/if}>{$year}  </option>

                                                                                                                                             {/foreach}

                                                                                                                             </select>

                                                                                                              </div>

                                                                                              </div>

                                                                              </div>

                                                                             

                                                                              <h3 class="page-heading bottom-indent top-indent">{l s='Delivery address'}</h3>

                                                                              {foreach from=$dlv_all_fields item=field_name}

                                                                                              {if $field_name eq "company"}

                                                                                                              <div class="form-group">

                                                                                                                             <label for="company">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>

                                                                                                                             <input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" />

                                                                                                              </div>

                                                                                              {elseif $field_name eq "vat_number"}

                                                                                                              <div id="vat_number" style="display:none;">

                                                                                                                             <div class="form-group">

                                                                                                                                             <label for="vat-number">{l s='VAT number'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>

                                                                                                                                             <input id="vat-number" type="text" class="form-control" name="vat_number" value="{if isset($smarty.post.vat_number)}{$smarty.post.vat_number}{/if}" />

                                                                                                                             </div>

                                                                                                              </div>

                                                                                                              {elseif $field_name eq "dni"}

                                                                                                              {assign var='dniExist' value=true}

                                                                                                              <div class="required dni form-group">

                                                                                                                             <label for="dni">{l s='Identification number'} <sup>*</sup></label>

                                                                                                                             <input type="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{/if}" />

                                                                                                                             <span class="form_info">{l s='DNI / NIF / NIE'}</span>

                                                                                                              </div>

                                                                                              {elseif $field_name eq "address1"}

                                                                                                              <div class="required form-group">

                                                                                                                             <label for="address1">{l s='Address'} <sup>*</sup></label>

                                                                                                                             <input type="text" class="form-control" name="address1" id="address1" value="{if isset($smarty.post.address1)}{$smarty.post.address1}{/if}" />

                                                                                                              </div>

                                                                                              {elseif $field_name eq "address2"}

                                                                                                              <div class="form-group is_customer_param">

                                                                                                                             <label for="address2">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>

                                                                                                                             <input type="text" class="form-control" name="address2" id="address2" value="{if isset($smarty.post.address2)}{$smarty.post.address2}{/if}" />

                                                                                                              </div>

                                                                                              {elseif $field_name eq "postcode"}

                                                                                                              {assign var='postCodeExist' value=true}

                                                                                                              <div class="required postcode form-group">

                                                                                                                             <label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label>

                                                                                                                             <input type="text" class="form-control" name="postcode" id="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />

                                                                                                              </div>

                                                                                              {elseif $field_name eq "city"}

                                                                                                              <div class="required form-group">

                                                                                                                             <label for="city">{l s='City'} <sup>*</sup></label>

                                                                                                                             <input type="text" class="form-control" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{/if}" />

                                                                                                              </div>

                                                                                                              <!-- if customer hasn't update his layout address, country has to be verified but it's deprecated -->

                                                                                              {elseif $field_name eq "Country:name" || $field_name eq "country"}

                                                                                                              <div class="required select form-group">

                                                                                                                             <label for="id_country">{l s='Country'} <sup>*</sup></label>

                                                                                                                             <select name="id_country" id="id_country" class="form-control">

                                                                                                                                             {foreach from=$countries item=v}

                                                                                                                                                             <option value="{$v.id_country}"{if (isset($smarty.post.id_country) AND  $smarty.post.id_country == $v.id_country) OR (!isset($smarty.post.id_country) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name}</option>

                                                                                                                                             {/foreach}

                                                                                                                             </select>

                                                                                                              </div>

                                                                                              {elseif $field_name eq "State:name"}

                                                                                                              {assign var='stateExist' value=true}

                                                                                                              <div class="required id_state select form-group">

                                                                                                                             <label for="id_state">{l s='State'} <sup>*</sup></label>

                                                                                                                             <select name="id_state" id="id_state" class="form-control">

                                                                                                                                             <option value="">-</option>

                                                                                                                             </select>

                                                                                                              </div>

                                                                                              {/if}

                                                                              {/foreach}

                                                                              {if $stateExist eq false}

                                                                                              <div class="required id_state select unvisible form-group">

                                                                                                              <label for="id_state">{l s='State'} <sup>*</sup></label>

                                                                                                              <select name="id_state" id="id_state" class="form-control">

                                                                                                                             <option value="">-</option>

                                                                                                              </select>

                                                                                              </div>

                                                                              {/if}

                                                                              {if $postCodeExist eq false}

                                                                                              <div class="required postcode unvisible form-group">

                                                                                                              <label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label>

                                                                                                              <input type="text" class="form-control" name="postcode" id="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />

                                                                                              </div>

                                                                              {/if}

                                                                              {if $dniExist eq false}

                                                                                              <div class="required form-group dni">

                                                                                                              <label for="dni">{l s='Identification number'} <sup>*</sup></label>

                                                                                                              <input type="text" class="text form-control" name="dni" id="dni" value="{if isset($smarty.post.dni) && $smarty.post.dni}{$smarty.post.dni}{/if}" />

                                                                                                              <span class="form_info">{l s='DNI / NIF / NIE'}</span>

                                                                                              </div>

                                                                              {/if}

                                                                              <div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">

                                                                                              <label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>

                                                                                              <input type="text" class="form-control" name="phone_mobile" id="phone_mobile" value="{if isset($smarty.post.phone_mobile)}{$smarty.post.phone_mobile}{/if}" />

                                                                              </div>

                                                                              <input type="hidden" name="alias" id="alias" value="{l s='My address'}" />

                                                                              <input type="hidden" name="is_new_customer" id="is_new_customer" value="0" />

                                                                              <div class="checkbox">

                                               <label for="invoice_address">

                                                                                              <input type="checkbox" name="invoice_address" id="invoice_address"{if (isset($smarty.post.invoice_address) && $smarty.post.invoice_address) || (isset($smarty.post.invoice_address) && $smarty.post.invoice_address)} checked="checked"{/if} autocomplete="off"/>

                                                                                              {l s='Please use another address for invoice'}</label>

                                                                              </div>

                                                                              <div id="opc_invoice_address"  class="unvisible">

                                                                                              {assign var=stateExist value=false}

                                                                                              {assign var=postCodeExist value=false}

                                                                                              {assign var=dniExist value=false}

                                                                                              <h3 class="page-subheading top-indent">{l s='Invoice address'}</h3>

                                                                                              {foreach from=$inv_all_fields item=field_name}

                                                                                              {if $field_name eq "company"}

                                                                                              <div class="form-group">

                                                                                                              <label for="company_invoice">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>

                                                                                                              <input type="text" class="text form-control" id="company_invoice" name="company_invoice" value="{if isset($smarty.post.company_invoice) && $smarty.post.company_invoice}{$smarty.post.company_invoice}{/if}" />

                                                                                              </div>

                                                                                              {elseif $field_name eq "vat_number"}

                                                                                              <div id="vat_number_block_invoice" style="display:none;">

                                                                                                              <div class="form-group">

                                                                                                                             <label for="vat_number_invoice">{l s='VAT number'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>

                                                                                                                             <input type="text" class="form-control" id="vat_number_invoice" name="vat_number_invoice" value="{if isset($smarty.post.vat_number_invoice) && $smarty.post.vat_number_invoice}{$smarty.post.vat_number_invoice}{/if}" />

                                                                                                              </div>

                                                                                              </div>

                                                                                              {elseif $field_name eq "dni"}

                                                                                              {assign var=dniExist value=true}

                                                                                              <div class="required form-group dni_invoice">

                                                                                                              <label for="dni">{l s='Identification number'} <sup>*</sup></label>

                                                                                                              <input type="text" class="text form-control" name="dni_invoice" id="dni_invoice" value="{if isset($smarty.post.dni_invoice) && $smarty.post.dni_invoice}{$smarty.post.dni_invoice}{/if}" />

                                                                                                              <span class="form_info">{l s='DNI / NIF / NIE'}</span>

                                                                                              </div>

                                                                                              {elseif $field_name eq "firstname"}

                                                                                              <div class="required form-group">

                                                                                                              <label for="firstname_invoice">{l s='First name'} <sup>*</sup></label>

                                                                                                              <input type="text" class="form-control" id="firstname_invoice" name="firstname_invoice" value="{if isset($smarty.post.firstname_invoice) && $smarty.post.firstname_invoice}{$smarty.post.firstname_invoice}{/if}" />

                                                                                              </div>

                                                                                              {elseif $field_name eq "lastname"}

                                                                                              <div class="required form-group">

                                                                                                              <label for="lastname_invoice">{l s='Last name'} <sup>*</sup></label>

                                                                                                              <input type="text" class="form-control" id="lastname_invoice" name="lastname_invoice" value="{if isset($smarty.post.lastname_invoice) && $smarty.post.lastname_invoice}{$smarty.post.lastname_invoice}{/if}" />

                                                                                              </div>

                                                                                              {elseif $field_name eq "address1"}

                                                                                              <div class="required form-group">

                                                                                                              <label for="address1_invoice">{l s='Address'} <sup>*</sup></label>

                                                                                                              <input type="text" class="form-control" name="address1_invoice" id="address1_invoice" value="{if isset($smarty.post.address1_invoice) && $smarty.post.address1_invoice}{$smarty.post.address1_invoice}{/if}" />

                                                                                              </div>

                                                                                              {elseif $field_name eq "address2"}

                                                                                              <div class="form-group is_customer_param">

                                                                                                              <label for="address2_invoice">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>

                                                                                                              <input type="text" class="form-control" name="address2_invoice" id="address2_invoice" value="{if isset($smarty.post.address2_invoice) && $smarty.post.address2_invoice}{$smarty.post.address2_invoice}{/if}" />

                                                                                              </div>

                                                                                              {elseif $field_name eq "postcode"}

                                                                                              {$postCodeExist = true}

                                                                                              <div class="required postcode_invoice form-group">

                                                                                                              <label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>

                                                                                                              <input type="text" class="form-control" name="postcode_invoice" id="postcode_invoice" value="{if isset($smarty.post.postcode_invoice) && $smarty.post.postcode_invoice}{$smarty.post.postcode_invoice}{/if}" onkeyup="$('#postcode_invoice').val($('#postcode_invoice').val().toUpperCase());" />

                                                                                              </div>

                                                                                              {elseif $field_name eq "city"}

                                                                                              <div class="required form-group">

                                                                                                              <label for="city_invoice">{l s='City'} <sup>*</sup></label>

                                                                                                              <input type="text" class="form-control" name="city_invoice" id="city_invoice" value="{if isset($smarty.post.city_invoice) && $smarty.post.city_invoice}{$smarty.post.city_invoice}{/if}" />

                                                                                              </div>

                                                                                              {elseif $field_name eq "country" || $field_name eq "Country:name"}

                                                                                              <div class="required form-group">

                                                                                                              <label for="id_country_invoice">{l s='Country'} <sup>*</sup></label>

                                                                                                              <select name="id_country_invoice" id="id_country_invoice" class="form-control">

                                                                                                                             <option value="">-</option>

                                                                                                                             {foreach from=$countries item=v}

                                                                                                                             <option value="{$v.id_country}"{if (isset($smarty.post.id_country_invoice) && $smarty.post.id_country_invoice == $v.id_country) OR (!isset($smarty.post.id_country_invoice) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>

                                                                                                                             {/foreach}

                                                                                                              </select>

                                                                                              </div>

                                                                                              {elseif $field_name eq "state" || $field_name eq 'State:name'}

                                                                                              {$stateExist = true}

                                                                                              <div class="required id_state_invoice form-group" style="display:none;">

                                                                                                              <label for="id_state_invoice">{l s='State'} <sup>*</sup></label>

                                                                                                              <select name="id_state_invoice" id="id_state_invoice" class="form-control">

                                                                                                                             <option value="">-</option>

                                                                                                              </select>

                                                                                              </div>

                                                                                              {/if}

                                                                                              {/foreach}

                                                                                              {if !$postCodeExist}

                                                                                              <div class="required postcode_invoice form-group unvisible">

                                                                                                              <label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>

                                                                                                              <input type="text" class="form-control" name="postcode_invoice" id="postcode_invoice" value="{if isset($smarty.post.postcode_invoice) && $smarty.post.postcode_invoice}{$smarty.post.postcode_invoice}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />

                                                                                              </div>

                                                                                              {/if}

                                                                                              {if !$stateExist}

                                                                                              <div class="required id_state_invoice form-group unvisible">

                                                                                                              <label for="id_state_invoice">{l s='State'} <sup>*</sup></label>

                                                                                                              <select name="id_state_invoice" id="id_state_invoice" class="form-control">

                                                                                                                             <option value="">-</option>

                                                                                                              </select>

                                                                                              </div>

                                                                                              {/if}

                                                                                              {if $dniExist eq false}

                                                                                                              <div class="required form-group dni_invoice">

                                                                                                                             <label for="dni">{l s='Identification number'} <sup>*</sup></label>

                                                                                                                             <input type="text" class="text form-control" name="dni_invoice" id="dni_invoice" value="{if isset($smarty.post.dni_invoice) && $smarty.post.dni_invoice}{$smarty.post.dni_invoice}{/if}" />

                                                                                                                             <span class="form_info">{l s='DNI / NIF / NIE'}</span>

                                                                                                              </div>

                                                                                              {/if}

                                                                                              <div class="form-group is_customer_param">

                                                                                                              <label for="other_invoice">{l s='Additional information'}</label>

                                                                                                              <textarea class="form-control" name="other_invoice" id="other_invoice" cols="26" rows="3"></textarea>

                                                                                              </div>

                                                                                              {if isset($one_phone_at_least) && $one_phone_at_least}

                                                                                                              <p class="inline-infos required is_customer_param">{l s='You must register at least one phone number.'}</p>

                                                                                              {/if}

                                                                                              <div class="form-group is_customer_param">

                                                                                                              <label for="phone_invoice">{l s='Home phone'}</label>

                                                                                                              <input type="text" class="form-control" name="phone_invoice" id="phone_invoice" value="{if isset($smarty.post.phone_invoice) && $smarty.post.phone_invoice}{$smarty.post.phone_invoice}{/if}" />

                                                                                              </div>

                                                                                              <div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">

                                                                                                              <label for="phone_mobile_invoice">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>

                                                                                                              <input type="text" class="form-control" name="phone_mobile_invoice" id="phone_mobile_invoice" value="{if isset($smarty.post.phone_mobile_invoice) && $smarty.post.phone_mobile_invoice}{$smarty.post.phone_mobile_invoice}{/if}" />

                                                                                              </div>

                                                                                              <input type="hidden" name="alias_invoice" id="alias_invoice" value="{l s='My Invoice address'}" />

                                                                              </div>

                                                                              <!-- END Account -->

                                                               </div>

                                                               {$HOOK_CREATE_ACCOUNT_FORM}

                                               </div>

                                               <p class="cart_navigation required submit clearfix">

                                                               <span><sup>*</sup>{l s='Required field'}</span>

                                                               <input type="hidden" name="display_guest_checkout" value="1" />

                                                               <button type="submit" class="button btn btn-default button-medium" name="submitGuestAccount" id="submitGuestAccount">

                                                                              <span>

                                                                                              {l s='Proceed to checkout'}

                                                                                              <i class="icon-chevron-right right"></i>

                                                                              </span>

                                                               </button>

                                               </p>

                               </form>

                {/if}

{else}

                <!--{if isset($account_error)}

                <div class="error">

                               {if {$account_error|@count} == 1}

                                               <p>{l s='There\'s at least one error'} :</p>

                                               {else}

                                               <p>{l s='There are %s errors' sprintf=[$account_error|@count]} :</p>

                               {/if}

                               <ol>

                                               {foreach from=$account_error item=v}

                                                               <li>{$v}</li>

                                               {/foreach}

                               </ol>

                </div>

                {/if}-->

                <form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="account-creation_form" class="std box">

                               {$HOOK_CREATE_ACCOUNT_TOP}

                               <div class="account_creation">

                                               <h3 class="page-subheading">{l s='Your personal information'}</h3>

                                               <div class="clearfix">

                                                               <label>{l s='Title'}</label>

                                                               <br />

                                                               {foreach from=$genders key=k item=gender}

                                                                              <div class="radio-inline">

                                                                                              <label for="id_gender{$gender->id}" class="top">

                                                                                                              <input type="radio" name="id_gender" id="id_gender{$gender->id}" value="{$gender->id}" {if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id}checked="checked"{/if} />

                                                                                              {$gender->name}

                                                                                              </label>

                                                                              </div>

                                                               {/foreach}

                                               </div>

                                               <div class="required form-group">

                                                               <label for="customer_firstname">{l s='First name'} <sup>*</sup></label>

                                                               <input onkeyup="$('#firstname').val(this.value);" type="text" class="is_required validate form-control" data-validate="isName" id="customer_firstname" name="customer_firstname" value="{if isset($smarty.post.customer_firstname)}{$smarty.post.customer_firstname}{/if}" />

                                               </div>

                                               <div class="required form-group">

                                                               <label for="customer_lastname">{l s='Last name'} <sup>*</sup></label>

                                                               <input onkeyup="$('#lastname').val(this.value);" type="text" class="is_required validate form-control" data-validate="isName" id="customer_lastname" name="customer_lastname" value="{if isset($smarty.post.customer_lastname)}{$smarty.post.customer_lastname}{/if}" />

                                               </div>

                                               <div class="required form-group">

                                                               <label for="email">{l s='Email'} <sup>*</sup></label>

                                                               <input type="text" class="is_required validate form-control" data-validate="isEmail" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email}{/if}" />

                                               </div>

                                               <div class="required password form-group">

                                                               <label for="passwd">{l s='Password'} <sup>*</sup></label>

                                                               <input type="password" class="is_required validate form-control" data-validate="isPasswd" name="passwd" id="passwd" />

                                                               <span class="form_info">{l s='(Five characters minimum)'}</span>

                                               </div>

                                               <div class="form-group">

                                                               <label>{l s='Date of Birth'}</label>

                                                               <div class="row">

                                                                               <div class="col-xs-4">

                                                                                              <select id="days" name="days" class="form-control">

                                                                                                              <option value="">-</option>

                                                                                                              {foreach from=$days item=day}

                                                                                                                             <option value="{$day}" {if ($sl_day == $day)} selected="selected"{/if}>{$day}  </option>

                                                                                                              {/foreach}

                                                                                              </select>

                                                                                              {*

                                                                                                              {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'}

                                                                                              *}

                                                                              </div>

                                                                              <div class="col-xs-4">

                                                                                              <select id="months" name="months" class="form-control">

                                                                                                              <option value="">-</option>

                                                                                                              {foreach from=$months key=k item=month}

                                                                                                                              <option value="{$k}" {if ($sl_month == $k)} selected="selected"{/if}>{l s=$month} </option>

                                                                                                              {/foreach}

                                                                                              </select>

                                                                              </div>

                                                                              <div class="col-xs-4">

                                                                                              <select id="years" name="years" class="form-control">

                                                                                                              <option value="">-</option>

                                                                                                              {foreach from=$years item=year}

                                                                                                                             <option value="{$year}" {if ($sl_year == $year)} selected="selected"{/if}>{$year}  </option>

                                                                                                              {/foreach}

                                                                                              </select>

                                                                              </div>

                                                               </div>

                                               </div>

                                              

                                                               </div>

                                               {/if}

                               </div>

                               {if $b2b_enable}

                                               <div class="account_creation">

                                                               <h3 class="page-subheading">{l s='Your company information'}</h3>

                                                               <p class="form-group">

                                                                              <label for="">{l s='Company'}</label>

                                                                              <input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" />

                                                               </p>

                                                               <p class="form-group">

                                                                              <label for="siret">{l s='SIRET'}</label>

                                                                              <input type="text" class="form-control" id="siret" name="siret" value="{if isset($smarty.post.siret)}{$smarty.post.siret}{/if}" />

                                                               </p>

                                                               <p class="form-group">

                                                                              <label for="ape">{l s='APE'}</label>

                                                                              <input type="text" class="form-control" id="ape" name="ape" value="{if isset($smarty.post.ape)}{$smarty.post.ape}{/if}" />

                                                               </p>

                                                               <p class="form-group">

                                                                              <label for="website">{l s='Website'}</label>

                                                                              <input type="text" class="form-control" id="website" name="website" value="{if isset($smarty.post.website)}{$smarty.post.website}{/if}" />

                                                               </p>

                                               </div>

                               {/if}

                               {if isset($PS_REGISTRATION_PROCESS_TYPE) && $PS_REGISTRATION_PROCESS_TYPE}

                                               <div class="account_creation">

                                                               <h3 class="page-subheading">{l s='Your address'}</h3>

                                                               {foreach from=$dlv_all_fields item=field_name}

                                                                              {if $field_name eq "company"}

                                                                                              {if !$b2b_enable}

                                                                                                              <p class="form-group">

                                                                                                                             <label for="company">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>

                                                                                                                             <input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" />

                                                                                                              </p>

                                                                                              {/if}

                                                                              {elseif $field_name eq "vat_number"}

                                                                                              <div id="vat_number" style="display:none;">

                                                                                                             <p class="form-group">

                                                                                                                             <label for="vat_number">{l s='VAT number'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>

                                                                                                                             <input type="text" class="form-control" name="vat_number" value="{if isset($smarty.post.vat_number)}{$smarty.post.vat_number}{/if}" />

                                                                                                              </p>

                                                                                              </div>

                                                                              {elseif $field_name eq "firstname"}

                                                                                              <p class="required form-group">

                                                                                                              <label for="firstname">{l s='First name'} <sup>*</sup></label>

                                                                                                              <input type="text" class="form-control" id="firstname" name="firstname" value="{if isset($smarty.post.firstname)}{$smarty.post.firstname}{/if}" />

                                                                                              </p>

                                                                              {elseif $field_name eq "lastname"}

                                                                                              <p class="required form-group">

                                                                                                              <label for="lastname">{l s='Last name'} <sup>*</sup></label>

                                                                                                              <input type="text" class="form-control" id="lastname" name="lastname" value="{if isset($smarty.post.lastname)}{$smarty.post.lastname}{/if}" />

                                                                                              </p>

                                                                              {elseif $field_name eq "address1"}

                                                                                              <p class="required form-group">

                                                                                                              <label for="address1">{l s='Address'} <sup>*</sup></label>

                                                                                                              <input type="text" class="form-control" name="address1" id="address1" value="{if isset($smarty.post.address1)}{$smarty.post.address1}{/if}" />

                                                                                                              <span class="inline-infos">{l s='Street address, P.O. Box, Company name, etc.'}</span>

                                                                                              </p>

                                                                              {elseif $field_name eq "address2"}

                                                                                              <p class="form-group is_customer_param">

                                                                                                              <label for="address2">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>

                                                                                                              <input type="text" class="form-control" name="address2" id="address2" value="{if isset($smarty.post.address2)}{$smarty.post.address2}{/if}" />

                                                                                                              <span class="inline-infos">{l s='Apartment, suite, unit, building, floor, etc...'}</span>

                                                                                              </p>

                                                                              {elseif $field_name eq "postcode"}

                                                                                              {assign var='postCodeExist' value=true}

                                                                                              <p class="required postcode form-group">

                                                                                                              <label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label>

                                                                                                              <input type="text" class="form-control" name="postcode" id="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />

                                                                                              </p>

                                                                              {elseif $field_name eq "city"}

                                                                                              <p class="required form-group">

                                                                                                              <label for="city">{l s='City'} <sup>*</sup></label>

                                                                                                              <input type="text" class="form-control" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{/if}" />

                                                                                              </p>

                                                                                              <!-- if customer hasn't update his layout address, country has to be verified but it's deprecated -->

                                                                              {elseif $field_name eq "Country:name" || $field_name eq "country"}

                                                                                              <p class="required select form-group">

                                                                                                              <label for="id_country">{l s='Country'} <sup>*</sup></label>

                                                                                                              <select name="id_country" id="id_country" class="form-control">

                                                                                                                             <option value="">-</option>

                                                                                                                             {foreach from=$countries item=v}

                                                                                                                             <option value="{$v.id_country}"{if (isset($smarty.post.id_country) AND $smarty.post.id_country == $v.id_country) OR (!isset($smarty.post.id_country) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name}</option>

                                                                                                                             {/foreach}

                                                                                                              </select>

                                                                                              </p>

                                                                              {elseif $field_name eq "State:name" || $field_name eq 'state'}

                                                                                              {assign var='stateExist' value=true}

                                                                                              <p class="required id_state select form-group">

                                                                                                              <label for="id_state">{l s='State'} <sup>*</sup></label>

                                                                                                              <select name="id_state" id="id_state" class="form-control">

                                                                                                                             <option value="">-</option>

                                                                                                              </select>

                                                                                              </p>

                                                                              {/if}

                                                               {/foreach}

                                                               {if $postCodeExist eq false}

                                                                              <p class="required postcode form-group unvisible">

                                                                                              <label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label>

                                                                                              <input type="text" class="form-control" name="postcode" id="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />

                                                                              </p>

                                                               {/if}

                                                               {if $stateExist eq false}

                                                                              <p class="required id_state select unvisible form-group">

                                                                                              <label for="id_state">{l s='State'} <sup>*</sup></label>

                                                                                              <select name="id_state" id="id_state" class="form-control">

                                                                                                              <option value="">-</option>

                                                                                              </select>

                                                                              </p>

                                                               {/if}

                                                               <p class="textarea form-group">

                                                                              <label for="other">{l s='Additional information'}</label>

                                                                              <textarea class="form-control" name="other" id="other" cols="26" rows="3">{if isset($smarty.post.other)}{$smarty.post.other}{/if}</textarea>

                                                               </p>

                                                               {if isset($one_phone_at_least) && $one_phone_at_least}

                                                                              <p class="inline-infos">{l s='You must register at least one phone number.'}</p>

                                                               {/if}

                                                               <p class="form-group">

                                                                              <label for="phone">{l s='Home phone'}</label>

                                                                              <input type="text" class="form-control" name="phone" id="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{/if}" />

                                                               </p>

                                                               <p class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">

                                                                              <label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>

                                                                              <input type="text" class="form-control" name="phone_mobile" id="phone_mobile" value="{if isset($smarty.post.phone_mobile)}{$smarty.post.phone_mobile}{/if}" />

                                                               </p>

                                                               <p class="required form-group" id="address_alias">

                                                                              <label for="alias">{l s='Assign an address alias for future reference.'} <sup>*</sup></label>

                                                                              <input type="text" class="form-control" name="alias" id="alias" value="{if isset($smarty.post.alias)}{$smarty.post.alias}{else}{l s='My address'}{/if}" />

                                                               </p>

                                               </div>

                                               <div class="account_creation dni">

                                                               <h3 class="page-subheading">{l s='Tax identification'}</h3>

                                                               <p class="required form-group">

                                                                              <label for="dni">{l s='Identification number'} <sup>*</sup></label>

                                                                              <input type="text" class="form-control" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{/if}" />

                                                                              <span class="form_info">{l s='DNI / NIF / NIE'}</span>

                                                               </p>

                                               </div>

                               {/if}

                               {$HOOK_CREATE_ACCOUNT_FORM}

                               <div class="submit clearfix">

                                               <input type="hidden" name="email_create" value="1" />

                                               <input type="hidden" name="is_new_customer" value="1" />

                                               {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}

                                               <button type="submit" name="submitAccount" id="submitAccount" class="btn btn-default button button-medium">

                                                               <span>{l s='Register'}<i class="icon-chevron-right right"></i></span>

                                               </button>

                                               <p class="pull-right required"><span><sup>*</sup>{l s='Required field'}</span></p>

                               </div>

                </form>

 

{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_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}

{else if 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}

 

post-952121-0-95293000-1426105554_thumb.png

Link to comment
Share on other sites

It seems you didn't completely remove the newsletter code and removed an essential {/if} near the end of the code. Change the following lines:

      {/if}
      </div>
      {if $b2b_enable}

to:

      {if $b2b_enable}

and change the the </form> near the bottom of the file to:

</form>
{/if}

Next time, I suggest you back up the template before editing it, so you can revert your change and try again. ;)

Link to comment
Share on other sites

Thanks a lot for your help and for your advice, I will definitely back up the template next time!!!  :blush:

 

I've done the corrections but the 2nd button is still appearing ...   :(

 

Here is the code, I really don't see where is the mistake, this is soooo frustrating!

I don't want to waste your time but if you see it, I would be so glad if you could let me know...

 

*}

{capture name=path}

                {if !isset($email_create)}{l s='Authentication'}{else}

                                <a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Authentication'}">{l s='Authentication'}</a>

                                <span class="navigation-pipe">{$navigationPipe}</span>{l s='Create your account'}

                {/if}

{/capture}

<h1 class="page-heading">{if !isset($email_create)}{l s='Authentication'}{else}{l s='Create an account'}{/if}</h1>

{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)}

                <!--{if isset($authentification_error)}

                <div class="alert alert-danger">

                                {if {$authentification_error|@count} == 1}

                                                <p>{l s='There\'s at least one error'} :</p>

                                                {else}

                                                <p>{l s='There are %s errors' sprintf=[$account_error|@count]} :</p>

                                {/if}

                                <ol>

                                                {foreach from=$authentification_error item=v}

                                                                <li>{$v}</li>

                                                {/foreach}

                                </ol>

                </div>

                {/if}-->

                <div class="row">

                                <div class="col-xs-12 col-sm-6">

                                                <form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="create-account_form" class="box">

                                                                <h3 class="page-subheading">{l s='Create an account'}</h3>

                                                                <div class="form_content clearfix">

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

                                                                                <div class="alert alert-danger" id="create_account_error" style="display:none"></div>

                                                                                <div class="form-group">

                                                                                                <label for="email_create">{l s='Email address'}</label>

                                                                                                <input type="text" class="is_required validate account_input form-control" data-validate="isEmail" id="email_create" name="email_create" value="{if isset($smarty.post.email_create)}{$smarty.post.email_create|stripslashes}{/if}" />

                                                                                </div>

                                                                                <div class="submit">

                                                                                                {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}

                                                                                                <button class="btn btn-default button button-medium exclusive" type="submit" id="SubmitCreate" name="SubmitCreate">

                                                                                                                <span>

                                                                                                                                <i class="icon-user left"></i>

                                                                                                                                {l s='Create an account'}

                                                                                                                </span>

                                                                                                </button>

                                                                                                <input type="hidden" class="hidden" name="SubmitCreate" value="{l s='Create an account'}" />

                                                                                </div>

                                                                </div>

                                                </form>

                                </div>

                                <div class="col-xs-12 col-sm-6">

                                                <form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="login_form" class="box">

                                                                <h3 class="page-subheading">{l s='Already registered?'}</h3>

                                                                <div class="form_content clearfix">

                                                                                <div class="form-group">

                                                                                                <label for="email">{l s='Email address'}</label>

                                                                                                <input class="is_required validate account_input form-control" data-validate="isEmail" type="text" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|stripslashes}{/if}" />

                                                                                </div>

                                                                                <div class="form-group">

                                                                                                <label for="passwd">{l s='Password'}</label>

                                                                                                <span><input class="is_required validate account_input form-control" type="password" data-validate="isPasswd" id="passwd" name="passwd" value="{if isset($smarty.post.passwd)}{$smarty.post.passwd|stripslashes}{/if}" /></span>

                                                                                </div>

                                                                                <p class="lost_password form-group"><a href="{$link->getPageLink('password')|escape:'html':'UTF-8'}" title="{l s='Recover your forgotten password'}" rel="nofollow">{l s='Forgot your password?'}</a></p>

                                                                                <p class="submit">

                                                                                                {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}

                                                                                                <button type="submit" id="SubmitLogin" name="SubmitLogin" class="button btn btn-default button-medium">

                                                                                                                <span>

                                                                                                                                <i class="icon-lock left"></i>

                                                                                                                                {l s='Sign in'}

                                                                                                                </span>

                                                                                                </button>

                                                                                </p>

                                                                </div>

                                                </form>

                                </div>

                </div>

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

                                <form action="{$link->getPageLink('authentication', true, NULL, "back=$back")|escape:'html':'UTF-8'}" method="post" id="new_account_form" class="std clearfix">

                                                <div class="box">

                                                                <div id="opc_account_form" style="display: block; ">

                                                                                <h3 class="page-heading bottom-indent">{l s='Instant checkout'}</h3>

                                                                                <!-- Account -->

                                                                                <div class="required form-group">

                                                                                                <label for="guest_email">{l s='Email address'} <sup>*</sup></label>

                                                                                                <input type="text" class="is_required validate form-control" data-validate="isEmail" id="guest_email" name="guest_email" value="{if isset($smarty.post.guest_email)}{$smarty.post.guest_email}{/if}" />

                                                                                </div>

                                                                                <div class="cleafix gender-line">

                                                                                                <label>{l s='Title'}</label>

                                                                                                {foreach from=$genders key=k item=gender}

                                                                                                                <div class="radio-inline">

                                                                                                                                <label for="id_gender{$gender->id}" class="top">

                                                                                                                                                <input type="radio" name="id_gender" id="id_gender{$gender->id}" value="{$gender->id}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id} checked="checked"{/if} />

                                                                                                                                                {$gender->name}

                                                                                                                                </label>

                                                                                                                </div>

                                                                                                {/foreach}

                                                                                </div>

                                                                                <div class="required form-group">

                                                                                                <label for="firstname">{l s='First name'} <sup>*</sup></label>

                                                                                                <input type="text" class="is_required validate form-control" data-validate="isName" id="firstname" name="firstname" value="{if isset($smarty.post.firstname)}{$smarty.post.firstname}{/if}" />

                                                                                </div>

                                                                                <div class="required form-group">

                                                                                                <label for="lastname">{l s='Last name'} <sup>*</sup></label>

                                                                                                <input type="text" class="is_required validate form-control" data-validate="isName" id="lastname" name="lastname" value="{if isset($smarty.post.lastname)}{$smarty.post.lastname}{/if}" />

                                                                                </div>

                                                                                <div class="form-group date-select">

                                                                                                <label>{l s='Date of Birth'}</label>

                                                                                                <div class="row">

                                                                                                                <div class="col-xs-4">

                                                                                                                                <select id="days" name="days" class="form-control">

                                                                                                                                                <option value="">-</option>

                                                                                                                                                {foreach from=$days item=day}

                                                                                                                                                                <option value="{$day}" {if ($sl_day == $day)} selected="selected"{/if}>{$day}  </option>

                                                                                                                                                {/foreach}

                                                                                                                                </select>

                                                                                                                                {*

                                                                                                                                                {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'}

                                                                                                                                *}

                                                                                                                </div>

                                                                                                                <div class="col-xs-4">

                                                                                                                                <select id="months" name="months" class="form-control">

                                                                                                                                                <option value="">-</option>

                                                                                                                                                {foreach from=$months key=k item=month}

                                                                                                                                                                <option value="{$k}" {if ($sl_month == $k)} selected="selected"{/if}>{l s=$month} </option>

                                                                                                                                                {/foreach}

                                                                                                                                </select>

                                                                                                                </div>

                                                                                                                <div class="col-xs-4">

                                                                                                                                <select id="years" name="years" class="form-control">

                                                                                                                                                <option value="">-</option>

                                                                                                                                                {foreach from=$years item=year}

                                                                                                                                                                <option value="{$year}" {if ($sl_year == $year)} selected="selected"{/if}>{$year}  </option>

                                                                                                                                                {/foreach}

                                                                                                                                </select>

                                                                                                                </div>

                                                                                                </div>

                                                                                </div>

                                                                               

                                                                                <h3 class="page-heading bottom-indent top-indent">{l s='Delivery address'}</h3>

                                                                                {foreach from=$dlv_all_fields item=field_name}

                                                                                                {if $field_name eq "company"}

                                                                                                                <div class="form-group">

                                                                                                                                <label for="company">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>

                                                                                                                                <input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" />

                                                                                                                </div>

                                                                                                {elseif $field_name eq "vat_number"}

                                                                                                                <div id="vat_number" style="display:none;">

                                                                                                                                <div class="form-group">

                                                                                                                                                <label for="vat-number">{l s='VAT number'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>

                                                                                                                                                <input id="vat-number" type="text" class="form-control" name="vat_number" value="{if isset($smarty.post.vat_number)}{$smarty.post.vat_number}{/if}" />

                                                                                                                                </div>

                                                                                                                </div>

                                                                                                                {elseif $field_name eq "dni"}

                                                                                                                {assign var='dniExist' value=true}

                                                                                                                <div class="required dni form-group">

                                                                                                                                <label for="dni">{l s='Identification number'} <sup>*</sup></label>

                                                                                                                                <input type="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{/if}" />

                                                                                                                                <span class="form_info">{l s='DNI / NIF / NIE'}</span>

                                                                                                                </div>

                                                                                                {elseif $field_name eq "address1"}

                                                                                                                <div class="required form-group">

                                                                                                                                <label for="address1">{l s='Address'} <sup>*</sup></label>

                                                                                                                                <input type="text" class="form-control" name="address1" id="address1" value="{if isset($smarty.post.address1)}{$smarty.post.address1}{/if}" />

                                                                                                                </div>

                                                                                                {elseif $field_name eq "address2"}

                                                                                                                <div class="form-group is_customer_param">

                                                                                                                                <label for="address2">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>

                                                                                                                                <input type="text" class="form-control" name="address2" id="address2" value="{if isset($smarty.post.address2)}{$smarty.post.address2}{/if}" />

                                                                                                                </div>

                                                                                                {elseif $field_name eq "postcode"}

                                                                                                                {assign var='postCodeExist' value=true}

                                                                                                                <div class="required postcode form-group">

                                                                                                                                <label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label>

                                                                                                                                <input type="text" class="form-control" name="postcode" id="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />

                                                                                                                </div>

                                                                                                {elseif $field_name eq "city"}

                                                                                                                <div class="required form-group">

                                                                                                                                <label for="city">{l s='City'} <sup>*</sup></label>

                                                                                                                                <input type="text" class="form-control" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{/if}" />

                                                                                                                </div>

                                                                                                                <!-- if customer hasn't update his layout address, country has to be verified but it's deprecated -->

                                                                                                {elseif $field_name eq "Country:name" || $field_name eq "country"}

                                                                                                                <div class="required select form-group">

                                                                                                                                <label for="id_country">{l s='Country'} <sup>*</sup></label>

                                                                                                                                <select name="id_country" id="id_country" class="form-control">

                                                                                                                                                {foreach from=$countries item=v}

                                                                                                                                                                <option value="{$v.id_country}"{if (isset($smarty.post.id_country) AND  $smarty.post.id_country == $v.id_country) OR (!isset($smarty.post.id_country) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name}</option>

                                                                                                                                                {/foreach}

                                                                                                                                </select>

                                                                                                                </div>

                                                                                                {elseif $field_name eq "State:name"}

                                                                                                                {assign var='stateExist' value=true}

                                                                                                                <div class="required id_state select form-group">

                                                                                                                                <label for="id_state">{l s='State'} <sup>*</sup></label>

                                                                                                                                <select name="id_state" id="id_state" class="form-control">

                                                                                                                                                <option value="">-</option>

                                                                                                                                </select>

                                                                                                                </div>

                                                                                                {/if}

                                                                                {/foreach}

                                                                                {if $stateExist eq false}

                                                                                                <div class="required id_state select unvisible form-group">

                                                                                                                <label for="id_state">{l s='State'} <sup>*</sup></label>

                                                                                                                <select name="id_state" id="id_state" class="form-control">

                                                                                                                                <option value="">-</option>

                                                                                                                </select>

                                                                                                </div>

                                                                                {/if}

                                                                                {if $postCodeExist eq false}

                                                                                                <div class="required postcode unvisible form-group">

                                                                                                                <label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label>

                                                                                                                <input type="text" class="form-control" name="postcode" id="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />

                                                                                                </div>

                                                                                {/if}

                                                                                {if $dniExist eq false}

                                                                                                <div class="required form-group dni">

                                                                                                                <label for="dni">{l s='Identification number'} <sup>*</sup></label>

                                                                                                                <input type="text" class="text form-control" name="dni" id="dni" value="{if isset($smarty.post.dni) && $smarty.post.dni}{$smarty.post.dni}{/if}" />

                                                                                                                <span class="form_info">{l s='DNI / NIF / NIE'}</span>

                                                                                                </div>

                                                                                {/if}

                                                                                <div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">

                                                                                                <label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>

                                                                                                <input type="text" class="form-control" name="phone_mobile" id="phone_mobile" value="{if isset($smarty.post.phone_mobile)}{$smarty.post.phone_mobile}{/if}" />

                                                                                </div>

                                                                                <input type="hidden" name="alias" id="alias" value="{l s='My address'}" />

                                                                                <input type="hidden" name="is_new_customer" id="is_new_customer" value="0" />

                                                                                <div class="checkbox">

                                                <label for="invoice_address">

                                                                                                <input type="checkbox" name="invoice_address" id="invoice_address"{if (isset($smarty.post.invoice_address) && $smarty.post.invoice_address) || (isset($smarty.post.invoice_address) && $smarty.post.invoice_address)} checked="checked"{/if} autocomplete="off"/>

                                                                                                {l s='Please use another address for invoice'}</label>

                                                                                </div>

                                                                                <div id="opc_invoice_address"  class="unvisible">

                                                                                                {assign var=stateExist value=false}

                                                                                                {assign var=postCodeExist value=false}

                                                                                                {assign var=dniExist value=false}

                                                                                                <h3 class="page-subheading top-indent">{l s='Invoice address'}</h3>

                                                                                                {foreach from=$inv_all_fields item=field_name}

                                                                                                {if $field_name eq "company"}

                                                                                                <div class="form-group">

                                                                                                                <label for="company_invoice">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>

                                                                                                                <input type="text" class="text form-control" id="company_invoice" name="company_invoice" value="{if isset($smarty.post.company_invoice) && $smarty.post.company_invoice}{$smarty.post.company_invoice}{/if}" />

                                                                                                </div>

                                                                                                {elseif $field_name eq "vat_number"}

                                                                                                <div id="vat_number_block_invoice" style="display:none;">

                                                                                                                <div class="form-group">

                                                                                                                                <label for="vat_number_invoice">{l s='VAT number'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>

                                                                                                                                <input type="text" class="form-control" id="vat_number_invoice" name="vat_number_invoice" value="{if isset($smarty.post.vat_number_invoice) && $smarty.post.vat_number_invoice}{$smarty.post.vat_number_invoice}{/if}" />

                                                                                                                </div>

                                                                                                </div>

                                                                                                {elseif $field_name eq "dni"}

                                                                                                {assign var=dniExist value=true}

                                                                                                <div class="required form-group dni_invoice">

                                                                                                                <label for="dni">{l s='Identification number'} <sup>*</sup></label>

                                                                                                                <input type="text" class="text form-control" name="dni_invoice" id="dni_invoice" value="{if isset($smarty.post.dni_invoice) && $smarty.post.dni_invoice}{$smarty.post.dni_invoice}{/if}" />

                                                                                                                <span class="form_info">{l s='DNI / NIF / NIE'}</span>

                                                                                                </div>

                                                                                                {elseif $field_name eq "firstname"}

                                                                                                <div class="required form-group">

                                                                                                                <label for="firstname_invoice">{l s='First name'} <sup>*</sup></label>

                                                                                                                <input type="text" class="form-control" id="firstname_invoice" name="firstname_invoice" value="{if isset($smarty.post.firstname_invoice) && $smarty.post.firstname_invoice}{$smarty.post.firstname_invoice}{/if}" />

                                                                                                </div>

                                                                                                {elseif $field_name eq "lastname"}

                                                                                                <div class="required form-group">

                                                                                                                <label for="lastname_invoice">{l s='Last name'} <sup>*</sup></label>

                                                                                                                <input type="text" class="form-control" id="lastname_invoice" name="lastname_invoice" value="{if isset($smarty.post.lastname_invoice) && $smarty.post.lastname_invoice}{$smarty.post.lastname_invoice}{/if}" />

                                                                                                </div>

                                                                                                {elseif $field_name eq "address1"}

                                                                                                <div class="required form-group">

                                                                                                                <label for="address1_invoice">{l s='Address'} <sup>*</sup></label>

                                                                                                                <input type="text" class="form-control" name="address1_invoice" id="address1_invoice" value="{if isset($smarty.post.address1_invoice) && $smarty.post.address1_invoice}{$smarty.post.address1_invoice}{/if}" />

                                                                                                </div>

                                                                                                {elseif $field_name eq "address2"}

                                                                                                <div class="form-group is_customer_param">

                                                                                                                <label for="address2_invoice">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>

                                                                                                                <input type="text" class="form-control" name="address2_invoice" id="address2_invoice" value="{if isset($smarty.post.address2_invoice) && $smarty.post.address2_invoice}{$smarty.post.address2_invoice}{/if}" />

                                                                                                </div>

                                                                                                {elseif $field_name eq "postcode"}

                                                                                                {$postCodeExist = true}

                                                                                                <div class="required postcode_invoice form-group">

                                                                                                                <label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>

                                                                                                                <input type="text" class="form-control" name="postcode_invoice" id="postcode_invoice" value="{if isset($smarty.post.postcode_invoice) && $smarty.post.postcode_invoice}{$smarty.post.postcode_invoice}{/if}" onkeyup="$('#postcode_invoice').val($('#postcode_invoice').val().toUpperCase());" />

                                                                                                </div>

                                                                                                {elseif $field_name eq "city"}

                                                                                                <div class="required form-group">

                                                                                                                <label for="city_invoice">{l s='City'} <sup>*</sup></label>

                                                                                                                <input type="text" class="form-control" name="city_invoice" id="city_invoice" value="{if isset($smarty.post.city_invoice) && $smarty.post.city_invoice}{$smarty.post.city_invoice}{/if}" />

                                                                                                </div>

                                                                                                {elseif $field_name eq "country" || $field_name eq "Country:name"}

                                                                                                <div class="required form-group">

                                                                                                                <label for="id_country_invoice">{l s='Country'} <sup>*</sup></label>

                                                                                                                <select name="id_country_invoice" id="id_country_invoice" class="form-control">

                                                                                                                                <option value="">-</option>

                                                                                                                                {foreach from=$countries item=v}

                                                                                                                                <option value="{$v.id_country}"{if (isset($smarty.post.id_country_invoice) && $smarty.post.id_country_invoice == $v.id_country) OR (!isset($smarty.post.id_country_invoice) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>

                                                                                                                                {/foreach}

                                                                                                                </select>

                                                                                                </div>

                                                                                                {elseif $field_name eq "state" || $field_name eq 'State:name'}

                                                                                                {$stateExist = true}

                                                                                                <div class="required id_state_invoice form-group" style="display:none;">

                                                                                                                <label for="id_state_invoice">{l s='State'} <sup>*</sup></label>

                                                                                                                <select name="id_state_invoice" id="id_state_invoice" class="form-control">

                                                                                                                                <option value="">-</option>

                                                                                                                </select>

                                                                                                </div>

                                                                                                {/if}

                                                                                                {/foreach}

                                                                                                {if !$postCodeExist}

                                                                                                <div class="required postcode_invoice form-group unvisible">

                                                                                                                <label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>

                                                                                                                <input type="text" class="form-control" name="postcode_invoice" id="postcode_invoice" value="{if isset($smarty.post.postcode_invoice) && $smarty.post.postcode_invoice}{$smarty.post.postcode_invoice}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />

                                                                                                </div>

                                                                                                {/if}

                                                                                                {if !$stateExist}

                                                                                                <div class="required id_state_invoice form-group unvisible">

                                                                                                                <label for="id_state_invoice">{l s='State'} <sup>*</sup></label>

                                                                                                                <select name="id_state_invoice" id="id_state_invoice" class="form-control">

                                                                                                                                <option value="">-</option>

                                                                                                                </select>

                                                                                                </div>

                                                                                                {/if}

                                                                                                {if $dniExist eq false}

                                                                                                                <div class="required form-group dni_invoice">

                                                                                                                                <label for="dni">{l s='Identification number'} <sup>*</sup></label>

                                                                                                                                <input type="text" class="text form-control" name="dni_invoice" id="dni_invoice" value="{if isset($smarty.post.dni_invoice) && $smarty.post.dni_invoice}{$smarty.post.dni_invoice}{/if}" />

                                                                                                                                <span class="form_info">{l s='DNI / NIF / NIE'}</span>

                                                                                                                </div>

                                                                                                {/if}

                                                                                                <div class="form-group is_customer_param">

                                                                                                                <label for="other_invoice">{l s='Additional information'}</label>

                                                                                                                <textarea class="form-control" name="other_invoice" id="other_invoice" cols="26" rows="3"></textarea>

                                                                                                </div>

                                                                                                {if isset($one_phone_at_least) && $one_phone_at_least}

                                                                                                                <p class="inline-infos required is_customer_param">{l s='You must register at least one phone number.'}</p>

                                                                                                {/if}

                                                                                                <div class="form-group is_customer_param">

                                                                                                                <label for="phone_invoice">{l s='Home phone'}</label>

                                                                                                                <input type="text" class="form-control" name="phone_invoice" id="phone_invoice" value="{if isset($smarty.post.phone_invoice) && $smarty.post.phone_invoice}{$smarty.post.phone_invoice}{/if}" />

                                                                                                </div>

                                                                                                <div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">

                                                                                                                <label for="phone_mobile_invoice">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>

                                                                                                                <input type="text" class="form-control" name="phone_mobile_invoice" id="phone_mobile_invoice" value="{if isset($smarty.post.phone_mobile_invoice) && $smarty.post.phone_mobile_invoice}{$smarty.post.phone_mobile_invoice}{/if}" />

                                                                                                </div>

                                                                                                <input type="hidden" name="alias_invoice" id="alias_invoice" value="{l s='My Invoice address'}" />

                                                                                </div>

                                                                                <!-- END Account -->

                                                                </div>

                                                                {$HOOK_CREATE_ACCOUNT_FORM}

                                                </div>

                                                <p class="cart_navigation required submit clearfix">

                                                                <span><sup>*</sup>{l s='Required field'}</span>

                                                                <input type="hidden" name="display_guest_checkout" value="1" />

                                                                <button type="submit" class="button btn btn-default button-medium" name="submitGuestAccount" id="submitGuestAccount">

                                                                                <span>

                                                                                                {l s='Proceed to checkout'}

                                                                                                <i class="icon-chevron-right right"></i>

                                                                                </span>

                                                                </button>

                                                </p>

                                </form>

                {/if}

{else}

                <!--{if isset($account_error)}

                <div class="error">

                                {if {$account_error|@count} == 1}

                                                <p>{l s='There\'s at least one error'} :</p>

                                                {else}

                                                <p>{l s='There are %s errors' sprintf=[$account_error|@count]} :</p>

                                {/if}

                                <ol>

                                                {foreach from=$account_error item=v}

                                                                <li>{$v}</li>

                                                {/foreach}

                                </ol>

                </div>

                {/if}-->

                <form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="account-creation_form" class="std box">

                                {$HOOK_CREATE_ACCOUNT_TOP}

                                <div class="account_creation">

                                                <h3 class="page-subheading">{l s='Your personal information'}</h3>

                                                <div class="clearfix">

                                                                <label>{l s='Title'}</label>

                                                                <br />

                                                                {foreach from=$genders key=k item=gender}

                                                                                <div class="radio-inline">

                                                                                                <label for="id_gender{$gender->id}" class="top">

                                                                                                                <input type="radio" name="id_gender" id="id_gender{$gender->id}" value="{$gender->id}" {if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id}checked="checked"{/if} />

                                                                                                {$gender->name}

                                                                                                </label>

                                                                                </div>

                                                                {/foreach}

                                                </div>

                                                <div class="required form-group">

                                                                <label for="customer_firstname">{l s='First name'} <sup>*</sup></label>

                                                                <input onkeyup="$('#firstname').val(this.value);" type="text" class="is_required validate form-control" data-validate="isName" id="customer_firstname" name="customer_firstname" value="{if isset($smarty.post.customer_firstname)}{$smarty.post.customer_firstname}{/if}" />

                                                </div>

                                                <div class="required form-group">

                                                                <label for="customer_lastname">{l s='Last name'} <sup>*</sup></label>

                                                                <input onkeyup="$('#lastname').val(this.value);" type="text" class="is_required validate form-control" data-validate="isName" id="customer_lastname" name="customer_lastname" value="{if isset($smarty.post.customer_lastname)}{$smarty.post.customer_lastname}{/if}" />

                                                </div>

                                                <div class="required form-group">

                                                                <label for="email">{l s='Email'} <sup>*</sup></label>

                                                                <input type="text" class="is_required validate form-control" data-validate="isEmail" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email}{/if}" />

                                                </div>

                                                <div class="required password form-group">

                                                                <label for="passwd">{l s='Password'} <sup>*</sup></label>

                                                                <input type="password" class="is_required validate form-control" data-validate="isPasswd" name="passwd" id="passwd" />

                                                                <span class="form_info">{l s='(Five characters minimum)'}</span>

                                                </div>

                                                <div class="form-group">

                                                                <label>{l s='Date of Birth'}</label>

                                                                <div class="row">

                                                                                <div class="col-xs-4">

                                                                                                <select id="days" name="days" class="form-control">

                                                                                                                <option value="">-</option>

                                                                                                                {foreach from=$days item=day}

                                                                                                                                <option value="{$day}" {if ($sl_day == $day)} selected="selected"{/if}>{$day}  </option>

                                                                                                                {/foreach}

                                                                                                </select>

                                                                                                {*

                                                                                                                {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'}

                                                                                                *}

                                                                                </div>

                                                                                <div class="col-xs-4">

                                                                                                <select id="months" name="months" class="form-control">

                                                                                                                <option value="">-</option>

                                                                                                                {foreach from=$months key=k item=month}

                                                                                                                                <option value="{$k}" {if ($sl_month == $k)} selected="selected"{/if}>{l s=$month} </option>

                                                                                                                {/foreach}

                                                                                                </select>

                                                                                </div>

                                                                                <div class="col-xs-4">

                                                                                                <select id="years" name="years" class="form-control">

                                                                                                                <option value="">-</option>

                                                                                                                {foreach from=$years item=year}

                                                                                                                                <option value="{$year}" {if ($sl_year == $year)} selected="selected"{/if}>{$year}  </option>

                                                                                                                {/foreach}

                                                                                                </select>

                                                                                </div>

                                                                </div>

                                                </div>

                                               

                                                                </div>

                               

                                {if $b2b_enable}

                                                <div class="account_creation">

                                                                <h3 class="page-subheading">{l s='Your company information'}</h3>

                                                                <p class="form-group">

                                                                                <label for="">{l s='Company'}</label>

                                                                                <input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" />

                                                                </p>

                                                                <p class="form-group">

                                                                                <label for="siret">{l s='SIRET'}</label>

                                                                                <input type="text" class="form-control" id="siret" name="siret" value="{if isset($smarty.post.siret)}{$smarty.post.siret}{/if}" />

                                                                </p>

                                                                <p class="form-group">

                                                                                <label for="ape">{l s='APE'}</label>

                                                                                <input type="text" class="form-control" id="ape" name="ape" value="{if isset($smarty.post.ape)}{$smarty.post.ape}{/if}" />

                                                                </p>

                                                                <p class="form-group">

                                                                                <label for="website">{l s='Website'}</label>

                                                                                <input type="text" class="form-control" id="website" name="website" value="{if isset($smarty.post.website)}{$smarty.post.website}{/if}" />

                                                                </p>

                                                </div>

                                {/if}

                                {if isset($PS_REGISTRATION_PROCESS_TYPE) && $PS_REGISTRATION_PROCESS_TYPE}

                                                <div class="account_creation">

                                                                <h3 class="page-subheading">{l s='Your address'}</h3>

                                                                {foreach from=$dlv_all_fields item=field_name}

                                                                                {if $field_name eq "company"}

                                                                                                {if !$b2b_enable}

                                                                                                                <p class="form-group">

                                                                                                                                <label for="company">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>

                                                                                                                                <input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" />

                                                                                                                </p>

                                                                                                {/if}

                                                                                {elseif $field_name eq "vat_number"}

                                                                                                <div id="vat_number" style="display:none;">

                                                                                                                <p class="form-group">

                                                                                                                                <label for="vat_number">{l s='VAT number'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>

                                                                                                                                <input type="text" class="form-control" name="vat_number" value="{if isset($smarty.post.vat_number)}{$smarty.post.vat_number}{/if}" />

                                                                                                                </p>

                                                                                                </div>

                                                                                {elseif $field_name eq "firstname"}

                                                                                                <p class="required form-group">

                                                                                                                <label for="firstname">{l s='First name'} <sup>*</sup></label>

                                                                                                                <input type="text" class="form-control" id="firstname" name="firstname" value="{if isset($smarty.post.firstname)}{$smarty.post.firstname}{/if}" />

                                                                                                </p>

                                                                                {elseif $field_name eq "lastname"}

                                                                                                <p class="required form-group">

                                                                                                                <label for="lastname">{l s='Last name'} <sup>*</sup></label>

                                                                                                                <input type="text" class="form-control" id="lastname" name="lastname" value="{if isset($smarty.post.lastname)}{$smarty.post.lastname}{/if}" />

                                                                                                </p>

                                                                                {elseif $field_name eq "address1"}

                                                                                                <p class="required form-group">

                                                                                                                <label for="address1">{l s='Address'} <sup>*</sup></label>

                                                                                                                <input type="text" class="form-control" name="address1" id="address1" value="{if isset($smarty.post.address1)}{$smarty.post.address1}{/if}" />

                                                                                                                <span class="inline-infos">{l s='Street address, P.O. Box, Company name, etc.'}</span>

                                                                                                </p>

                                                                                {elseif $field_name eq "address2"}

                                                                                                <p class="form-group is_customer_param">

                                                                                                                <label for="address2">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>

                                                                                                                <input type="text" class="form-control" name="address2" id="address2" value="{if isset($smarty.post.address2)}{$smarty.post.address2}{/if}" />

                                                                                                                <span class="inline-infos">{l s='Apartment, suite, unit, building, floor, etc...'}</span>

                                                                                                </p>

                                                                                {elseif $field_name eq "postcode"}

                                                                                                {assign var='postCodeExist' value=true}

                                                                                                <p class="required postcode form-group">

                                                                                                                <label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label>

                                                                                                                <input type="text" class="form-control" name="postcode" id="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />

                                                                                                </p>

                                                                                {elseif $field_name eq "city"}

                                                                                                <p class="required form-group">

                                                                                                                <label for="city">{l s='City'} <sup>*</sup></label>

                                                                                                                <input type="text" class="form-control" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{/if}" />

                                                                                                </p>

                                                                                                <!-- if customer hasn't update his layout address, country has to be verified but it's deprecated -->

                                                                                {elseif $field_name eq "Country:name" || $field_name eq "country"}

                                                                                                <p class="required select form-group">

                                                                                                                <label for="id_country">{l s='Country'} <sup>*</sup></label>

                                                                                                                <select name="id_country" id="id_country" class="form-control">

                                                                                                                                <option value="">-</option>

                                                                                                                                {foreach from=$countries item=v}

                                                                                                                                <option value="{$v.id_country}"{if (isset($smarty.post.id_country) AND $smarty.post.id_country == $v.id_country) OR (!isset($smarty.post.id_country) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name}</option>

                                                                                                                                {/foreach}

                                                                                                                </select>

                                                                                                </p>

                                                                                {elseif $field_name eq "State:name" || $field_name eq 'state'}

                                                                                                {assign var='stateExist' value=true}

                                                                                                <p class="required id_state select form-group">

                                                                                                                <label for="id_state">{l s='State'} <sup>*</sup></label>

                                                                                                                <select name="id_state" id="id_state" class="form-control">

                                                                                                                                <option value="">-</option>

                                                                                                                </select>

                                                                                                </p>

                                                                                {/if}

                                                                {/foreach}

                                                                {if $postCodeExist eq false}

                                                                                <p class="required postcode form-group unvisible">

                                                                                                <label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label>

                                                                                                <input type="text" class="form-control" name="postcode" id="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />

                                                                                </p>

                                                                {/if}

                                                                {if $stateExist eq false}

                                                                                <p class="required id_state select unvisible form-group">

                                                                                                <label for="id_state">{l s='State'} <sup>*</sup></label>

                                                                                                <select name="id_state" id="id_state" class="form-control">

                                                                                                                <option value="">-</option>

                                                                                                </select>

                                                                                </p>

                                                                {/if}

                                                                <p class="textarea form-group">

                                                                                <label for="other">{l s='Additional information'}</label>

                                                                                <textarea class="form-control" name="other" id="other" cols="26" rows="3">{if isset($smarty.post.other)}{$smarty.post.other}{/if}</textarea>

                                                                </p>

                                                                {if isset($one_phone_at_least) && $one_phone_at_least}

                                                                                <p class="inline-infos">{l s='You must register at least one phone number.'}</p>

                                                                {/if}

                                                                <p class="form-group">

                                                                                <label for="phone">{l s='Home phone'}</label>

                                                                                <input type="text" class="form-control" name="phone" id="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{/if}" />

                                                                </p>

                                                                <p class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">

                                                                                <label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>

                                                                                <input type="text" class="form-control" name="phone_mobile" id="phone_mobile" value="{if isset($smarty.post.phone_mobile)}{$smarty.post.phone_mobile}{/if}" />

                                                                </p>

                                                                <p class="required form-group" id="address_alias">

                                                                                <label for="alias">{l s='Assign an address alias for future reference.'} <sup>*</sup></label>

                                                                                <input type="text" class="form-control" name="alias" id="alias" value="{if isset($smarty.post.alias)}{$smarty.post.alias}{else}{l s='My address'}{/if}" />

                                                                </p>

                                                </div>

                                                <div class="account_creation dni">

                                                                <h3 class="page-subheading">{l s='Tax identification'}</h3>

                                                                <p class="required form-group">

                                                                                <label for="dni">{l s='Identification number'} <sup>*</sup></label>

                                                                                <input type="text" class="form-control" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{/if}" />

                                                                                <span class="form_info">{l s='DNI / NIF / NIE'}</span>

                                                                </p>

                                                </div>

                                {/if}

                                {$HOOK_CREATE_ACCOUNT_FORM}

                                <div class="submit clearfix">

                                                <input type="hidden" name="email_create" value="1" />

                                                <input type="hidden" name="is_new_customer" value="1" />

                                                {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}

                                                <button type="submit" name="submitAccount" id="submitAccount" class="btn btn-default button button-medium">

                                                                <span>{l s='Register'}<i class="icon-chevron-right right"></i></span>

                                                </button>

                                                <p class="pull-right required"><span><sup>*</sup>{l s='Required field'}</span></p>

                                </div>

                </form>

                {/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_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}

{else if 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}

Link to comment
Share on other sites

Your code works fine for me. Try clearing your Smarty cache and making sure that "Force compile" is selected on the Advanced Parameters > Performance tab.

 

In case that doesn't work, I've created my own version of authentication.tpl from PrestaShop v1.6.0.14 that comments out the newsletter code:

{*
* 2007-2015 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 [email protected] 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 <[email protected]>
*  @copyright  2007-2015 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}
		<a href="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Authentication'}">{l s='Authentication'}</a>
		<span class="navigation-pipe">{$navigationPipe}</span>{l s='Create your account'}
	{/if}
{/capture}
<h1 class="page-heading">{if !isset($email_create)}{l s='Authentication'}{else}{l s='Create an account'}{/if}</h1>
{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)}
	<!--{if isset($authentification_error)}
	<div class="alert alert-danger">
		{if {$authentification_error|@count} == 1}
			<p>{l s='There\'s at least one error'} :</p>
			{else}
			<p>{l s='There are %s errors' sprintf=[$account_error|@count]} :</p>
		{/if}
		<ol>
			{foreach from=$authentification_error item=v}
				<li>{$v}</li>
			{/foreach}
		</ol>
	</div>
	{/if}-->
	<div class="row">
		<div class="col-xs-12 col-sm-6">
			<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="create-account_form" class="box">
				<h3 class="page-subheading">{l s='Create an account'}</h3>
				<div class="form_content clearfix">
					<p>{l s='Please enter your email address to create an account.'}</p>
					<div class="alert alert-danger" id="create_account_error" style="display:none"></div>
					<div class="form-group">
						<label for="email_create">{l s='Email address'}</label>
						<input type="text" class="is_required validate account_input form-control" data-validate="isEmail" id="email_create" name="email_create" value="{if isset($smarty.post.email_create)}{$smarty.post.email_create|stripslashes}{/if}" />
					</div>
					<div class="submit">
						{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}
						<button class="btn btn-default button button-medium exclusive" type="submit" id="SubmitCreate" name="SubmitCreate">
							<span>
								<i class="icon-user left"></i>
								{l s='Create an account'}
							</span>
						</button>
						<input type="hidden" class="hidden" name="SubmitCreate" value="{l s='Create an account'}" />
					</div>
				</div>
			</form>
		</div>
		<div class="col-xs-12 col-sm-6">
			<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="login_form" class="box">
				<h3 class="page-subheading">{l s='Already registered?'}</h3>
				<div class="form_content clearfix">
					<div class="form-group">
						<label for="email">{l s='Email address'}</label>
						<input class="is_required validate account_input form-control" data-validate="isEmail" type="text" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email|stripslashes}{/if}" />
					</div>
					<div class="form-group">
						<label for="passwd">{l s='Password'}</label>
						<input class="is_required validate account_input form-control" type="password" data-validate="isPasswd" id="passwd" name="passwd" value="{if isset($smarty.post.passwd)}{$smarty.post.passwd|stripslashes}{/if}" />
					</div>
					<p class="lost_password form-group"><a href="{$link->getPageLink('password')|escape:'html':'UTF-8'}" title="{l s='Recover your forgotten password'}" rel="nofollow">{l s='Forgot your password?'}</a></p>
					<p class="submit">
						{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}
						<button type="submit" id="SubmitLogin" name="SubmitLogin" class="button btn btn-default button-medium">
							<span>
								<i class="icon-lock left"></i>
								{l s='Sign in'}
							</span>
						</button>
					</p>
				</div>
			</form>
		</div>
	</div>
	{if isset($inOrderProcess) && $inOrderProcess && $PS_GUEST_CHECKOUT_ENABLED}
		<form action="{$link->getPageLink('authentication', true, NULL, "back=$back")|escape:'html':'UTF-8'}" method="post" id="new_account_form" class="std clearfix">
			<div class="box">
				<div id="opc_account_form" style="display: block; ">
					<h3 class="page-heading bottom-indent">{l s='Instant checkout'}</h3>
					<!-- Account -->
					<div class="required form-group">
						<label for="guest_email">{l s='Email address'} <sup>*</sup></label>
						<input type="text" class="is_required validate form-control" data-validate="isEmail" id="guest_email" name="guest_email" value="{if isset($smarty.post.guest_email)}{$smarty.post.guest_email}{/if}" />
					</div>
					<div class="cleafix gender-line">
						<label>{l s='Title'}</label>
						{foreach from=$genders key=k item=gender}
							<div class="radio-inline">
								<label for="id_gender{$gender->id}" class="top">
									<input type="radio" name="id_gender" id="id_gender{$gender->id}" value="{$gender->id}"{if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id} checked="checked"{/if} />
									{$gender->name}
								</label>
							</div>
						{/foreach}
					</div>
					<div class="required form-group">
						<label for="firstname">{l s='First name'} <sup>*</sup></label>
						<input type="text" class="is_required validate form-control" data-validate="isName" id="firstname" name="firstname" value="{if isset($smarty.post.firstname)}{$smarty.post.firstname}{/if}" />
					</div>
					<div class="required form-group">
						<label for="lastname">{l s='Last name'} <sup>*</sup></label>
						<input type="text" class="is_required validate form-control" data-validate="isName" id="lastname" name="lastname" value="{if isset($smarty.post.lastname)}{$smarty.post.lastname}{/if}" />
					</div>
					<div class="form-group date-select">
						<label>{l s='Date of Birth'}</label>
						<div class="row">
							<div class="col-xs-4">
								<select id="days" name="days" class="form-control">
									<option value="">-</option>
									{foreach from=$days item=day}
										<option value="{$day}" {if ($sl_day == $day)} selected="selected"{/if}>{$day}  </option>
									{/foreach}
								</select>
								{*
									{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'}
								*}
							</div>
							<div class="col-xs-4">
								<select id="months" name="months" class="form-control">
									<option value="">-</option>
									{foreach from=$months key=k item=month}
										<option value="{$k}" {if ($sl_month == $k)} selected="selected"{/if}>{l s=$month} </option>
									{/foreach}
								</select>
							</div>
							<div class="col-xs-4">
								<select id="years" name="years" class="form-control">
									<option value="">-</option>
									{foreach from=$years item=year}
										<option value="{$year}" {if ($sl_year == $year)} selected="selected"{/if}>{$year}  </option>
									{/foreach}
								</select>
							</div>
						</div>
					</div>
{*					{if isset($newsletter) && $newsletter}
						<div class="checkbox">
							<label for="newsletter">
							<input type="checkbox" name="newsletter" id="newsletter" value="1" {if isset($smarty.post.newsletter) && $smarty.post.newsletter == '1'}checked="checked"{/if} />
							{l s='Sign up for our newsletter!'}</label>
						</div>
					{/if}
					{if isset($optin) && $optin}
						<div class="checkbox">
							<label for="optin">
							<input type="checkbox" name="optin" id="optin" value="1" {if isset($smarty.post.optin) && $smarty.post.optin == '1'}checked="checked"{/if} />
							{l s='Receive special offers from our partners!'}</label>
						</div>
					{/if}
*}					<h3 class="page-heading bottom-indent top-indent">{l s='Delivery address'}</h3>
					{foreach from=$dlv_all_fields item=field_name}
						{if $field_name eq "company"}
							<div class="form-group">
								<label for="company">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
								<input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" />
							</div>
						{elseif $field_name eq "vat_number"}
							<div id="vat_number" style="display:none;">
								<div class="form-group">
									<label for="vat-number">{l s='VAT number'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
									<input id="vat-number" type="text" class="form-control" name="vat_number" value="{if isset($smarty.post.vat_number)}{$smarty.post.vat_number}{/if}" />
								</div>
							</div>
							{elseif $field_name eq "dni"}
							{assign var='dniExist' value=true}
							<div class="required dni form-group">
								<label for="dni">{l s='Identification number'} <sup>*</sup></label>
								<input type="text" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{/if}" />
								<span class="form_info">{l s='DNI / NIF / NIE'}</span>
							</div>
						{elseif $field_name eq "address1"}
							<div class="required form-group">
								<label for="address1">{l s='Address'} <sup>*</sup></label>
								<input type="text" class="form-control" name="address1" id="address1" value="{if isset($smarty.post.address1)}{$smarty.post.address1}{/if}" />
							</div>
						{elseif $field_name eq "address2"}
							<div class="form-group is_customer_param">
								<label for="address2">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
								<input type="text" class="form-control" name="address2" id="address2" value="{if isset($smarty.post.address2)}{$smarty.post.address2}{/if}" />
							</div>
						{elseif $field_name eq "postcode"}
							{assign var='postCodeExist' value=true}
							<div class="required postcode form-group">
								<label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label>
								<input type="text" class="form-control" name="postcode" id="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />
							</div>
						{elseif $field_name eq "city"}
							<div class="required form-group">
								<label for="city">{l s='City'} <sup>*</sup></label>
								<input type="text" class="form-control" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{/if}" />
							</div>
							<!-- if customer hasn't update his layout address, country has to be verified but it's deprecated -->
						{elseif $field_name eq "Country:name" || $field_name eq "country"}
							<div class="required select form-group">
								<label for="id_country">{l s='Country'} <sup>*</sup></label>
								<select name="id_country" id="id_country" class="form-control">
									{foreach from=$countries item=v}
										<option value="{$v.id_country}"{if (isset($smarty.post.id_country) AND  $smarty.post.id_country == $v.id_country) OR (!isset($smarty.post.id_country) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name}</option>
									{/foreach}
								</select>
							</div>
						{elseif $field_name eq "State:name"}
							{assign var='stateExist' value=true}
							<div class="required id_state select form-group">
								<label for="id_state">{l s='State'} <sup>*</sup></label>
								<select name="id_state" id="id_state" class="form-control">
									<option value="">-</option>
								</select>
							</div>
						{/if}
					{/foreach}
					{if $stateExist eq false}
						<div class="required id_state select unvisible form-group">
							<label for="id_state">{l s='State'} <sup>*</sup></label>
							<select name="id_state" id="id_state" class="form-control">
								<option value="">-</option>
							</select>
						</div>
					{/if}
					{if $postCodeExist eq false}
						<div class="required postcode unvisible form-group">
							<label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label>
							<input type="text" class="form-control" name="postcode" id="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />
						</div>
					{/if}
					{if $dniExist eq false}
						<div class="required form-group dni">
							<label for="dni">{l s='Identification number'} <sup>*</sup></label>
							<input type="text" class="text form-control" name="dni" id="dni" value="{if isset($smarty.post.dni) && $smarty.post.dni}{$smarty.post.dni}{/if}" />
							<span class="form_info">{l s='DNI / NIF / NIE'}</span>
						</div>
					{/if}
					<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">
						<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>
						<input type="text" class="form-control" name="phone_mobile" id="phone_mobile" value="{if isset($smarty.post.phone_mobile)}{$smarty.post.phone_mobile}{/if}" />
					</div>
					<input type="hidden" name="alias" id="alias" value="{l s='My address'}" />
					<input type="hidden" name="is_new_customer" id="is_new_customer" value="0" />
					<div class="checkbox">
						<label for="invoice_address">
						<input type="checkbox" name="invoice_address" id="invoice_address"{if (isset($smarty.post.invoice_address) && $smarty.post.invoice_address) || (isset($smarty.post.invoice_address) && $smarty.post.invoice_address)} checked="checked"{/if} autocomplete="off"/>
						{l s='Please use another address for invoice'}</label>
					</div>
					<div id="opc_invoice_address"  class="unvisible">
						{assign var=stateExist value=false}
						{assign var=postCodeExist value=false}
						{assign var=dniExist value=false}
						<h3 class="page-subheading top-indent">{l s='Invoice address'}</h3>
						{foreach from=$inv_all_fields item=field_name}
						{if $field_name eq "company"}
						<div class="form-group">
							<label for="company_invoice">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
							<input type="text" class="text form-control" id="company_invoice" name="company_invoice" value="{if isset($smarty.post.company_invoice) && $smarty.post.company_invoice}{$smarty.post.company_invoice}{/if}" />
						</div>
						{elseif $field_name eq "vat_number"}
						<div id="vat_number_block_invoice" style="display:none;">
							<div class="form-group">
								<label for="vat_number_invoice">{l s='VAT number'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
								<input type="text" class="form-control" id="vat_number_invoice" name="vat_number_invoice" value="{if isset($smarty.post.vat_number_invoice) && $smarty.post.vat_number_invoice}{$smarty.post.vat_number_invoice}{/if}" />
							</div>
						</div>
						{elseif $field_name eq "dni"}
						{assign var=dniExist value=true}
						<div class="required form-group dni_invoice">
							<label for="dni">{l s='Identification number'} <sup>*</sup></label>
							<input type="text" class="text form-control" name="dni_invoice" id="dni_invoice" value="{if isset($smarty.post.dni_invoice) && $smarty.post.dni_invoice}{$smarty.post.dni_invoice}{/if}" />
							<span class="form_info">{l s='DNI / NIF / NIE'}</span>
						</div>
						{elseif $field_name eq "firstname"}
						<div class="required form-group">
							<label for="firstname_invoice">{l s='First name'} <sup>*</sup></label>
							<input type="text" class="form-control" id="firstname_invoice" name="firstname_invoice" value="{if isset($smarty.post.firstname_invoice) && $smarty.post.firstname_invoice}{$smarty.post.firstname_invoice}{/if}" />
						</div>
						{elseif $field_name eq "lastname"}
						<div class="required form-group">
							<label for="lastname_invoice">{l s='Last name'} <sup>*</sup></label>
							<input type="text" class="form-control" id="lastname_invoice" name="lastname_invoice" value="{if isset($smarty.post.lastname_invoice) && $smarty.post.lastname_invoice}{$smarty.post.lastname_invoice}{/if}" />
						</div>
						{elseif $field_name eq "address1"}
						<div class="required form-group">
							<label for="address1_invoice">{l s='Address'} <sup>*</sup></label>
							<input type="text" class="form-control" name="address1_invoice" id="address1_invoice" value="{if isset($smarty.post.address1_invoice) && $smarty.post.address1_invoice}{$smarty.post.address1_invoice}{/if}" />
						</div>
						{elseif $field_name eq "address2"}
						<div class="form-group is_customer_param">
							<label for="address2_invoice">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
							<input type="text" class="form-control" name="address2_invoice" id="address2_invoice" value="{if isset($smarty.post.address2_invoice) && $smarty.post.address2_invoice}{$smarty.post.address2_invoice}{/if}" />
						</div>
						{elseif $field_name eq "postcode"}
						{$postCodeExist = true}
						<div class="required postcode_invoice form-group">
							<label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>
							<input type="text" class="form-control" name="postcode_invoice" id="postcode_invoice" value="{if isset($smarty.post.postcode_invoice) && $smarty.post.postcode_invoice}{$smarty.post.postcode_invoice}{/if}" onkeyup="$('#postcode_invoice').val($('#postcode_invoice').val().toUpperCase());" />
						</div>
						{elseif $field_name eq "city"}
						<div class="required form-group">
							<label for="city_invoice">{l s='City'} <sup>*</sup></label>
							<input type="text" class="form-control" name="city_invoice" id="city_invoice" value="{if isset($smarty.post.city_invoice) && $smarty.post.city_invoice}{$smarty.post.city_invoice}{/if}" />
						</div>
						{elseif $field_name eq "country" || $field_name eq "Country:name"}
						<div class="required form-group">
							<label for="id_country_invoice">{l s='Country'} <sup>*</sup></label>
							<select name="id_country_invoice" id="id_country_invoice" class="form-control">
								<option value="">-</option>
								{foreach from=$countries item=v}
								<option value="{$v.id_country}"{if (isset($smarty.post.id_country_invoice) && $smarty.post.id_country_invoice == $v.id_country) OR (!isset($smarty.post.id_country_invoice) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name|escape:'html':'UTF-8'}</option>
								{/foreach}
							</select>
						</div>
						{elseif $field_name eq "state" || $field_name eq 'State:name'}
						{$stateExist = true}
						<div class="required id_state_invoice form-group" style="display:none;">
							<label for="id_state_invoice">{l s='State'} <sup>*</sup></label>
							<select name="id_state_invoice" id="id_state_invoice" class="form-control">
								<option value="">-</option>
							</select>
						</div>
						{/if}
						{/foreach}
						{if !$postCodeExist}
						<div class="required postcode_invoice form-group unvisible">
							<label for="postcode_invoice">{l s='Zip/Postal Code'} <sup>*</sup></label>
							<input type="text" class="form-control" name="postcode_invoice" id="postcode_invoice" value="{if isset($smarty.post.postcode_invoice) && $smarty.post.postcode_invoice}{$smarty.post.postcode_invoice}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />
						</div>
						{/if}
						{if !$stateExist}
						<div class="required id_state_invoice form-group unvisible">
							<label for="id_state_invoice">{l s='State'} <sup>*</sup></label>
							<select name="id_state_invoice" id="id_state_invoice" class="form-control">
								<option value="">-</option>
							</select>
						</div>
						{/if}
						{if $dniExist eq false}
							<div class="required form-group dni_invoice">
								<label for="dni">{l s='Identification number'} <sup>*</sup></label>
								<input type="text" class="text form-control" name="dni_invoice" id="dni_invoice" value="{if isset($smarty.post.dni_invoice) && $smarty.post.dni_invoice}{$smarty.post.dni_invoice}{/if}" />
								<span class="form_info">{l s='DNI / NIF / NIE'}</span>
							</div>
						{/if}
						<div class="form-group is_customer_param">
							<label for="other_invoice">{l s='Additional information'}</label>
							<textarea class="form-control" name="other_invoice" id="other_invoice" cols="26" rows="3"></textarea>
						</div>
						{if isset($one_phone_at_least) && $one_phone_at_least}
							<p class="inline-infos required is_customer_param">{l s='You must register at least one phone number.'}</p>
						{/if}
						<div class="form-group is_customer_param">
							<label for="phone_invoice">{l s='Home phone'}</label>
							<input type="text" class="form-control" name="phone_invoice" id="phone_invoice" value="{if isset($smarty.post.phone_invoice) && $smarty.post.phone_invoice}{$smarty.post.phone_invoice}{/if}" />
						</div>
						<div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">
							<label for="phone_mobile_invoice">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>
							<input type="text" class="form-control" name="phone_mobile_invoice" id="phone_mobile_invoice" value="{if isset($smarty.post.phone_mobile_invoice) && $smarty.post.phone_mobile_invoice}{$smarty.post.phone_mobile_invoice}{/if}" />
						</div>
						<input type="hidden" name="alias_invoice" id="alias_invoice" value="{l s='My Invoice address'}" />
					</div>
					<!-- END Account -->
				</div>
				{$HOOK_CREATE_ACCOUNT_FORM}
			</div>
			<p class="cart_navigation required submit clearfix">
				<span><sup>*</sup>{l s='Required field'}</span>
				<input type="hidden" name="display_guest_checkout" value="1" />
				<button type="submit" class="button btn btn-default button-medium" name="submitGuestAccount" id="submitGuestAccount">
					<span>
						{l s='Proceed to checkout'}
						<i class="icon-chevron-right right"></i>
					</span>
				</button>
			</p>
		</form>
	{/if}
{else}
	<!--{if isset($account_error)}
	<div class="error">
		{if {$account_error|@count} == 1}
			<p>{l s='There\'s at least one error'} :</p>
			{else}
			<p>{l s='There are %s errors' sprintf=[$account_error|@count]} :</p>
		{/if}
		<ol>
			{foreach from=$account_error item=v}
				<li>{$v}</li>
			{/foreach}
		</ol>
	</div>
	{/if}-->
	<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="account-creation_form" class="std box">
		{$HOOK_CREATE_ACCOUNT_TOP}
		<div class="account_creation">
			<h3 class="page-subheading">{l s='Your personal information'}</h3>
			<div class="clearfix">
				<label>{l s='Title'}</label>
				<br />
				{foreach from=$genders key=k item=gender}
					<div class="radio-inline">
						<label for="id_gender{$gender->id}" class="top">
							<input type="radio" name="id_gender" id="id_gender{$gender->id}" value="{$gender->id}" {if isset($smarty.post.id_gender) && $smarty.post.id_gender == $gender->id}checked="checked"{/if} />
						{$gender->name}
						</label>
					</div>
				{/foreach}
			</div>
			<div class="required form-group">
				<label for="customer_firstname">{l s='First name'} <sup>*</sup></label>
				<input onkeyup="$('#firstname').val(this.value);" type="text" class="is_required validate form-control" data-validate="isName" id="customer_firstname" name="customer_firstname" value="{if isset($smarty.post.customer_firstname)}{$smarty.post.customer_firstname}{/if}" />
			</div>
			<div class="required form-group">
				<label for="customer_lastname">{l s='Last name'} <sup>*</sup></label>
				<input onkeyup="$('#lastname').val(this.value);" type="text" class="is_required validate form-control" data-validate="isName" id="customer_lastname" name="customer_lastname" value="{if isset($smarty.post.customer_lastname)}{$smarty.post.customer_lastname}{/if}" />
			</div>
			<div class="required form-group">
				<label for="email">{l s='Email'} <sup>*</sup></label>
				<input type="text" class="is_required validate form-control" data-validate="isEmail" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email}{/if}" />
			</div>
			<div class="required password form-group">
				<label for="passwd">{l s='Password'} <sup>*</sup></label>
				<input type="password" class="is_required validate form-control" data-validate="isPasswd" name="passwd" id="passwd" />
				<span class="form_info">{l s='(Five characters minimum)'}</span>
			</div>
			<div class="form-group">
				<label>{l s='Date of Birth'}</label>
				<div class="row">
					<div class="col-xs-4">
						<select id="days" name="days" class="form-control">
							<option value="">-</option>
							{foreach from=$days item=day}
								<option value="{$day}" {if ($sl_day == $day)} selected="selected"{/if}>{$day}  </option>
							{/foreach}
						</select>
						{*
							{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'}
						*}
					</div>
					<div class="col-xs-4">
						<select id="months" name="months" class="form-control">
							<option value="">-</option>
							{foreach from=$months key=k item=month}
								<option value="{$k}" {if ($sl_month == $k)} selected="selected"{/if}>{l s=$month} </option>
							{/foreach}
						</select>
					</div>
					<div class="col-xs-4">
						<select id="years" name="years" class="form-control">
							<option value="">-</option>
							{foreach from=$years item=year}
								<option value="{$year}" {if ($sl_year == $year)} selected="selected"{/if}>{$year}  </option>
							{/foreach}
						</select>
					</div>
				</div>
			</div>
{*			{if isset($newsletter) && $newsletter}
				<div class="checkbox">
					<input type="checkbox" name="newsletter" id="newsletter" value="1" {if isset($smarty.post.newsletter) AND $smarty.post.newsletter == 1} checked="checked"{/if} />
					<label for="newsletter">{l s='Sign up for our newsletter!'}</label>
					{if array_key_exists('newsletter', $field_required)}
						<sup> *</sup>
					{/if}
				</div>
			{/if}
			{if isset($optin) && $optin}
				<div class="checkbox">
					<input type="checkbox" name="optin" id="optin" value="1" {if isset($smarty.post.optin) AND $smarty.post.optin == 1} checked="checked"{/if} />
					<label for="optin">{l s='Receive special offers from our partners!'}</label>
					{if array_key_exists('optin', $field_required)}
						<sup> *</sup>
					{/if}
				</div>
			{/if}
*}		</div>
		{if $b2b_enable}
			<div class="account_creation">
				<h3 class="page-subheading">{l s='Your company information'}</h3>
				<p class="form-group">
					<label for="">{l s='Company'}</label>
					<input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" />
				</p>
				<p class="form-group">
					<label for="siret">{l s='SIRET'}</label>
					<input type="text" class="form-control" id="siret" name="siret" value="{if isset($smarty.post.siret)}{$smarty.post.siret}{/if}" />
				</p>
				<p class="form-group">
					<label for="ape">{l s='APE'}</label>
					<input type="text" class="form-control" id="ape" name="ape" value="{if isset($smarty.post.ape)}{$smarty.post.ape}{/if}" />
				</p>
				<p class="form-group">
					<label for="website">{l s='Website'}</label>
					<input type="text" class="form-control" id="website" name="website" value="{if isset($smarty.post.website)}{$smarty.post.website}{/if}" />
				</p>
			</div>
		{/if}
		{if isset($PS_REGISTRATION_PROCESS_TYPE) && $PS_REGISTRATION_PROCESS_TYPE}
			<div class="account_creation">
				<h3 class="page-subheading">{l s='Your address'}</h3>
				{foreach from=$dlv_all_fields item=field_name}
					{if $field_name eq "company"}
						{if !$b2b_enable}
							<p class="form-group">
								<label for="company">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
								<input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}" />
							</p>
						{/if}
					{elseif $field_name eq "vat_number"}
						<div id="vat_number" style="display:none;">
							<p class="form-group">
								<label for="vat_number">{l s='VAT number'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
								<input type="text" class="form-control" name="vat_number" value="{if isset($smarty.post.vat_number)}{$smarty.post.vat_number}{/if}" />
							</p>
						</div>
					{elseif $field_name eq "firstname"}
						<p class="required form-group">
							<label for="firstname">{l s='First name'} <sup>*</sup></label>
							<input type="text" class="form-control" id="firstname" name="firstname" value="{if isset($smarty.post.firstname)}{$smarty.post.firstname}{/if}" />
						</p>
					{elseif $field_name eq "lastname"}
						<p class="required form-group">
							<label for="lastname">{l s='Last name'} <sup>*</sup></label>
							<input type="text" class="form-control" id="lastname" name="lastname" value="{if isset($smarty.post.lastname)}{$smarty.post.lastname}{/if}" />
						</p>
					{elseif $field_name eq "address1"}
						<p class="required form-group">
							<label for="address1">{l s='Address'} <sup>*</sup></label>
							<input type="text" class="form-control" name="address1" id="address1" value="{if isset($smarty.post.address1)}{$smarty.post.address1}{/if}" />
							<span class="inline-infos">{l s='Street address, P.O. Box, Company name, etc.'}</span>
						</p>
					{elseif $field_name eq "address2"}
						<p class="form-group is_customer_param">
							<label for="address2">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label>
							<input type="text" class="form-control" name="address2" id="address2" value="{if isset($smarty.post.address2)}{$smarty.post.address2}{/if}" />
							<span class="inline-infos">{l s='Apartment, suite, unit, building, floor, etc...'}</span>
						</p>
					{elseif $field_name eq "postcode"}
						{assign var='postCodeExist' value=true}
						<p class="required postcode form-group">
							<label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label>
							<input type="text" class="form-control" name="postcode" id="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />
						</p>
					{elseif $field_name eq "city"}
						<p class="required form-group">
							<label for="city">{l s='City'} <sup>*</sup></label>
							<input type="text" class="form-control" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{/if}" />
						</p>
						<!-- if customer hasn't update his layout address, country has to be verified but it's deprecated -->
					{elseif $field_name eq "Country:name" || $field_name eq "country"}
						<p class="required select form-group">
							<label for="id_country">{l s='Country'} <sup>*</sup></label>
							<select name="id_country" id="id_country" class="form-control">
								<option value="">-</option>
								{foreach from=$countries item=v}
								<option value="{$v.id_country}"{if (isset($smarty.post.id_country) AND $smarty.post.id_country == $v.id_country) OR (!isset($smarty.post.id_country) && $sl_country == $v.id_country)} selected="selected"{/if}>{$v.name}</option>
								{/foreach}
							</select>
						</p>
					{elseif $field_name eq "State:name" || $field_name eq 'state'}
						{assign var='stateExist' value=true}
						<p class="required id_state select form-group">
							<label for="id_state">{l s='State'} <sup>*</sup></label>
							<select name="id_state" id="id_state" class="form-control">
								<option value="">-</option>
							</select>
						</p>
					{/if}
				{/foreach}
				{if $postCodeExist eq false}
					<p class="required postcode form-group unvisible">
						<label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label>
						<input type="text" class="form-control" name="postcode" id="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />
					</p>
				{/if}
				{if $stateExist eq false}
					<p class="required id_state select unvisible form-group">
						<label for="id_state">{l s='State'} <sup>*</sup></label>
						<select name="id_state" id="id_state" class="form-control">
							<option value="">-</option>
						</select>
					</p>
				{/if}
				<p class="textarea form-group">
					<label for="other">{l s='Additional information'}</label>
					<textarea class="form-control" name="other" id="other" cols="26" rows="3">{if isset($smarty.post.other)}{$smarty.post.other}{/if}</textarea>
				</p>
				{if isset($one_phone_at_least) && $one_phone_at_least}
					<p class="inline-infos">{l s='You must register at least one phone number.'}</p>
				{/if}
				<p class="form-group">
					<label for="phone">{l s='Home phone'}</label>
					<input type="text" class="form-control" name="phone" id="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{/if}" />
				</p>
				<p class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group">
					<label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*</sup>{/if}</label>
					<input type="text" class="form-control" name="phone_mobile" id="phone_mobile" value="{if isset($smarty.post.phone_mobile)}{$smarty.post.phone_mobile}{/if}" />
				</p>
				<p class="required form-group" id="address_alias">
					<label for="alias">{l s='Assign an address alias for future reference.'} <sup>*</sup></label>
					<input type="text" class="form-control" name="alias" id="alias" value="{if isset($smarty.post.alias)}{$smarty.post.alias}{else}{l s='My address'}{/if}" />
				</p>
			</div>
			<div class="account_creation dni">
				<h3 class="page-subheading">{l s='Tax identification'}</h3>
				<p class="required form-group">
					<label for="dni">{l s='Identification number'} <sup>*</sup></label>
					<input type="text" class="form-control" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{/if}" />
					<span class="form_info">{l s='DNI / NIF / NIE'}</span>
				</p>
			</div>
		{/if}
		{$HOOK_CREATE_ACCOUNT_FORM}
		<div class="submit clearfix">
			<input type="hidden" name="email_create" value="1" />
			<input type="hidden" name="is_new_customer" value="1" />
			{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if}
			<button type="submit" name="submitAccount" id="submitAccount" class="btn btn-default button button-medium">
				<span>{l s='Register'}<i class="icon-chevron-right right"></i></span>
			</button>
			<p class="pull-right required"><span><sup>*</sup>{l s='Required field'}</span></p>
		</div>
	</form>
{/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_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}
{else if 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}

Link to comment
Share on other sites

Thank you!!!!!!!!!  :)

 

You were right, I forced compile (performance tab) and now the page doesn't work at all, I have a problem in my smarty cache, not my code tpl.

The error says there is a synthax error (!!!! I'm just a beginner!!!!) on line 843

 

Parse error: syntax error, unexpected '?' in /home/-----www/cache/smarty/compile/fe/09/a7/fe09a728b99975df46db92d8766d0b49cf9bd8f6.file.authentication.tpl.php on line 843

 

Line 843 is the last line of the cache, it says: <input type="text" class="form-control" name="dni" id="dni" value="<?php if (isset($_POST['dni'])) {?><?php echo $_POST['dni'];?%3

 

Here is the cache:

 

<?php /* Smarty version Smarty-3.1.19, created on 2015-03-11 20:16:50
         compiled from "/home/-----/www/themes/default-bootstrap/authentication.tpl" */ ?>
<?php /*%%SmartyHeaderCode:729297904550094a2787c33-46973525%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'fe09a728b99975df46db92d8766d0b49cf9bd8f6' => 
    array (
      0 => '/home/------/www/themes/default-bootstrap/authentication.tpl',
      1 => 1426101405,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '729297904550094a2787c33-46973525',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'email_create' => 0,
    'link' => 0,
    'navigationPipe' => 0,
    'back' => 0,
    'authentification_error' => 0,
    'account_error' => 0,
    'v' => 0,
    'inOrderProcess' => 0,
    'PS_GUEST_CHECKOUT_ENABLED' => 0,
    'genders' => 0,
    'gender' => 0,
    'days' => 0,
    'day' => 0,
    'sl_day' => 0,
    'months' => 0,
    'k' => 0,
    'sl_month' => 0,
    'month' => 0,
    'years' => 0,
    'year' => 0,
    'sl_year' => 0,
    'dlv_all_fields' => 0,
    'field_name' => 0,
    'required_fields' => 0,
    'countries' => 0,
    'sl_country' => 0,
    'stateExist' => 0,
    'postCodeExist' => 0,
    'dniExist' => 0,
    'one_phone_at_least' => 0,
    'inv_all_fields' => 0,
    'HOOK_CREATE_ACCOUNT_FORM' => 0,
    'HOOK_CREATE_ACCOUNT_TOP' => 0,
    'b2b_enable' => 0,
    'PS_REGISTRATION_PROCESS_TYPE' => 0,
    'address' => 0,
    'vatnumber_ajax_call' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.19',
  'unifunc' => 'content_550094a2d0ae01_64490457',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_550094a2d0ae01_64490457')) {function content_550094a2d0ae01_64490457($_smarty_tpl) {?>
<?php $_smarty_tpl->_capture_stack[0][] = array('path', null, null); ob_start(); ?>
<?php if (!isset($_smarty_tpl->tpl_vars['email_create']->value)) {?><?php echo smartyTranslate(array('s'=>'Authentication'),$_smarty_tpl);?>
<?php } else { ?>
<a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('authentication',true), ENT_QUOTES, 'UTF-8', true);?>
" rel="nofollow" title="<?php echo smartyTranslate(array('s'=>'Authentication'),$_smarty_tpl);?>
"><?php echo smartyTranslate(array('s'=>'Authentication'),$_smarty_tpl);?>
</a>
<span class="navigation-pipe"><?php echo $_smarty_tpl->tpl_vars['navigationPipe']->value;?>
</span><?php echo smartyTranslate(array('s'=>'Create your account'),$_smarty_tpl);?>
 
<?php }?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
<h1 class="page-heading"><?php if (!isset($_smarty_tpl->tpl_vars['email_create']->value)) {?><?php echo smartyTranslate(array('s'=>'Authentication'),$_smarty_tpl);?>
<?php } else { ?><?php echo smartyTranslate(array('s'=>'Create an account'),$_smarty_tpl);?>
<?php }?></h1>
<?php if (isset($_smarty_tpl->tpl_vars['back']->value)&&preg_match("/^http/",$_smarty_tpl->tpl_vars['back']->value)) {?><?php $_smarty_tpl->tpl_vars['current_step'] = new Smarty_variable('login', null, 0);?><?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tpl_dir']->value)."./order-steps.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }?>
<?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tpl_dir']->value)."./errors.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
 
<?php $_smarty_tpl->tpl_vars['stateExist'] = new Smarty_variable(false, null, 0);?>
<?php $_smarty_tpl->tpl_vars["postCodeExist"] = new Smarty_variable(false, null, 0);?>
<?php $_smarty_tpl->tpl_vars["dniExist"] = new Smarty_variable(false, null, 0);?>
<?php if (!isset($_smarty_tpl->tpl_vars['email_create']->value)) {?>
<!--<?php if (isset($_smarty_tpl->tpl_vars['authentification_error']->value)) {?>
<div class="alert alert-danger">
<?php ob_start();?><?php echo count($_smarty_tpl->tpl_vars['authentification_error']->value);?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1==1) {?>
<p><?php echo smartyTranslate(array('s'=>'There\'s at least one error'),$_smarty_tpl);?>
 :</p>
<?php } else { ?>
<p><?php echo smartyTranslate(array('s'=>'There are %s errors','sprintf'=>array(count($_smarty_tpl->tpl_vars['account_error']->value))),$_smarty_tpl);?>
 :</p>
<?php }?>
<ol>
<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['authentification_error']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
<li><?php echo $_smarty_tpl->tpl_vars['v']->value;?>
</li>
<?php } ?>
</ol>
</div>
<?php }?>-->
<div class="row">
<div class="col-xs-12 col-sm-6">
<form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('authentication',true), ENT_QUOTES, 'UTF-8', true);?>
" method="post" id="create-account_form" class="box">
<h3 class="page-subheading"><?php echo smartyTranslate(array('s'=>'Create an account'),$_smarty_tpl);?>
</h3>
<div class="form_content clearfix">
<p><?php echo smartyTranslate(array('s'=>'Please enter your email address to create an account.'),$_smarty_tpl);?>
</p>
<div class="alert alert-danger" id="create_account_error" style="display:none"></div>
<div class="form-group">
<label for="email_create"><?php echo smartyTranslate(array('s'=>'Email address'),$_smarty_tpl);?>
</label>
<input type="text" class="is_required validate account_input form-control" data-validate="isEmail" id="email_create" name="email_create" value="<?php if (isset($_POST['email_create'])) {?><?php echo stripslashes($_POST['email_create']);?>
<?php }?>" />
</div>
<div class="submit">
<?php if (isset($_smarty_tpl->tpl_vars['back']->value)) {?><input type="hidden" class="hidden" name="back" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['back']->value, ENT_QUOTES, 'UTF-8', true);?>
" /><?php }?>
<button class="btn btn-default button button-medium exclusive" type="submit" id="SubmitCreate" name="SubmitCreate">
<span>
<i class="icon-user left"></i>
<?php echo smartyTranslate(array('s'=>'Create an account'),$_smarty_tpl);?>
 
</span>
</button>
<input type="hidden" class="hidden" name="SubmitCreate" value="<?php echo smartyTranslate(array('s'=>'Create an account'),$_smarty_tpl);?>
" />
</div>
</div>
</form>
</div>
<div class="col-xs-12 col-sm-6">
<form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('authentication',true), ENT_QUOTES, 'UTF-8', true);?>
" method="post" id="login_form" class="box">
<h3 class="page-subheading"><?php echo smartyTranslate(array('s'=>'Already registered?'),$_smarty_tpl);?>
</h3>
<div class="form_content clearfix">
<div class="form-group">
<label for="email"><?php echo smartyTranslate(array('s'=>'Email address'),$_smarty_tpl);?>
</label>
<input class="is_required validate account_input form-control" data-validate="isEmail" type="text" id="email" name="email" value="<?php if (isset($_POST['email'])) {?><?php echo stripslashes($_POST['email']);?>
<?php }?>" />
</div>
<div class="form-group">
<label for="passwd"><?php echo smartyTranslate(array('s'=>'Password'),$_smarty_tpl);?>
</label>
<span><input class="is_required validate account_input form-control" type="password" data-validate="isPasswd" id="passwd" name="passwd" value="<?php if (isset($_POST['passwd'])) {?><?php echo stripslashes($_POST['passwd']);?>
<?php }?>" /></span>
</div>
<p class="lost_password form-group"><a href="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('password'), ENT_QUOTES, 'UTF-8', true);?>
" title="<?php echo smartyTranslate(array('s'=>'Recover your forgotten password'),$_smarty_tpl);?>
" rel="nofollow"><?php echo smartyTranslate(array('s'=>'Forgot your password?'),$_smarty_tpl);?>
</a></p>
<p class="submit">
<?php if (isset($_smarty_tpl->tpl_vars['back']->value)) {?><input type="hidden" class="hidden" name="back" value="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['back']->value, ENT_QUOTES, 'UTF-8', true);?>
" /><?php }?>
<button type="submit" id="SubmitLogin" name="SubmitLogin" class="button btn btn-default button-medium">
<span>
<i class="icon-lock left"></i>
<?php echo smartyTranslate(array('s'=>'Sign in'),$_smarty_tpl);?>
 
</span>
</button>
</p>
</div>
</form>
</div>
</div>
<?php if (isset($_smarty_tpl->tpl_vars['inOrderProcess']->value)&&$_smarty_tpl->tpl_vars['inOrderProcess']->value&&$_smarty_tpl->tpl_vars['PS_GUEST_CHECKOUT_ENABLED']->value) {?>
<form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('authentication',true,null,"back=".((string)$_smarty_tpl->tpl_vars['back']->value)), ENT_QUOTES, 'UTF-8', true);?>
" method="post" id="new_account_form" class="std clearfix">
<div class="box">
<div id="opc_account_form" style="display: block; ">
<h3 class="page-heading bottom-indent"><?php echo smartyTranslate(array('s'=>'Instant checkout'),$_smarty_tpl);?>
</h3>
<!-- Account -->
<div class="required form-group">
<label for="guest_email"><?php echo smartyTranslate(array('s'=>'Email address'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="is_required validate form-control" data-validate="isEmail" id="guest_email" name="guest_email" value="<?php if (isset($_POST['guest_email'])) {?><?php echo $_POST['guest_email'];?>
<?php }?>" />
</div>
<div class="cleafix gender-line">
<label><?php echo smartyTranslate(array('s'=>'Title'),$_smarty_tpl);?>
</label>
<?php  $_smarty_tpl->tpl_vars['gender'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gender']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['genders']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['gender']->key => $_smarty_tpl->tpl_vars['gender']->value) {
$_smarty_tpl->tpl_vars['gender']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['gender']->key;
?>
<div class="radio-inline">
<label for="id_gender<?php echo $_smarty_tpl->tpl_vars['gender']->value->id;?>
" class="top">
<input type="radio" name="id_gender" id="id_gender<?php echo $_smarty_tpl->tpl_vars['gender']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['gender']->value->id;?>
"<?php if (isset($_POST['id_gender'])&&$_POST['id_gender']==$_smarty_tpl->tpl_vars['gender']->value->id) {?> checked="checked"<?php }?> />
<?php echo $_smarty_tpl->tpl_vars['gender']->value->name;?>
 
</label>
</div>
<?php } ?>
</div>
<div class="required form-group">
<label for="firstname"><?php echo smartyTranslate(array('s'=>'First name'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="is_required validate form-control" data-validate="isName" id="firstname" name="firstname" value="<?php if (isset($_POST['firstname'])) {?><?php echo $_POST['firstname'];?>
<?php }?>" />
</div>
<div class="required form-group">
<label for="lastname"><?php echo smartyTranslate(array('s'=>'Last name'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="is_required validate form-control" data-validate="isName" id="lastname" name="lastname" value="<?php if (isset($_POST['lastname'])) {?><?php echo $_POST['lastname'];?>
<?php }?>" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
<h3 class="page-heading bottom-indent top-indent"><?php echo smartyTranslate(array('s'=>'Delivery address'),$_smarty_tpl);?>
</h3>
<?php  $_smarty_tpl->tpl_vars['field_name'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['field_name']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dlv_all_fields']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['field_name']->key => $_smarty_tpl->tpl_vars['field_name']->value) {
$_smarty_tpl->tpl_vars['field_name']->_loop = true;
?>
<?php if ($_smarty_tpl->tpl_vars['field_name']->value=="company") {?>
<div class="form-group">
<label for="company"><?php echo smartyTranslate(array('s'=>'Company'),$_smarty_tpl);?>
<?php if (in_array($_smarty_tpl->tpl_vars['field_name']->value,$_smarty_tpl->tpl_vars['required_fields']->value)) {?> <sup>*</sup><?php }?></label>
<input type="text" class="form-control" id="company" name="company" value="<?php if (isset($_POST['company'])) {?><?php echo $_POST['company'];?>
<?php }?>" />
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="vat_number") {?>
<div id="vat_number" style="display:none;">
<div class="form-group">
<label for="vat-number"><?php echo smartyTranslate(array('s'=>'VAT number'),$_smarty_tpl);?>
<?php if (in_array($_smarty_tpl->tpl_vars['field_name']->value,$_smarty_tpl->tpl_vars['required_fields']->value)) {?> <sup>*</sup><?php }?></label>
<input id="vat-number" type="text" class="form-control" name="vat_number" value="<?php if (isset($_POST['vat_number'])) {?><?php echo $_POST['vat_number'];?>
<?php }?>" />
</div>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="dni") {?>
<?php $_smarty_tpl->tpl_vars['dniExist'] = new Smarty_variable(true, null, 0);?>
<div class="required dni form-group">
<label for="dni"><?php echo smartyTranslate(array('s'=>'Identification number'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" name="dni" id="dni" value="<?php if (isset($_POST['dni'])) {?><?php echo $_POST['dni'];?>
<?php }?>" />
<span class="form_info"><?php echo smartyTranslate(array('s'=>'DNI / NIF / NIE'),$_smarty_tpl);?>
</span>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="address1") {?>
<div class="required form-group">
<label for="address1"><?php echo smartyTranslate(array('s'=>'Address'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="form-control" name="address1" id="address1" value="<?php if (isset($_POST['address1'])) {?><?php echo $_POST['address1'];?>
<?php }?>" />
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="address2") {?>
<div class="form-group is_customer_param">
<label for="address2"><?php echo smartyTranslate(array('s'=>'Address (Line 2)'),$_smarty_tpl);?>
<?php if (in_array($_smarty_tpl->tpl_vars['field_name']->value,$_smarty_tpl->tpl_vars['required_fields']->value)) {?> <sup>*</sup><?php }?></label>
<input type="text" class="form-control" name="address2" id="address2" value="<?php if (isset($_POST['address2'])) {?><?php echo $_POST['address2'];?>
<?php }?>" />
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="postcode") {?>
<?php $_smarty_tpl->tpl_vars['postCodeExist'] = new Smarty_variable(true, null, 0);?>
<div class="required postcode form-group">
<label for="postcode"><?php echo smartyTranslate(array('s'=>'Zip/Postal Code'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="form-control" name="postcode" id="postcode" value="<?php if (isset($_POST['postcode'])) {?><?php echo $_POST['postcode'];?>
<?php }?>" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="city") {?>
<div class="required form-group">
<label for="city"><?php echo smartyTranslate(array('s'=>'City'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="form-control" name="city" id="city" value="<?php if (isset($_POST['city'])) {?><?php echo $_POST['city'];?>
<?php }?>" />
</div>
<!-- if customer hasn't update his layout address, country has to be verified but it's deprecated -->
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="Country:name"||$_smarty_tpl->tpl_vars['field_name']->value=="country") {?>
<div class="required select form-group">
<label for="id_country"><?php echo smartyTranslate(array('s'=>'Country'),$_smarty_tpl);?>
 <sup>*</sup></label>
<select name="id_country" id="id_country" class="form-control">
<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['countries']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['v']->value['id_country'];?>
"<?php if ((isset($_POST['id_country'])&&$_POST['id_country']==$_smarty_tpl->tpl_vars['v']->value['id_country'])||(!isset($_POST['id_country'])&&$_smarty_tpl->tpl_vars['sl_country']->value==$_smarty_tpl->tpl_vars['v']->value['id_country'])) {?> selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
</option>
<?php } ?>
</select>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="State:name") {?>
<?php $_smarty_tpl->tpl_vars['stateExist'] = new Smarty_variable(true, null, 0);?>
<div class="required id_state select form-group">
<label for="id_state"><?php echo smartyTranslate(array('s'=>'State'),$_smarty_tpl);?>
 <sup>*</sup></label>
<select name="id_state" id="id_state" class="form-control">
<option value="">-</option>
</select>
</div>
<?php }?>
<?php } ?>
<?php if ($_smarty_tpl->tpl_vars['stateExist']->value==false) {?>
<div class="required id_state select unvisible form-group">
<label for="id_state"><?php echo smartyTranslate(array('s'=>'State'),$_smarty_tpl);?>
 <sup>*</sup></label>
<select name="id_state" id="id_state" class="form-control">
<option value="">-</option>
</select>
</div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['postCodeExist']->value==false) {?>
<div class="required postcode unvisible form-group">
<label for="postcode"><?php echo smartyTranslate(array('s'=>'Zip/Postal Code'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="form-control" name="postcode" id="postcode" value="<?php if (isset($_POST['postcode'])) {?><?php echo $_POST['postcode'];?>
<?php }?>" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />
</div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['dniExist']->value==false) {?>
<div class="required form-group dni">
<label for="dni"><?php echo smartyTranslate(array('s'=>'Identification number'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="text form-control" name="dni" id="dni" value="<?php if (isset($_POST['dni'])&&$_POST['dni']) {?><?php echo $_POST['dni'];?>
<?php }?>" />
<span class="form_info"><?php echo smartyTranslate(array('s'=>'DNI / NIF / NIE'),$_smarty_tpl);?>
</span>
</div>
<?php }?>
<div class="<?php if (isset($_smarty_tpl->tpl_vars['one_phone_at_least']->value)&&$_smarty_tpl->tpl_vars['one_phone_at_least']->value) {?>required <?php }?>form-group">
<label for="phone_mobile"><?php echo smartyTranslate(array('s'=>'Mobile phone'),$_smarty_tpl);?>
<?php if (isset($_smarty_tpl->tpl_vars['one_phone_at_least']->value)&&$_smarty_tpl->tpl_vars['one_phone_at_least']->value) {?> <sup>*</sup><?php }?></label>
<input type="text" class="form-control" name="phone_mobile" id="phone_mobile" value="<?php if (isset($_POST['phone_mobile'])) {?><?php echo $_POST['phone_mobile'];?>
<?php }?>" />
</div>
<input type="hidden" name="alias" id="alias" value="<?php echo smartyTranslate(array('s'=>'My address'),$_smarty_tpl);?>
" />
<input type="hidden" name="is_new_customer" id="is_new_customer" value="0" />
<div class="checkbox">
                <label for="invoice_address">
<input type="checkbox" name="invoice_address" id="invoice_address"<?php if ((isset($_POST['invoice_address'])&&$_POST['invoice_address'])||(isset($_POST['invoice_address'])&&$_POST['invoice_address'])) {?> checked="checked"<?php }?> autocomplete="off"/>
<?php echo smartyTranslate(array('s'=>'Please use another address for invoice'),$_smarty_tpl);?>
</label>
</div>
<div id="opc_invoice_address"  class="unvisible">
<?php $_smarty_tpl->tpl_vars['stateExist'] = new Smarty_variable(false, null, 0);?>
<?php $_smarty_tpl->tpl_vars['postCodeExist'] = new Smarty_variable(false, null, 0);?>
<?php $_smarty_tpl->tpl_vars['dniExist'] = new Smarty_variable(false, null, 0);?>
<h3 class="page-subheading top-indent"><?php echo smartyTranslate(array('s'=>'Invoice address'),$_smarty_tpl);?>
</h3>
<?php  $_smarty_tpl->tpl_vars['field_name'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['field_name']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['inv_all_fields']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['field_name']->key => $_smarty_tpl->tpl_vars['field_name']->value) {
$_smarty_tpl->tpl_vars['field_name']->_loop = true;
?>
<?php if ($_smarty_tpl->tpl_vars['field_name']->value=="company") {?>
<div class="form-group">
<label for="company_invoice"><?php echo smartyTranslate(array('s'=>'Company'),$_smarty_tpl);?>
<?php if (in_array($_smarty_tpl->tpl_vars['field_name']->value,$_smarty_tpl->tpl_vars['required_fields']->value)) {?> <sup>*</sup><?php }?></label>
<input type="text" class="text form-control" id="company_invoice" name="company_invoice" value="<?php if (isset($_POST['company_invoice'])&&$_POST['company_invoice']) {?><?php echo $_POST['company_invoice'];?>
<?php }?>" />
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="vat_number") {?>
<div id="vat_number_block_invoice" style="display:none;">
<div class="form-group">
<label for="vat_number_invoice"><?php echo smartyTranslate(array('s'=>'VAT number'),$_smarty_tpl);?>
<?php if (in_array($_smarty_tpl->tpl_vars['field_name']->value,$_smarty_tpl->tpl_vars['required_fields']->value)) {?> <sup>*</sup><?php }?></label>
<input type="text" class="form-control" id="vat_number_invoice" name="vat_number_invoice" value="<?php if (isset($_POST['vat_number_invoice'])&&$_POST['vat_number_invoice']) {?><?php echo $_POST['vat_number_invoice'];?>
<?php }?>" />
</div>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="dni") {?>
<?php $_smarty_tpl->tpl_vars['dniExist'] = new Smarty_variable(true, null, 0);?>
<div class="required form-group dni_invoice">
<label for="dni"><?php echo smartyTranslate(array('s'=>'Identification number'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="text form-control" name="dni_invoice" id="dni_invoice" value="<?php if (isset($_POST['dni_invoice'])&&$_POST['dni_invoice']) {?><?php echo $_POST['dni_invoice'];?>
<?php }?>" />
<span class="form_info"><?php echo smartyTranslate(array('s'=>'DNI / NIF / NIE'),$_smarty_tpl);?>
</span>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="firstname") {?>
<div class="required form-group">
<label for="firstname_invoice"><?php echo smartyTranslate(array('s'=>'First name'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="form-control" id="firstname_invoice" name="firstname_invoice" value="<?php if (isset($_POST['firstname_invoice'])&&$_POST['firstname_invoice']) {?><?php echo $_POST['firstname_invoice'];?>
<?php }?>" />
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="lastname") {?>
<div class="required form-group">
<label for="lastname_invoice"><?php echo smartyTranslate(array('s'=>'Last name'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="form-control" id="lastname_invoice" name="lastname_invoice" value="<?php if (isset($_POST['lastname_invoice'])&&$_POST['lastname_invoice']) {?><?php echo $_POST['lastname_invoice'];?>
<?php }?>" />
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="address1") {?>
<div class="required form-group">
<label for="address1_invoice"><?php echo smartyTranslate(array('s'=>'Address'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="form-control" name="address1_invoice" id="address1_invoice" value="<?php if (isset($_POST['address1_invoice'])&&$_POST['address1_invoice']) {?><?php echo $_POST['address1_invoice'];?>
<?php }?>" />
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="address2") {?>
<div class="form-group is_customer_param">
<label for="address2_invoice"><?php echo smartyTranslate(array('s'=>'Address (Line 2)'),$_smarty_tpl);?>
<?php if (in_array($_smarty_tpl->tpl_vars['field_name']->value,$_smarty_tpl->tpl_vars['required_fields']->value)) {?> <sup>*</sup><?php }?></label>
<input type="text" class="form-control" name="address2_invoice" id="address2_invoice" value="<?php if (isset($_POST['address2_invoice'])&&$_POST['address2_invoice']) {?><?php echo $_POST['address2_invoice'];?>
<?php }?>" />
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="postcode") {?>
<?php $_smarty_tpl->tpl_vars['postCodeExist'] = new Smarty_variable(true, null, 0);?>
<div class="required postcode_invoice form-group">
<label for="postcode_invoice"><?php echo smartyTranslate(array('s'=>'Zip/Postal Code'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="form-control" name="postcode_invoice" id="postcode_invoice" value="<?php if (isset($_POST['postcode_invoice'])&&$_POST['postcode_invoice']) {?><?php echo $_POST['postcode_invoice'];?>
<?php }?>" onkeyup="$('#postcode_invoice').val($('#postcode_invoice').val().toUpperCase());" />
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="city") {?>
<div class="required form-group">
<label for="city_invoice"><?php echo smartyTranslate(array('s'=>'City'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="form-control" name="city_invoice" id="city_invoice" value="<?php if (isset($_POST['city_invoice'])&&$_POST['city_invoice']) {?><?php echo $_POST['city_invoice'];?>
<?php }?>" />
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="country"||$_smarty_tpl->tpl_vars['field_name']->value=="Country:name") {?>
<div class="required form-group">
<label for="id_country_invoice"><?php echo smartyTranslate(array('s'=>'Country'),$_smarty_tpl);?>
 <sup>*</sup></label>
<select name="id_country_invoice" id="id_country_invoice" class="form-control">
<option value="">-</option>
<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['countries']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['v']->value['id_country'];?>
"<?php if ((isset($_POST['id_country_invoice'])&&$_POST['id_country_invoice']==$_smarty_tpl->tpl_vars['v']->value['id_country'])||(!isset($_POST['id_country_invoice'])&&$_smarty_tpl->tpl_vars['sl_country']->value==$_smarty_tpl->tpl_vars['v']->value['id_country'])) {?> selected="selected"<?php }?>><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['v']->value['name'], ENT_QUOTES, 'UTF-8', true);?>
</option>
<?php } ?>
</select>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="state"||$_smarty_tpl->tpl_vars['field_name']->value=='State:name') {?>
<?php $_smarty_tpl->tpl_vars['stateExist'] = new Smarty_variable(true, null, 0);?>
<div class="required id_state_invoice form-group" style="display:none;">
<label for="id_state_invoice"><?php echo smartyTranslate(array('s'=>'State'),$_smarty_tpl);?>
 <sup>*</sup></label>
<select name="id_state_invoice" id="id_state_invoice" class="form-control">
<option value="">-</option>
</select>
</div>
<?php }?>
<?php } ?>
<?php if (!$_smarty_tpl->tpl_vars['postCodeExist']->value) {?>
<div class="required postcode_invoice form-group unvisible">
<label for="postcode_invoice"><?php echo smartyTranslate(array('s'=>'Zip/Postal Code'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="form-control" name="postcode_invoice" id="postcode_invoice" value="<?php if (isset($_POST['postcode_invoice'])&&$_POST['postcode_invoice']) {?><?php echo $_POST['postcode_invoice'];?>
<?php }?>" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />
</div>
<?php }?>
<?php if (!$_smarty_tpl->tpl_vars['stateExist']->value) {?>
<div class="required id_state_invoice form-group unvisible">
<label for="id_state_invoice"><?php echo smartyTranslate(array('s'=>'State'),$_smarty_tpl);?>
 <sup>*</sup></label>
<select name="id_state_invoice" id="id_state_invoice" class="form-control">
<option value="">-</option>
</select>
</div>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['dniExist']->value==false) {?>
<div class="required form-group dni_invoice">
<label for="dni"><?php echo smartyTranslate(array('s'=>'Identification number'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="text form-control" name="dni_invoice" id="dni_invoice" value="<?php if (isset($_POST['dni_invoice'])&&$_POST['dni_invoice']) {?><?php echo $_POST['dni_invoice'];?>
<?php }?>" />
<span class="form_info"><?php echo smartyTranslate(array('s'=>'DNI / NIF / NIE'),$_smarty_tpl);?>
</span>
</div>
<?php }?>
<div class="form-group is_customer_param">
<label for="other_invoice"><?php echo smartyTranslate(array('s'=>'Additional information'),$_smarty_tpl);?>
</label>
<textarea class="form-control" name="other_invoice" id="other_invoice" cols="26" rows="3"></textarea>
</div>
<?php if (isset($_smarty_tpl->tpl_vars['one_phone_at_least']->value)&&$_smarty_tpl->tpl_vars['one_phone_at_least']->value) {?>
<p class="inline-infos required is_customer_param"><?php echo smartyTranslate(array('s'=>'You must register at least one phone number.'),$_smarty_tpl);?>
</p>
<?php }?>
<div class="form-group is_customer_param">
<label for="phone_invoice"><?php echo smartyTranslate(array('s'=>'Home phone'),$_smarty_tpl);?>
</label>
<input type="text" class="form-control" name="phone_invoice" id="phone_invoice" value="<?php if (isset($_POST['phone_invoice'])&&$_POST['phone_invoice']) {?><?php echo $_POST['phone_invoice'];?>
<?php }?>" />
</div>
<div class="<?php if (isset($_smarty_tpl->tpl_vars['one_phone_at_least']->value)&&$_smarty_tpl->tpl_vars['one_phone_at_least']->value) {?>required <?php }?>form-group">
<label for="phone_mobile_invoice"><?php echo smartyTranslate(array('s'=>'Mobile phone'),$_smarty_tpl);?>
<?php if (isset($_smarty_tpl->tpl_vars['one_phone_at_least']->value)&&$_smarty_tpl->tpl_vars['one_phone_at_least']->value) {?> <sup>*</sup><?php }?></label>
<input type="text" class="form-control" name="phone_mobile_invoice" id="phone_mobile_invoice" value="<?php if (isset($_POST['phone_mobile_invoice'])&&$_POST['phone_mobile_invoice']) {?><?php echo $_POST['phone_mobile_invoice'];?>
<?php }?>" />
</div>
<input type="hidden" name="alias_invoice" id="alias_invoice" value="<?php echo smartyTranslate(array('s'=>'My Invoice address'),$_smarty_tpl);?>
" />
</div>
<!-- END Account -->
</div>
<?php echo $_smarty_tpl->tpl_vars['HOOK_CREATE_ACCOUNT_FORM']->value;?>
 
</div>
<p class="cart_navigation required submit clearfix">
<span><sup>*</sup><?php echo smartyTranslate(array('s'=>'Required field'),$_smarty_tpl);?>
</span>
<input type="hidden" name="display_guest_checkout" value="1" />
<button type="submit" class="button btn btn-default button-medium" name="submitGuestAccount" id="submitGuestAccount">
<span>
<?php echo smartyTranslate(array('s'=>'Proceed to checkout'),$_smarty_tpl);?>
 
<i class="icon-chevron-right right"></i>
</span>
</button>
</p>
</form>
<?php }?>
<?php } else { ?>
<!--<?php if (isset($_smarty_tpl->tpl_vars['account_error']->value)) {?>
<div class="error">
<?php ob_start();?><?php echo count($_smarty_tpl->tpl_vars['account_error']->value);?>
<?php $_tmp2=ob_get_clean();?><?php if ($_tmp2==1) {?>
<p><?php echo smartyTranslate(array('s'=>'There\'s at least one error'),$_smarty_tpl);?>
 :</p>
<?php } else { ?>
<p><?php echo smartyTranslate(array('s'=>'There are %s errors','sprintf'=>array(count($_smarty_tpl->tpl_vars['account_error']->value))),$_smarty_tpl);?>
 :</p>
<?php }?>
<ol>
<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['account_error']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
<li><?php echo $_smarty_tpl->tpl_vars['v']->value;?>
</li>
<?php } ?>
</ol>
</div>
<?php }?>-->
<form action="<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('authentication',true), ENT_QUOTES, 'UTF-8', true);?>
" method="post" id="account-creation_form" class="std box">
<?php echo $_smarty_tpl->tpl_vars['HOOK_CREATE_ACCOUNT_TOP']->value;?>
 
<div class="account_creation">
<h3 class="page-subheading"><?php echo smartyTranslate(array('s'=>'Your personal information'),$_smarty_tpl);?>
</h3>
<div class="clearfix">
<label><?php echo smartyTranslate(array('s'=>'Title'),$_smarty_tpl);?>
</label>
<br />
<?php  $_smarty_tpl->tpl_vars['gender'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['gender']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['genders']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['gender']->key => $_smarty_tpl->tpl_vars['gender']->value) {
$_smarty_tpl->tpl_vars['gender']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['gender']->key;
?>
<div class="radio-inline">
<label for="id_gender<?php echo $_smarty_tpl->tpl_vars['gender']->value->id;?>
" class="top">
<input type="radio" name="id_gender" id="id_gender<?php echo $_smarty_tpl->tpl_vars['gender']->value->id;?>
" value="<?php echo $_smarty_tpl->tpl_vars['gender']->value->id;?>
" <?php if (isset($_POST['id_gender'])&&$_POST['id_gender']==$_smarty_tpl->tpl_vars['gender']->value->id) {?>checked="checked"<?php }?> />
<?php echo $_smarty_tpl->tpl_vars['gender']->value->name;?>
 
</label>
</div>
<?php } ?>
</div>
<div class="required form-group">
<label for="customer_firstname"><?php echo smartyTranslate(array('s'=>'First name'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input onkeyup="$('#firstname').val(this.value);" type="text" class="is_required validate form-control" data-validate="isName" id="customer_firstname" name="customer_firstname" value="<?php if (isset($_POST['customer_firstname'])) {?><?php echo $_POST['customer_firstname'];?>
<?php }?>" />
</div>
<div class="required form-group">
<label for="customer_lastname"><?php echo smartyTranslate(array('s'=>'Last name'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input onkeyup="$('#lastname').val(this.value);" type="text" class="is_required validate form-control" data-validate="isName" id="customer_lastname" name="customer_lastname" value="<?php if (isset($_POST['customer_lastname'])) {?><?php echo $_POST['customer_lastname'];?>
<?php }?>" />
</div>
<div class="required form-group">
<label for="email"><?php echo smartyTranslate(array('s'=>'Email'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="is_required validate form-control" data-validate="isEmail" id="email" name="email" value="<?php if (isset($_POST['email'])) {?><?php echo $_POST['email'];?>
<?php }?>" />
</div>
<div class="required password form-group">
<label for="passwd"><?php echo smartyTranslate(array('s'=>'Password'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="password" class="is_required validate form-control" data-validate="isPasswd" name="passwd" id="passwd" />
<span class="form_info"><?php echo smartyTranslate(array('s'=>'(Five characters minimum)'),$_smarty_tpl);?>
</span>
</div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
<?php }?>
</div>
<?php if ($_smarty_tpl->tpl_vars['b2b_enable']->value) {?>
<div class="account_creation">
<h3 class="page-subheading"><?php echo smartyTranslate(array('s'=>'Your company information'),$_smarty_tpl);?>
</h3>
<p class="form-group">
<label for=""><?php echo smartyTranslate(array('s'=>'Company'),$_smarty_tpl);?>
</label>
<input type="text" class="form-control" id="company" name="company" value="<?php if (isset($_POST['company'])) {?><?php echo $_POST['company'];?>
<?php }?>" />
</p>
<p class="form-group">
<label for="siret"><?php echo smartyTranslate(array('s'=>'SIRET'),$_smarty_tpl);?>
</label>
<input type="text" class="form-control" id="siret" name="siret" value="<?php if (isset($_POST['siret'])) {?><?php echo $_POST['siret'];?>
<?php }?>" />
</p>
<p class="form-group">
<label for="ape"><?php echo smartyTranslate(array('s'=>'APE'),$_smarty_tpl);?>
</label>
<input type="text" class="form-control" id="ape" name="ape" value="<?php if (isset($_POST['ape'])) {?><?php echo $_POST['ape'];?>
<?php }?>" />
</p>
<p class="form-group">
<label for="website"><?php echo smartyTranslate(array('s'=>'Website'),$_smarty_tpl);?>
</label>
<input type="text" class="form-control" id="website" name="website" value="<?php if (isset($_POST['website'])) {?><?php echo $_POST['website'];?>
<?php }?>" />
</p>
</div>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['PS_REGISTRATION_PROCESS_TYPE']->value)&&$_smarty_tpl->tpl_vars['PS_REGISTRATION_PROCESS_TYPE']->value) {?>
<div class="account_creation">
<h3 class="page-subheading"><?php echo smartyTranslate(array('s'=>'Your address'),$_smarty_tpl);?>
</h3>
<?php  $_smarty_tpl->tpl_vars['field_name'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['field_name']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['dlv_all_fields']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['field_name']->key => $_smarty_tpl->tpl_vars['field_name']->value) {
$_smarty_tpl->tpl_vars['field_name']->_loop = true;
?>
<?php if ($_smarty_tpl->tpl_vars['field_name']->value=="company") {?>
<?php if (!$_smarty_tpl->tpl_vars['b2b_enable']->value) {?>
<p class="form-group">
<label for="company"><?php echo smartyTranslate(array('s'=>'Company'),$_smarty_tpl);?>
<?php if (in_array($_smarty_tpl->tpl_vars['field_name']->value,$_smarty_tpl->tpl_vars['required_fields']->value)) {?> <sup>*</sup><?php }?></label>
<input type="text" class="form-control" id="company" name="company" value="<?php if (isset($_POST['company'])) {?><?php echo $_POST['company'];?>
<?php }?>" />
</p>
<?php }?>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="vat_number") {?>
<div id="vat_number" style="display:none;">
<p class="form-group">
<label for="vat_number"><?php echo smartyTranslate(array('s'=>'VAT number'),$_smarty_tpl);?>
<?php if (in_array($_smarty_tpl->tpl_vars['field_name']->value,$_smarty_tpl->tpl_vars['required_fields']->value)) {?> <sup>*</sup><?php }?></label>
<input type="text" class="form-control" name="vat_number" value="<?php if (isset($_POST['vat_number'])) {?><?php echo $_POST['vat_number'];?>
<?php }?>" />
</p>
</div>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="firstname") {?>
<p class="required form-group">
<label for="firstname"><?php echo smartyTranslate(array('s'=>'First name'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="form-control" id="firstname" name="firstname" value="<?php if (isset($_POST['firstname'])) {?><?php echo $_POST['firstname'];?>
<?php }?>" />
</p>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="lastname") {?>
<p class="required form-group">
<label for="lastname"><?php echo smartyTranslate(array('s'=>'Last name'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="form-control" id="lastname" name="lastname" value="<?php if (isset($_POST['lastname'])) {?><?php echo $_POST['lastname'];?>
<?php }?>" />
</p>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="address1") {?>
<p class="required form-group">
<label for="address1"><?php echo smartyTranslate(array('s'=>'Address'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="form-control" name="address1" id="address1" value="<?php if (isset($_POST['address1'])) {?><?php echo $_POST['address1'];?>
<?php }?>" />
<span class="inline-infos"><?php echo smartyTranslate(array('s'=>'Street address, P.O. Box, Company name, etc.'),$_smarty_tpl);?>
</span>
</p>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="address2") {?>
<p class="form-group is_customer_param">
<label for="address2"><?php echo smartyTranslate(array('s'=>'Address (Line 2)'),$_smarty_tpl);?>
<?php if (in_array($_smarty_tpl->tpl_vars['field_name']->value,$_smarty_tpl->tpl_vars['required_fields']->value)) {?> <sup>*</sup><?php }?></label>
<input type="text" class="form-control" name="address2" id="address2" value="<?php if (isset($_POST['address2'])) {?><?php echo $_POST['address2'];?>
<?php }?>" />
<span class="inline-infos"><?php echo smartyTranslate(array('s'=>'Apartment, suite, unit, building, floor, etc...'),$_smarty_tpl);?>
</span>
</p>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="postcode") {?>
<?php $_smarty_tpl->tpl_vars['postCodeExist'] = new Smarty_variable(true, null, 0);?>
<p class="required postcode form-group">
<label for="postcode"><?php echo smartyTranslate(array('s'=>'Zip/Postal Code'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="form-control" name="postcode" id="postcode" value="<?php if (isset($_POST['postcode'])) {?><?php echo $_POST['postcode'];?>
<?php }?>" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />
</p>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="city") {?>
<p class="required form-group">
<label for="city"><?php echo smartyTranslate(array('s'=>'City'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="form-control" name="city" id="city" value="<?php if (isset($_POST['city'])) {?><?php echo $_POST['city'];?>
<?php }?>" />
</p>
<!-- if customer hasn't update his layout address, country has to be verified but it's deprecated -->
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="Country:name"||$_smarty_tpl->tpl_vars['field_name']->value=="country") {?>
<p class="required select form-group">
<label for="id_country"><?php echo smartyTranslate(array('s'=>'Country'),$_smarty_tpl);?>
 <sup>*</sup></label>
<select name="id_country" id="id_country" class="form-control">
<option value="">-</option>
<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['countries']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['v']->value['id_country'];?>
"<?php if ((isset($_POST['id_country'])&&$_POST['id_country']==$_smarty_tpl->tpl_vars['v']->value['id_country'])||(!isset($_POST['id_country'])&&$_smarty_tpl->tpl_vars['sl_country']->value==$_smarty_tpl->tpl_vars['v']->value['id_country'])) {?> selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
</option>
<?php } ?>
</select>
</p>
<?php } elseif ($_smarty_tpl->tpl_vars['field_name']->value=="State:name"||$_smarty_tpl->tpl_vars['field_name']->value=='state') {?>
<?php $_smarty_tpl->tpl_vars['stateExist'] = new Smarty_variable(true, null, 0);?>
<p class="required id_state select form-group">
<label for="id_state"><?php echo smartyTranslate(array('s'=>'State'),$_smarty_tpl);?>
 <sup>*</sup></label>
<select name="id_state" id="id_state" class="form-control">
<option value="">-</option>
</select>
</p>
<?php }?>
<?php } ?>
<?php if ($_smarty_tpl->tpl_vars['postCodeExist']->value==false) {?>
<p class="required postcode form-group unvisible">
<label for="postcode"><?php echo smartyTranslate(array('s'=>'Zip/Postal Code'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="form-control" name="postcode" id="postcode" value="<?php if (isset($_POST['postcode'])) {?><?php echo $_POST['postcode'];?>
<?php }?>" onkeyup="$('#postcode').val($('#postcode').val().toUpperCase());" />
</p>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['stateExist']->value==false) {?>
<p class="required id_state select unvisible form-group">
<label for="id_state"><?php echo smartyTranslate(array('s'=>'State'),$_smarty_tpl);?>
 <sup>*</sup></label>
<select name="id_state" id="id_state" class="form-control">
<option value="">-</option>
</select>
</p>
<?php }?>
<p class="textarea form-group">
<label for="other"><?php echo smartyTranslate(array('s'=>'Additional information'),$_smarty_tpl);?>
</label>
<textarea class="form-control" name="other" id="other" cols="26" rows="3"><?php if (isset($_POST['other'])) {?><?php echo $_POST['other'];?>
<?php }?></textarea>
</p>
<?php if (isset($_smarty_tpl->tpl_vars['one_phone_at_least']->value)&&$_smarty_tpl->tpl_vars['one_phone_at_least']->value) {?>
<p class="inline-infos"><?php echo smartyTranslate(array('s'=>'You must register at least one phone number.'),$_smarty_tpl);?>
</p>
<?php }?>
<p class="form-group">
<label for="phone"><?php echo smartyTranslate(array('s'=>'Home phone'),$_smarty_tpl);?>
</label>
<input type="text" class="form-control" name="phone" id="phone" value="<?php if (isset($_POST['phone'])) {?><?php echo $_POST['phone'];?>
<?php }?>" />
</p>
<p class="<?php if (isset($_smarty_tpl->tpl_vars['one_phone_at_least']->value)&&$_smarty_tpl->tpl_vars['one_phone_at_least']->value) {?>required <?php }?>form-group">
<label for="phone_mobile"><?php echo smartyTranslate(array('s'=>'Mobile phone'),$_smarty_tpl);?>
<?php if (isset($_smarty_tpl->tpl_vars['one_phone_at_least']->value)&&$_smarty_tpl->tpl_vars['one_phone_at_least']->value) {?> <sup>*</sup><?php }?></label>
<input type="text" class="form-control" name="phone_mobile" id="phone_mobile" value="<?php if (isset($_POST['phone_mobile'])) {?><?php echo $_POST['phone_mobile'];?>
<?php }?>" />
</p>
<p class="required form-group" id="address_alias">
<label for="alias"><?php echo smartyTranslate(array('s'=>'Assign an address alias for future reference.'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="form-control" name="alias" id="alias" value="<?php if (isset($_POST['alias'])) {?><?php echo $_POST['alias'];?>
<?php } else { ?><?php echo smartyTranslate(array('s'=>'My address'),$_smarty_tpl);?>
<?php }?>" />
</p>
</div>
<div class="account_creation dni">
<h3 class="page-subheading"><?php echo smartyTranslate(array('s'=>'Tax identification'),$_smarty_tpl);?>
</h3>
<p class="required form-group">
<label for="dni"><?php echo smartyTranslate(array('s'=>'Identification number'),$_smarty_tpl);?>
 <sup>*</sup></label>
<input type="text" class="form-control" name="dni" id="dni" value="<?php if (isset($_POST['dni'])) {?><?php echo $_POST['dni'];?%3
Link to comment
Share on other sites

And if I delete the whole smarty cache, I get a new error:

 

Fatal error: Uncaught --> Smarty: Invalid compiled template for '/home/------/www/themes/default-bootstrap/authentication.tpl' <-- thrown in /home/----/www/tools/smarty/sysplugins/smarty_internal_templatebase.php on line182

Link to comment
Share on other sites

You really shouldn't be messing with the Smarty cache files if you don't know what you are doing. It's better to use the buttons on the Performance tab to clear the cache and force templates to be recompiled. If you're still getting that error after replacing authentication.tpl with the code I posted, then your Smarty must have become corrupted.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...