1<form action="{$link->getPageLink('authentication', true)|escape:'html':'UTF-8'}" method="post" id="account-creation_form" class="std box"> 2 {$HOOK_CREATE_ACCOUNT_TOP} 3 <div class="account_creation"> 4 <h3 class="page-subheading">{l s='Your personal information'}</h3> 5 <p class="required"><sup>*</sup>{l s='Required field'}</p> 6 <div class="form-group"> 7 <label>{l s='Title'}</label> 8 <div> 9 {foreach from=$genders key=k item=gender} 10 <label for="id_gender{$gender->id}" class="radio-inline"> 11 <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}> 12 <span class="label-text">{$gender->name}</span> 13 </label> 14 {/foreach} 15 </div> 16 </div> 17 <div class="required form-group"> 18 <label for="customer_firstname">{l s='First name'} <sup>*</sup></label> 19 <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}" required> 20 </div> 21 <div class="required form-group"> 22 <label for="customer_lastname">{l s='Last name'} <sup>*</sup></label> 23 <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}" required> 24 </div> 25 <div class="required form-group"> 26 <label for="email">{l s='Email'} <sup>*</sup></label> 27 <input type="email" class="is_required validate form-control" data-validate="isEmail" id="email" name="email" value="{if isset($smarty.post.email)}{$smarty.post.email}{/if}" required> 28 </div> 29 <div class="required password form-group"> 30 <label for="passwd">{l s='Password'} <sup>*</sup></label> 31 <input type="password" class="is_required validate form-control" data-validate="isPasswd" name="passwd" id="passwd" required> 32 <p class="help-block">{l s='(Five characters minimum)'}</p> 33 </div> 34 <div class="form-group date-select"> 35 <label>{l s='Date of Birth'}</label> 36 <div class="row"> 37 <div class="col-xs-4"> 38 <select id="days" name="days" class="form-control"> 39 <option value="">-</option> 40 {foreach from=$days item=day} 41 <option value="{$day}" {if ($sl_day == $day)} selected="selected"{/if}>{$day} </option> 42 {/foreach} 43 </select> 44 {* 45 {l s='January'} 46 {l s='February'} 47 {l s='March'} 48 {l s='April'} 49 {l s='May'} 50 {l s='June'} 51 {l s='July'} 52 {l s='August'} 53 {l s='September'} 54 {l s='October'} 55 {l s='November'} 56 {l s='December'} 57 *} 58 </div> 59 <div class="col-xs-4"> 60 <select id="months" name="months" class="form-control"> 61 <option value="">-</option> 62 {foreach from=$months key=k item=month} 63 <option value="{$k}" {if ($sl_month == $k)} selected="selected"{/if}>{l s=$month} </option> 64 {/foreach} 65 </select> 66 </div> 67 <div class="col-xs-4"> 68 <select id="years" name="years" class="form-control"> 69 <option value="">-</option> 70 {foreach from=$years item=year} 71 <option value="{$year}" {if ($sl_year == $year)} selected="selected"{/if}>{$year} </option> 72 {/foreach} 73 </select> 74 </div> 75 </div> 76 </div> 77 {if isset($newsletter) && $newsletter} 78 <div class="checkbox"> 79 <label for="newsletter"> 80 <input type="checkbox" name="newsletter" id="newsletter" value="1" {if isset($smarty.post.newsletter) AND $smarty.post.newsletter == 1} checked="checked"{/if}> 81 <span class="label-text">{l s='Sign up for our newsletter!'}</span> 82 {if array_key_exists('newsletter', $field_required)} 83 <sup> *</sup> 84 {/if} 85 </label> 86 </div> 87 {/if} 88 {if isset($optin) && $optin} 89 <div class="checkbox"> 90 <label for="optin"> 91 <input type="checkbox" name="optin" id="optin" value="1" {if isset($smarty.post.optin) AND $smarty.post.optin == 1} checked="checked"{/if}> 92 <span class="label-text">{l s='Receive special offers from our partners!'}</span> 93 {if array_key_exists('optin', $field_required)} 94 <sup> *</sup> 95 {/if} 96 </label> 97 </div> 98 {/if} 99 </div> 100 {if $b2b_enable} 101 <div class="account_creation"> 102 <h3 class="page-subheading">{l s='Your company information'}</h3> 103 <div class="form-group"> 104 <label for="">{l s='Company'}</label> 105 <input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}"> 106 </div> 107 <div class="form-group"> 108 <label for="siret">{l s='SIRET'}</label> 109 <input type="text" class="form-control" id="siret" name="siret" value="{if isset($smarty.post.siret)}{$smarty.post.siret}{/if}"> 110 </div> 111 <div class="form-group"> 112 <label for="ape">{l s='APE'}</label> 113 <input type="text" class="form-control" id="ape" name="ape" value="{if isset($smarty.post.ape)}{$smarty.post.ape}{/if}"> 114 </div> 115 <div class="form-group"> 116 <label for="website">{l s='Website'}</label> 117 <input type="text" class="form-control" id="website" name="website" value="{if isset($smarty.post.website)}{$smarty.post.website}{/if}"> 118 </div> 119 </div> 120 {/if} 121 122 {if isset($PS_REGISTRATION_PROCESS_TYPE) && $PS_REGISTRATION_PROCESS_TYPE} 123 <div class="account_creation"> 124 <h3 class="page-subheading">{l s='Your address'}</h3> 125 {foreach from=$dlv_all_fields item=field_name} 126 {if $field_name eq "company"} 127 {if !$b2b_enable} 128 <div class="form-group"> 129 <label for="company">{l s='Company'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label> 130 <input type="text" class="form-control" id="company" name="company" value="{if isset($smarty.post.company)}{$smarty.post.company}{/if}"{if in_array($field_name, $required_fields)} required{/if}> 131 </div> 132 {/if} 133 {elseif $field_name eq "vat_number"} 134 {if isset($vat_display) && $vat_display >= 3} 135 <div class="checkbox"> 136 <label for="vat-exemption"> 137 <input 138 type="checkbox" 139 name="vat_exemption" 140 id="vat-exemption" 141 value="1" 142 {if (isset($address->vat_exemption) && $address->vat_exemption) 143 || (isset($address->vat_number) && strlen($address->vat_number))} 144 checked="checked" 145 {/if} 146 > 147 {l s='Yes, I qualify for VAT Relief!'} 148 </label> 149 </div> 150 <p id="vat-exemption-hint" class="help-block" style="display: none;"> 151 {l s='You\'ll get asked to verify your qualification.'} 152 </p> 153 {/if} 154 <div id="vat_number" style="display:none;"> 155 <div class="form-group"> 156 <label for="vat_number">{l s='VAT number'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label> 157 <input type="text" class="form-control" id="vat_number" name="vat_number" value="{if isset($smarty.post.vat_number)}{$smarty.post.vat_number}{/if}"{if in_array($field_name, $required_fields)} required{/if}> 158 </div> 159 </div> 160 {elseif $field_name eq "firstname"} 161 <div class="required form-group"> 162 <label for="firstname">{l s='First name'} <sup>*</sup></label> 163 <input type="text" class="form-control" id="firstname" name="firstname" value="{if isset($smarty.post.firstname)}{$smarty.post.firstname}{/if}" required> 164 </div> 165 {elseif $field_name eq "lastname"} 166 <div class="required form-group"> 167 <label for="lastname">{l s='Last name'} <sup>*</sup></label> 168 <input type="text" class="form-control" id="lastname" name="lastname" value="{if isset($smarty.post.lastname)}{$smarty.post.lastname}{/if}" required> 169 </div> 170 {elseif $field_name eq "address1"} 171 <div class="required form-group"> 172 <label for="address1">{l s='Address'} <sup>*</sup></label> 173 <input type="text" class="form-control" name="address1" id="address1" value="{if isset($smarty.post.address1)}{$smarty.post.address1}{/if}" required> 174 <p class="help-block">{l s='Street address, P.O. Box, Company name, etc.'}</p> 175 </div> 176 {elseif $field_name eq "address2"} 177 <div class="form-group is_customer_param"> 178 <label for="address2">{l s='Address (Line 2)'}{if in_array($field_name, $required_fields)} <sup>*</sup>{/if}</label> 179 <input type="text" class="form-control" name="address2" id="address2" value="{if isset($smarty.post.address2)}{$smarty.post.address2}{/if}"{if in_array($field_name, $required_fields)} required{/if}> 180 <p class="help-block">{l s='Apartment, suite, unit, building, floor, etc...'}</p> 181 </div> 182 {elseif $field_name eq "postcode"} 183 {assign var='postCodeExist' value=true} 184 <div class="required postcode form-group"> 185 <label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label> 186 <input type="text" class="validate form-control" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}"> 187 </div> 188 {elseif $field_name eq "city"} 189 <div class="required form-group"> 190 <label for="city">{l s='City'} <sup>*</sup></label> 191 <input type="text" class="form-control" name="city" id="city" value="{if isset($smarty.post.city)}{$smarty.post.city}{/if}" required> 192 </div> 193 {* if customer hasn't update his layout address, country has to be verified but it's deprecated *} 194 {elseif $field_name eq "Country:name" || $field_name eq "country"} 195 <div class="required select form-group"> 196 <label for="id_country">{l s='Country'} <sup>*</sup></label> 197 <select name="id_country" id="id_country" class="form-control" required> 198 <option value="">-</option> 199 {foreach from=$countries item=v} 200 <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> 201 {/foreach} 202 </select> 203 </div> 204 {elseif $field_name eq "State:name" || $field_name eq 'state'} 205 {assign var='stateExist' value=true} 206 <div class="required id_state select form-group"> 207 <label for="id_state">{l s='State'} <sup>*</sup></label> 208 <select name="id_state" id="id_state" class="form-control" required> 209 <option value="">-</option> 210 </select> 211 </div> 212 {/if} 213 {/foreach} 214 {if $postCodeExist eq false} 215 <div class="required postcode form-group unvisible"> 216 <label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label> 217 <input type="text" class="validate form-control" name="postcode" id="postcode" data-validate="isPostCode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}"> 218 </div> 219 {/if} 220 {if $stateExist eq false} 221 <div class="required id_state select unvisible form-group"> 222 <label for="id_state">{l s='State'} <sup>*</sup></label> 223 <select name="id_state" id="id_state" class="form-control"> 224 <option value="">-</option> 225 </select> 226 </div> 227 {/if} 228 <div class="textarea form-group"> 229 <label for="other">{l s='Additional information'}</label> 230 <textarea class="form-control" name="other" id="other" cols="26" rows="3">{if isset($smarty.post.other)}{$smarty.post.other}{/if}</textarea> 231 </div> 232 <div class="form-group"> 233 <label for="phone">{l s='Home phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label> 234 <input type="text" class="form-control" name="phone" id="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{/if}"> 235 </div> 236 <div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group"> 237 <label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>**</sup>{/if}</label> 238 <input type="text" class="form-control" name="phone_mobile" id="phone_mobile" value="{if isset($smarty.post.phone_mobile)}{$smarty.post.phone_mobile}{/if}"> 239 </div> 240 {if isset($one_phone_at_least) && $one_phone_at_least} 241 {assign var="atLeastOneExists" value=true} 242 <p class="help-block required">** {l s='You must register at least one phone number.'}</p> 243 {/if} 244 <div class="required form-group" id="address_alias"> 245 <label for="alias">{l s='Assign an address alias for future reference.'} <sup>*</sup></label> 246 <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}" required> 247 </div> 248 </div> 249 <div class="account_creation dni"> 250 <h3 class="page-subheading">{l s='Tax identification'}</h3> 251 <div class="required form-group"> 252 <label for="dni">{l s='Identification number'} <sup>*</sup></label> 253 <input type="text" class="form-control" name="dni" id="dni" value="{if isset($smarty.post.dni)}{$smarty.post.dni}{/if}"> 254 <p class="help-block">{l s='DNI / NIF / NIE'}</p> 255 </div> 256 </div> 257 {/if} 258 {$HOOK_CREATE_ACCOUNT_FORM} 259 <div class="submit clearfix"> 260 <input type="hidden" name="email_create" value="1"> 261 <input type="hidden" name="is_new_customer" value="1"> 262 {if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}">{/if} 263 <p class="required"><sup>*</sup>{l s='Required field'}</p> 264 <button type="submit" name="submitAccount" id="submitAccount" class="btn btn-lg btn-success"> 265 {l s='Register'} <i class="icon icon-chevron-right"></i> 266 </button> 267 </div> 268</form> 269