Zen Cart Logo
Forums / General Questions / Denmark postcode format 1, min length 4, but 5 digits required

Denmark postcode format 1, min length 4, but 5 digits required

Views: 731

Results 1 to 3 of 3
24 Mar 2014, 4:39 PM
#1
d0ugparker avatar

d0ugparker

Zen Follower

Join Date:
May 2008
Location:
Near the water, somewhere...
Posts:
129
Plugin Contributions:
0

Denmark postcode format 1, min length 4, but 5 digits required

This table

http://www.zen-cart.com/wiki/index.php/Table_countries

shows Demkark having a Zencart postcode
format of 1.

In my Locations/Taxes configurations, I've
confirmed that Denmark's address format
is presently set to a value of 1

Also, in my Configuration settings I have a
minimum postcode length value of 4.

When my Copenhagen client tries ordering,
she claims the site is asking her for a
5 character length postcode. What needs to
be changed?

Warmest regards,

Doug Parker
Las Vegas, NV
USA

31 Mar 2014, 4:34 PM
#2
d0ugparker avatar

d0ugparker

Zen Follower

Join Date:
May 2008
Location:
Near the water, somewhere...
Posts:
129
Plugin Contributions:
0

Re: Denmark postcode format 1, min length 4, but 5 digits required

BUMP! :cool:

1 Apr 2014, 1:45 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Denmark postcode format 1, min length 4, but 5 digits required

I just tested a fresh clean uncustomized v151 site (you said you're using v151), and was able to create a new customer account using a 4-digit postcode, having my Admin configuration set to postcode min length of 1.

Zen Cart's NORMAL operation for the POSTCODE/ZIP field is to ONLY do validation on the length, as specified in the Admin->Configuration->Minimum Values->Postcode Length setting.

But, if you've changed the PHP or JS code on your site that actually does the implementation of that validation, then you'll need to fix whatever is bypassing the way Zen Cart normally operates.