codochi Posted February 15, 2017 Share Posted February 15, 2017 Hello, Code in identity.tpl Original code: <div class="required form-group"> <label for="email" class="required"> {l s='E-mail address'} </label> <input class="is_required validate form-control" data-validate="isEmail" type="email" name="email" id="email" value="{$smarty.post.email}" /> </div> I edited: <div class="required form-group"> <label for="email" class="required"> {l s='E-mail address'} </label> <input class="is_required validate form-control" data-validate="isEmail" type="email" name="email" id="email" value="{$smarty.post.email}" checked="checked" disable="disable"/> </div> I want to disable changing email from customers but it failed, please help. Regards, Link to comment Share on other sites More sharing options...
JeredBolton Posted February 15, 2017 Share Posted February 15, 2017 You don't need checked="checked" and you've got a typo - it should be disabled="disabled". Link to comment Share on other sites More sharing options...
codochi Posted February 16, 2017 Author Share Posted February 16, 2017 You don't need checked="checked" and you've got a typo - it should be disabled="disabled". Hi Jered, I tried it but when I change pass, the error email: "the email address invalid" appeared. Link to comment Share on other sites More sharing options...
JeredBolton Posted February 16, 2017 Share Posted February 16, 2017 Use readonly instead: <input class="is_required validate form-control" data-validate="isEmail" type="email" name="email" id="email" value="{$smarty.post.email}" readonly="readonly"/> 1 Link to comment Share on other sites More sharing options...
codochi Posted February 17, 2017 Author Share Posted February 17, 2017 Use readonly instead: <input class="is_required validate form-control" data-validate="isEmail" type="email" name="email" id="email" value="{$smarty.post.email}" readonly="readonly"/> Love you so much~ 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