Jump to content

[Tip] make phone as a required field during resgist or modify account info


Guest xcjing

Recommended Posts

if you need to make phone as a required field during resgist or modify account info,
you can do as below:

1. modify it in:address.php, modify:
protected $fieldsRequired = array('id_country', 'alias', 'lastname', 'firstname', 'address1', 'postcode', 'city');
to

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

2. modify authentication.tpl,address.tpl,below black:


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

Link to comment
Share on other sites

Need help in this problem , I try to make the telephone is required I have done what you say but when I try to make order the register menu not come

I have modified address.php in classes directory
I have modified the authentication.tpl in themes\prestashop
I have modified the address.tpl in themes\prestashop

and no menu for rigister come

need help
thanks in advance

Link to comment
Share on other sites

×
×
  • Create New...