Hema Posted August 11, 2011 Share Posted August 11, 2011 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 More sharing options...
affect Posted August 12, 2011 Share Posted August 12, 2011 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 More sharing options...
DARKF3D3 Posted February 8, 2014 Share Posted February 8, 2014 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 More sharing options...
El Patron Posted February 9, 2014 Share Posted February 9, 2014 please everyone make sure to test you payment path after making these sort of changes, i.e. make sure fields required by payment methods are still present at payment...else...well it won't work. 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