Jump to content

Adding address fields to the registration form in PrestaShop 1.7.5

Recommended Posts


I would like to write a module to add the address fields to the registration page. I managed so far to add them to the form using the hook additionalCustomerFormFields.

I also managed to validate the new fields via validateCustomerFormFields, and access then via actionCustomerAccountAdd. However I don't know how to update the form when the country is changed (update the state field). I see that when I change the country, there is an ajax request to the server, but it is different  from the similar request when adding a new address. I would like if possible to reuse the mechanism implemented when country changes when editing or adding an address. 


Edited by preoteasa (see edit history)

Share this post

Link to post
Share on other sites
  • 3 weeks later...

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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More