If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Basic Configuration / How to change the maximum length for postcode?

How to change the maximum length for postcode?

Started by ferid on 25 Sep 2011, 9:50 AM · Views: 8,253

Results 1 to 7 of 7
25 Sep 2011, 9:50 AM
#1
ferid avatar

ferid

New Zenner

Join Date:
Jun 2005
Posts:
65
Plugin Contributions:
0

Post #1 by ferid

Hi,

I just noticed that the maximum length for a postcode is 10 character. In the shop configuration I could only find how to change the minimum value. Anyone know how to change the maximum value?

25 Sep 2011, 10:06 AM
#2
ferid avatar

ferid

New Zenner

Join Date:
Jun 2005
Posts:
65
Plugin Contributions:
0

Post #2 by ferid

Found the following entries in the DB:
entry_postcode varchar(10) NOT NULL default '',
customers_postcode varchar(10) NOT NULL default '',
delivery_postcode varchar(10) NOT NULL default '',
billing_postcode varchar(10) NOT NULL default '',

Would I only need to change the value 10 to something higher? Or is there more to it?

25 Sep 2011, 11:44 AM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Post #3 by stevesh

Changing the 10 to something larger in each instance should do it. Back up your DB first.

25 Sep 2011, 2:05 PM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,766
Plugin Contributions:
56

Post #4 by swguy

Which country has postal codes requiring more than 10 characters? You've got me curious.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

25 Sep 2011, 9:05 PM
#5
ferid avatar

ferid

New Zenner

Join Date:
Jun 2005
Posts:
65
Plugin Contributions:
0

Post #5 by ferid

swguy:

Which country has postal codes requiring more than 10 characters? You've got me curious.

Got a customer who in Portugal with the following zip code: 4740-405 Fão

25 Sep 2011, 9:21 PM
#6
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,766
Plugin Contributions:
56

Post #6 by swguy

Very interesting! Thank you.

I wonder if the last 3 characters are intended to be the city?

This

http://algarve.angloinfo.com/countries/portugal/postcodes.asp

says it's nnnn-nnn format, but the city is appended to the postcode in standard address format for that country.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

26 Sep 2011, 5:50 AM
#7
ferid avatar

ferid

New Zenner

Join Date:
Jun 2005
Posts:
65
Plugin Contributions:
0

Post #7 by ferid

I was thinking the same thing. But he filled in city: Esposende
Will contact the customer and check. In the meantime I I edited the database :)