rasmus80 Posted August 11, 2009 Share Posted August 11, 2009 Hello,Could anyone help me, how to customize user info, especially how to add required line under Company name. For ex. I would like to add VAT# required line under Company name - in user account?thank you in advance..Rasmus Link to comment Share on other sites More sharing options...
jhnstcks Posted August 11, 2009 Share Posted August 11, 2009 To add a new line you would need at alter your authenctication.tpl file in your theme directory and also create a new field in your addresses table of your sql database. Link to comment Share on other sites More sharing options...
bzshow Posted August 11, 2009 Share Posted August 11, 2009 1, you must add a field to database table ps_customer. 2, modfiy classes/Customer.php , add a var for your ps_customer field. and modfiy function getFields() to add $fields['your_var'] = pSQL($this->your_var);3,modfiy \themes\prestashop\authentication.tpl to add your user info.all is ok. Link to comment Share on other sites More sharing options...
rasmus80 Posted August 11, 2009 Author Share Posted August 11, 2009 hi Guy's,thank you, I will try and hopefully I manage, if not i'll ask for your help again Rasmus Link to comment Share on other sites More sharing options...
EarlMax Posted August 23, 2009 Share Posted August 23, 2009 I would need a new field too, but am worried to break the database and loose the whole site. can someone hel me with this ? 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