en Jump to content
  • 0

Unable to remove "city" as required from registration/address form




I have been able to remove all unnecessary fields and only have Name, Email & Address box show up in the registration field except that I am unable to remove "city" as a required field.


I have edited the following files during the course of hiding/non required fields:







I have also edited the Localization > Countries and only have First Name, Lastname, Email & Address as required fields.


I have also edited the address.php file and made city as isrequired => false.


Also, addressformat.php also has only:

 public static $requireFormFieldsList = array(        'firstname',        'lastname',        'address1',        'Country:name');

While I'm able to hide the city field using the tpl, but the form still shows error - City is required.

Edited by fzk007

Share this post

Link to post
Share on other sites

2 answers to this question

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More