[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Canadian Zip code...
----- Original Message -----
From: Joe Egan <joe@onlinecmn.com>
To: <minivend-users@minivend.com>
Sent: Sunday, November 21, 1999 9:55 AM
Subject: [mv] Canadian Zip code...
> ****** message to minivend-users from "Joe Egan" <joe@onlinecmn.com>
******
>
> I have been trying to get the store to except candian zip codes...the code
> look something like this
>
> v8s2h5
>
> and i have found when the checkout button is hit it runs though
> Orders.pm...and looks to access these lines
>
> sub _ca_postcode {
> my($ref,$var,$val) = @_;
> $val =~ s/[_\W]+//g;
> defined $val
> and
> $val =~ /^[ABCEGHJKLMNPRSTVXYabceghjklmnprstvxy]\d[A-Za-z]\d[A-Za-z]\d$/
> }
>
> but returns a zip=zip error....
>
> anyone find a fix for this...
>
The solution is quite simple, and doesn't require any digging into .pm's.
In your checkout.html page, run a search for zip=zip, and replace it with
zip=postcode. This will tell minivend to accept both US and Canadian
postal/zip codes. For more info on this, look in the minivend docs under:
Advanced Multi-level Order Pages.
Hope this fixes it for ya.
===============================
Pounding away on my keyboard
in the dark.
Cameron
-------------------------------
email: scrumper@earthling.net
ICQ: 13571506
===============================