Jump to content

add postal code to countries on db and PS


omniatech

Recommended Posts

Hi,

i need an info about postal code on prestashop.

I would to insert postal codes and link them to every italian city.

I have all italian cities but i don't know how to link them, maybe in the DB, but how?

It is possible to do it on prestashop?

Thanks

Link to comment
Share on other sites

Everything is possible - it's only a matter of time.

 

First of all you needed to create a new database table for zip codes and city names and load your data into this new table.

Probably consider how to maintain these table. Zip codes might change from time to time, not very often but still possible.

Then you needed to change your adress controller file in order to read the related table, pre-select cities and decide how to proceed if a city or zip code isn't found.

I haven't investigated in detail but probably some changes son the address class file might be needed as well.

Then you needed to change the template file for address data.

 

If you haven't prestashop developer skills it might take some time to achive this.

Edited by Scully (see edit history)
Link to comment
Share on other sites

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