{* ** Compatibility code for Prestashop older than 1.4.2 using a recent theme ** Ignore list isn't require here ** $address exist in every PrestaShop version *} {* Will be deleted for 1.5 version and more *} {* If ordered_adr_fields doesn't exist, it's a PrestaShop older than 1.4.2 *} {if !isset($dlv_all_fields)} {$dlv_all_fields.0 = 'company'} {$dlv_all_fields.1 = 'firstname'} {$dlv_all_fields.2 = 'lastname'} {$dlv_all_fields.3 = 'address1'} {$dlv_all_fields.4 = 'address2'} {$dlv_all_fields.5 = 'postcode'} {$dlv_all_fields.6 = 'city'} {$dlv_all_fields.7 = 'country'} {$dlv_all_fields.8 = 'state'} {/if}

1. {l s='Account'}

{l s='Already registered?'} {l s='Click here'}

{l s='New Customer'}

{l s='Instant Checkout'}

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

  • {l s='Personalized and secure access'}
  • {l s='Fast and easy check out'}
  • {l s='Separate billing and shipping addresses'}

{$HOOK_CREATE_ACCOUNT_TOP}

*

* {l s='(5 characters min.)'}

{l s='Title'}

*

*

{l s='Date of Birth'} {* {l s='January'} {l s='February'} {l s='March'} {l s='April'} {l s='May'} {l s='June'} {l s='July'} {l s='August'} {l s='September'} {l s='October'} {l s='November'} {l s='December'} *}

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

{/if}

{l s='Delivery address'}

{$stateExist = false} {foreach from=$dlv_all_fields item=field_name} {if $field_name eq "company"}

{elseif $field_name eq "firstname"}

*

{elseif $field_name eq "lastname"}

*

{elseif $field_name eq "address1"}

*

{elseif $field_name eq "address2"}

{elseif $field_name eq "postcode"}

*

{elseif $field_name eq "city"}

*

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

*

{elseif $field_name eq "vat_number"} {elseif $field_name eq "state" || $field_name eq 'State:name'} {$stateExist = true} {/if} {/foreach}

{l s='DNI / NIF / NIE'} *

{if !$stateExist}

*

{/if}

*

{assign var=stateExist value=false}

{l s='Invoice address'}

{foreach from=$inv_all_fields item=field_name} {if $field_name eq "company"}

{elseif $field_name eq "vat_number"}

{l s='DNI / NIF / NIE'} *

{elseif $field_name eq "firstname"}

*

{elseif $field_name eq "lastname"}

*

{elseif $field_name eq "address1"}

*

{elseif $field_name eq "address2"}

{elseif $field_name eq "postcode"}

*

{elseif $field_name eq "city"}

*

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

*

{elseif $field_name eq "state" || $field_name eq 'State:name'} {$stateExist = true} {/if} {/foreach} {if !$stateExist} {/if}

*

{$HOOK_CREATE_ACCOUNT_FORM}

*{l s='Required field'}