Jump to content

adding default values for the address fields?


Recommended Posts

I am having a similar problem but only when i try to configure the customer address field the "COUNTRY" option does not have a drop-down menu.

The new customers cannot register because of this problem..

Share this post

Link to post
Share on other sites

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}" />

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

Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More