Jump to content

adding default values for the address fields?


Recommended Posts

open authentication.tpl file located in theme directory

you will see there code of the register process page

 

 

so, for example, if you want to add predefined text to input field like "first name" search it there

<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>

you will have to add to "input" value="" param, in this case it is equal to 

{if isset($smarty.post.firstname)}{$smarty.post.firstname}{/if}

change this code to:

{if isset($smarty.post.firstname)}{$smarty.post.firstname}{else}{l s='field value'}{/if}

i added there {else}{l s='field value'}

Link to comment
Share on other sites

  • 2 weeks later...

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...