slsv Posted October 6, 2014 Share Posted October 6, 2014 (edited) Hello, I have some problem with my PrestaShop 1.6.0.9. When I try to checkout with quick-order (no registration) and whenever I enter in field Surname I get error that the field is empty. What can be the problem here? Thank's edit: When I try to register new profile also got this error. Edited October 6, 2014 by slsv (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted October 6, 2014 Share Posted October 6, 2014 Are you using a custom template? Link to the store? Link to comment Share on other sites More sharing options...
slsv Posted October 6, 2014 Author Share Posted October 6, 2014 Is default-bootstrap template. Is closed now in maintenance-mode, Link to comment Share on other sites More sharing options...
NemoPS Posted October 6, 2014 Share Posted October 6, 2014 Any module that uses overrides for the authcontroller file? Link to comment Share on other sites More sharing options...
slsv Posted October 6, 2014 Author Share Posted October 6, 2014 (edited) No, i don't have. Is almost clean installation. And only the field for lastname doesn't accept it.. The error is always "The field lastname is required". Where I can check or make it not required? Which controller AuthController? Or in auth.tpl change something for lastname? <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> edit: I've tried and changed in classes/Customer.php but doesn't helped me.. 'lastname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => false, 'size' => 32), Edited October 6, 2014 by slsv (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted October 8, 2014 Share Posted October 8, 2014 Try setting it to false in the address class, as a test Link to comment Share on other sites More sharing options...
slsv Posted October 8, 2014 Author Share Posted October 8, 2014 Yes, that way registration form is working. I'll use it like this for now but in long term I want to fix it so lastname field must be mandatory. Link to comment Share on other sites More sharing options...
NemoPS Posted October 8, 2014 Share Posted October 8, 2014 Is the lastname saved this way? really weird it doesn't recognize it Link to comment Share on other sites More sharing options...
slsv Posted October 8, 2014 Author Share Posted October 8, 2014 Yes, when the field is "'required' => false" is saved normal in database. But when is required I get this error.. realy realy weired and strange for me too. Link to comment Share on other sites More sharing options...
Recommended Posts