Jump to content

How To Remove Country, Zipcode And State From Registration Form


Hema

Recommended Posts

Hi,

 

How to remove country, zipcode and state fields from registration form

 

or i need to change these all not mandatory.

 

 

 

I tried in address.php class but in authController.php page i cant remove that country and zipcode. IF any one know pls reply this post

Link to comment
Share on other sites

Normally you should be able to remove them from both address class required/validated arrays and auth controller OR assign a constant value to country in auth controller so that zipcode and state don't get checked (assuming you're not from the US). PM me if you've got further questions.

Link to comment
Share on other sites

  • 2 years later...

Hi affect,

I'm trying to doing something similar, I want ot remove the country field (but maintaining the states) from my registration form because i sell only in my country, so there's no need of it.

Assuming that country needed ID is "10" i try in this way:

<input type="hidden" id="id_country" name="id_country" value="10">
{assign var='stateExist' value=true}

But it's doesn't pass the value, so in this way it give error of missing country.

 

Do you think there's a way to do that?

Link to comment
Share on other sites

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
×
×
  • Create New...