MiniVend Akopia Services

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

library of example pages? - small bug.



****** message to minivend-users from Marc Austin ******
Whatever happened to the proposed library of example Minivend pages?
I'd like to see what others are doing. I'd be willing to contribute my pages
along with some notes if there's a place to upload (or link to) them.

In case someone wants to help a newbie... I'm currently digging through
the mailing list trying to figure out how to fix a small bug....

When checking out, if the user selects "Canada" and enters the province "BC"
she gets the Message: state: 'BC' not a two-letter state code

I'm assuming the problem is in my order.profiles file... here's a snippet
from that file...

$state_ok = [if salestax [value state] ne '']1[else]0[/else][/if];
$country =~ s/\W//g;
$zip_ok = ($zip =~ /^\s*\d\d\d\d\d(-\d\d\d\d)?\s*$/);
$us = ($country =~ /^(usa?|unitedstates)$/i);

if (! $us) {
$state_ok = 1;
$zip_ok = 1;
}
$out = <<EOF;
&set = mv_Not_a_state $state_ok
&set = mv_Not_a_zip_code $zip_ok

I'm sure this is an easy fix for you Minivend gurus, any help would be most
appreciated.

Thanks,
Marc Austin



- 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: