Jump to content

Uppercase customer details


Recommended Posts

Hi

 

When a customer enters their details the first letter of their name and address is not in capitals if they did not enter it in capital letters.

 

Is there a way to force prestashop to store the customer details in uppercase?

 

Using 1.6

 

thanks

Link to comment
Share on other sites

  • 4 months later...

goto themes/your-theme/authentication.tpl and fiind this code around line 123

<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>
					<div class="required form-group">
						<label for="lastname">{l s='Last name'} <sup>*</sup></label>
						<input type="text" class="is_required validate form-control" data-validate="isName" id="lastname" name="lastname" value="{if isset($smarty.post.lastname)}{$smarty.post.lastname}{/if}" />
					</div>

And change it to

<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|capitalize}{/if}" />
					</div>
					<div class="required form-group">
						<label for="lastname">{l s='Last name'} <sup>*</sup></label>
						<input type="text" class="is_required validate form-control" data-validate="isName" id="lastname" name="lastname" value="{if isset($smarty.post.lastname)}{$smarty.post.lastname|capitalize}{/if}" />
					</div>
Edited by mickeyboy1 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...