Coldness Posted November 21, 2012 Share Posted November 21, 2012 (edited) Hello all, I have a problem regarding registration fields in the registration page of Prestashop, let me explain, In Greece, when someone needs an invoice about a product you sell, he must add the following information: Company,Job,his IRS name and his tax id.. So in prestashop there are only company and tax id fields.. So my question is, how can i add these fields in the registration form so the customer can add them when registering? Thank you very much, Paul.. Edited November 23, 2012 by Coldness (see edit history) Link to comment Share on other sites More sharing options...
Coldness Posted November 23, 2012 Author Share Posted November 23, 2012 (edited) up!! Edited November 26, 2012 by Coldness (see edit history) Link to comment Share on other sites More sharing options...
Coldness Posted November 26, 2012 Author Share Posted November 26, 2012 Anyone please? Link to comment Share on other sites More sharing options...
Claudiu Nesa Posted November 27, 2012 Share Posted November 27, 2012 You have to create an new module in order to add things on the registration form. You only have to use the displayCustomerAccountForm hook in order to add the fields on the customer registration form and actionCustomerAccountAdd hook in order to add the new data in the database. Note that you'll have to create an extra table to add those new infos about the customer, you'll probably need to adapt the behavior of other controllers that are handling the things that you want to do with the new data and the solution that I presented works for sure in Prestashop 1.5 (I'm not sure if it works for 1.4 version too) Regards 1 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