| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
zip code check | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
Im looking at check_zipcode_js.tpl and havent got a clue how to do this. What I need is to change the default 5 digit code check to a between 5 and 9 digit check (no more 9 digits) this is the code below Code:
I don't want to remove the check as is suggested in other posts, just extend it so that US and Canadian have to be between 5 - 9 digits. Any ideas?
__________________
x-cart 4.0.5 (live and heavily modded) Server: freebsd |
|||||||
#2
|
|||||||
|
|||||||
![]() Try this one:
Code:
|
|||||||
#3
|
|||||||
|
|||||||
![]() Thanks, I was looking for something like this. Worked a treat
![]() |
|||||||
#4
|
|||||||
|
|||||||
![]() Didn't work for me im afraid, it allowed users to use even just 1 digit for the zip code.
__________________
x-cart 4.0.5 (live and heavily modded) Server: freebsd |
|||||||
#5
|
|||||||||
|
|||||||||
![]() I would like to take this to even a next step - I just encountered this problem today - not for the first time.
Sometimes my customer get a little over-zealous in filling out their order forms and by way of example, type in Marietta, CA with a zip code of 30062 - well it turns out that the state should have been Georgia, not California. My old e-Commerce software had a checker for this issue - would be nice for XCart to do this...
__________________
Carl Tice X-Cart 4.6.6 X-Payments 3.0 ReBOOT 3.4.1 PHP 5.6.30 MySQL 5.6.35 Linux 2.6.32-042stab120.18 ionCube PHP Loader v4.7.3 Perl 5.10.1 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|