Rank: Member
Joined: 11/5/2003(UTC) Posts: 1,786
|
If you turn on the "Enable Postal Code Validation" checkbox under Options->Countries in the admin of BV Commerce 5 a "regular expression" is used to validate the zip code data entered by your customers. By default the United States format accepts only a 5 digit zip code. This is because some shipping services will only accept a 5 digit postal code.
If you'd like to keep validation on but want to accept zip and zip+4 postal codes you will need to update the regular expression to the following:
^((\d{5}-\d{4})|(\d{9})|(\d{5}))
1) open your admin web site
2) Go to Options->Countries
3) Click "Edit" next to the "United States"
4) Change the "Postal Code Validation Regex:" value to read as follows: ^((\d{5}-\d{4})|(\d{9})|(\d{5}))
5) Click "Save Changes"
6) Make sure the "Enable Postal Code Validation" checkbox is turned on and click "Save Changes"
|
|
|
|
Rank: Member
Joined: 10/7/2009(UTC) Posts: 2
|
With the expression added, it now accepts zip+4 codes during check out.
However, there is another issue.
Though the address page accept zip+4 codes (23229-4833), the order review page returns 232294833 without hypen. Admin>Order Manager shows 9 numeric without hyphen (232294833). According to USPS, the hypen is required when useing a ZIP+4 ZIP CODE. Before upgrading to version 5.5, the older version retained the hyphen and we did not have this problem. Is this a bug with the new version?
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 1,786
|
No. See my post above. We shipped the software to only accept 5 digits because that's what some shipping services are limited to and what most consumers will enter. I don't even know my own +4 extension and I would wager that most consumers don't either.
If you decide that you need a zip+4 system you can use the regex up above but it is unsupported. The software was not shipped this way and was not tested for things like receipt display of zip+4.
|
|
|
|
Rank: Member
Joined: 2/21/2007(UTC) Posts: 1,113
|
I use the new version with USPS and it is not a problem (I use ShipRush with Shipper). The hyphen causes a problem with FedEx, so it needed to be removed. |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.