Jump to content

Phone number should be required field


getback

Recommended Posts

HI
go to theme-->your template--> open authentication.tpl
from



{l s='Home phone'}
               <input type="text" class="text" name="phone" id="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone}{/if}" />





To

        

{l s='Home phone'}
   <input type="text" class="text" name="phone" id="phone" value="{if isset($smarty.post.phone)}{$smarty.post.phone|escape:'htmlall,UTF-8'|stripslashes}{/if}" />
*



have fun ;)

Link to comment
Share on other sites

  • 1 year later...

partly true ;)

You have to change in the file /classes/adresses.php

the line:

protected $fieldsRequired = array('id_country', 'alias', 'lastname', 'firstname', 'address1', 'postcode', 'city');

to:

protected $fieldsRequired = array('id_country', 'alias', 'lastname', 'firstname', 'address1', 'postcode', 'city', 'phone');


Now it will work :)

regards,
SonnyBoy

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