MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Zip Code Error.



******    message to minivend-users from John Beima <jbeima@palb.com>     ******

G'Day Again Folks,

First I must appologies, when I posted the original message for help last
night it was 2 am and I had been at it for a bit. Being half asleep I
forgot to post the code, as someone so nicely pointed out. I am sorry!

I narrowed the error down to one line in the order.profile which at this
point in time I don't understand.

Here is the order.profile:

[set checkout_profile]
name=required
address=required
city=required
state=required
zip=required
country=required
phone_day=required
phone_night=required
[calc]
my $country = q{[cgi country]};
$country =~ s/\W+//g;
return 'phone_day=phone' unless $country =~ /^(US|CA|USA|UnitedStates|Canada)$/i;

--> Here is the line that causes the missing filed page to come up and
--> generate a zip=zip error.
--> Zip has a valid Canadian Postal Code in it. Why is it failing?

return "state=state_province\nzip=zip\nphone_day=phone_us";

--> Now just deleting the zip=zip section, allows the order to be placed.
--> But what type of check is being preformed here?

return "state=state_province\nphone_day=phone_us";

[/calc]
email=required
email=email
&fatal = yes

[if value fax_order]
&set = mv_payment Call Us
[elsif config CyberCash]
&set=mv_payment CyberCash Credit Card
[/elsif]
[elsif config CreditCardAuto]
&set=mv_payment Credit Card ([default mv_credit_card_type unknown])
mv_credit_card_info=required
[/elsif]
[else]
&set=mv_payment Will Call
[/else]
[/if]

&final = yes
&set=mv_email [value email]

[/set]

Thanks Again For Your Help,

John Beima
jbeima@palb.com

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: