nickywin Posted January 24, 2010 Share Posted January 24, 2010 想将客户注册时必须电话号码强制输入。感谢感谢! Link to comment Share on other sites More sharing options...
21846657 Posted January 25, 2010 Share Posted January 25, 2010 客户注册页面没有module化。PS的电话号码有home和mobile两种。你想“强制”哪一个? 1 Link to comment Share on other sites More sharing options...
nickywin Posted January 25, 2010 Author Share Posted January 25, 2010 强制mobile的,在哪里改呢? Link to comment Share on other sites More sharing options...
21846657 Posted January 25, 2010 Share Posted January 25, 2010 1. 备份后修改classes/Address.php Line 80: protected $fieldsRequired = array('id_country', 'alias', 'lastname', 'firstname', 'address1', 'postcode', 'city'); 为: protected $fieldsRequired = array('id_country', 'alias', 'lastname', 'firstname', 'address1', 'postcode', 'city', 'phone_mobile'); 2. 在address.tpl和authentication.tpl里的 <input type="text" id="phone_mobile" name="phone_mobile" value="{if isset($smarty.post.phone_mobile)}{$smarty.post.phone_mobile}{else}{$address->phone_mobile|escape:'htmlall':'UTF-8'}{/if}" /> 后,加入: * Link to comment Share on other sites More sharing options...
nickywin Posted January 25, 2010 Author Share Posted January 25, 2010 好了,感谢版大。赞一个 Link to comment Share on other sites More sharing options...
tian hong Posted January 28, 2010 Share Posted January 28, 2010 学习了。。谢谢 Link to comment Share on other sites More sharing options...
mint^^ Posted March 1, 2010 Share Posted March 1, 2010 学习了 Link to comment Share on other sites More sharing options...
Guest Posted May 7, 2010 Share Posted May 7, 2010 可以举一反三了~ Link to comment Share on other sites More sharing options...
Guest Posted June 8, 2010 Share Posted June 8, 2010 找了半天,终于找到答案了,感谢! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now