Jump to content

Message in customer Registration form


Zen_j1

Recommended Posts

In customer registration  there is a message ** You must register at least one phone number. 

 

How can I add similar kind of message under country dropdown in customer registration form which file and where in file this message need to added and how? I need to add message in red colour just like above

Link to comment
Share on other sites

You'll need to edit address.tpl, authentication.tpl, order-opc-new-account.tpl and order-opc-new-account-advanced.tpl. It's the following code that displays that message:

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

It's the following code that displays the country:

			{if $field_name eq 'Country:name' || $field_name eq 'country' || $field_name eq 'Country:iso_code'}
				<div class="required form-group">
					<label for="id_country">{l s='Country'} <sup>*</sup></label>
					<select id="id_country" class="form-control" name="id_country">{$countries_list}</select>
				</div>
			{/if}

You can copy the message code and paste it after the </div>, then change the message to whatever you want.

  • Like 1
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...