Dharani Posted March 2, 2010 Share Posted March 2, 2010 hi guysi want to add an extra field in the Registration form.i tried somewhat to display the fields in the reg form by editing authentication.tpl file in the theme directory.Now i want to connect that field with my database tablei dono which file to edit? Where to include db query ?Plz helpthanks in advance Link to comment Share on other sites More sharing options...
SpyrosT Posted March 4, 2010 Share Posted March 4, 2010 You need to edit:classes/Address.phpyour theme/address.tpl your theme/authentication.tpl Link to comment Share on other sites More sharing options...
Dharani Posted March 4, 2010 Author Share Posted March 4, 2010 Hey Can u post a sample code for adding new field in the registration formThat will HELP!!!Thanks Link to comment Share on other sites More sharing options...
SpyrosT Posted March 4, 2010 Share Posted March 4, 2010 Is this for an optional field or a required one? Link to comment Share on other sites More sharing options...
Dharani Posted March 4, 2010 Author Share Posted March 4, 2010 Required Field something like name field Link to comment Share on other sites More sharing options...
SpyrosT Posted March 4, 2010 Share Posted March 4, 2010 Take a look here http://www.prestashop.com/forums/viewthread/27333/You should understand the way;) Link to comment Share on other sites More sharing options...
muktadir Posted March 5, 2010 Share Posted March 5, 2010 okey...an wise way is:don't change the database tables, don't change the codes. Otherwise other modules may not work as expected and you won't be able to upgrade to newer versions properly. Write a module for registration addons, create a new table for extra fields. If you cannot build such a module, I can do it.See ya Link to comment Share on other sites More sharing options...
Dharani Posted March 6, 2010 Author Share Posted March 6, 2010 Thanks for all i got the solution from herehttp://forum.prestashopbr.com/viewtopic.php?f=10&t=197#p1315 ;-)Use google Translator to read in English...Its in Portuguese lang 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