tumil Posted July 13, 2016 Share Posted July 13, 2016 (edited) Hi, by editing classes/Address.php i managed to change two of registration fields to required. It's okay, they are required now but people who are filling the form don't see it, because * is not shown next to the field. Only the error shows when they click 'register' after not filling this fields. How can I add those mandatory stars next to fields' names? And the second thing is that I don't like the names of fields in the error box: As you can see, there's e.g. "passwd" and "nr_vat". How can I change those to full names? Thanks for help. Edited July 13, 2016 by tumil (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 13, 2016 Share Posted July 13, 2016 And the second thing is that I don't like the names of fields in the error box: you can alter field names under localization > translations > field name translations section in your shop back office Link to comment Share on other sites More sharing options...
tumil Posted July 13, 2016 Author Share Posted July 13, 2016 Field names are set in theme's translation and they're okay but error message doesn't show field name but these names. For example: In translation "Password" is "Hasło" but error shows: passwd Link to comment Share on other sites More sharing options...
tumil Posted July 15, 2016 Author Share Posted July 15, 2016 Refresh Any ideas? Link to comment Share on other sites More sharing options...
rocky Posted July 16, 2016 Share Posted July 16, 2016 For the first issue, you'll need to edit address.tpl, find the <label> for the optional fields that are now required, then add <sup>*</sup> before the </label>. For the second issue, changing the "Field name translations" should have worked. Make sure you'd selected the right language. You can double-check whether they've saved correctly in translations/<lang_iso>/fields.php. 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