Crowell Posted October 29, 2014 Share Posted October 29, 2014 Ok so I found such a two examples in authentication.tpl : lastname which is required and website, which is not. <div class="required form-group"> <label for="lastname">{l s='Last name'} <sup>*</sup></label> <input type="text" class="is_required validate form-control" data-validate="isName" id="lastname" name="lastname" value="{if isset($smarty.post.lastname)}{$smarty.post.lastname}{/if}" /> </div> <p class="form-group"> <label for="website">{l s='Website'}</label> <input type="text" class="form-control" id="website" name="website" value="{if isset($smarty.post.website)}{$smarty.post.website}{/if}" /> </p> I found differences and I made such a form for mandatory website: <div class="required form-group"> <label for="website">{l s='Website'} <sup>*</sup></label> <input type="text" class="is_required validate form-control" data-validate="isName" id="website" name="Website" value="{if isset($smarty.post.website)}{$smarty.post.website}{/if}" /> </div> My questions is: what is data-validate="isName" ? How should I change it? Link to comment Share on other sites More sharing options...
sting5 Posted April 29, 2015 Share Posted April 29, 2015 Anyone succeeded on this? I've spent hours on trying to find any information online and "cracking my skull" by trying to edit .tpl file in any way to remove required parameters from registration fields, no luck. Post code can only be either shown or not, but no option on just showing it but not being required field. Company info (e.g. company name, ID code) are not shown while B2B is off, but after removing the "b2benabled" option in authentication.tpl, company ID still not showing... And so on and on and on... Anyone has any solution for this? Link to comment Share on other sites More sharing options...
Ryan Hidri Posted December 18, 2017 Share Posted December 18, 2017 u can follow this link to choose data format https://github.com/pal/prestashop/blob/master/classes/Validate.php anf follow this one to eliminate required fields go to the file classes/Address.php and eliminate 'required' => true, from optional fields before doing this get a copy of the file on your desktop before editing the file or uploding it on the server 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