Guest Posted June 8, 2010 Share Posted June 8, 2010 注册时如何让电话选项必填?如果电话没填,出现错误提示。 Link to comment Share on other sites More sharing options...
Guest Posted June 8, 2010 Share Posted June 8, 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...
rocky Posted June 8, 2010 Share Posted June 8, 2010 Topic moved from English forum 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