[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[mv] Custom Shipping tags
Hello everyone, I have a question....
I had mv3.14 setup with some custom sub routines in the minivend.cfg for
customer shipping options. I recently upgraded to mv 4.04a, and now, on my
checkout page, for the shipping section, I get:
No match found for mode 'surf_A', quantity '', returning 0.
and the drop down box, is blank (ie all 0.00)
here is one of my shipping subroutines...
###############################################################
## SHIPPING SUBROUTINES
## My attempt at the 2-3 Day priority mail
##
GlobalSub <<EOF
sub standard_shipping {
use POSIX qw(modf);
my($TOTAL) = @_;
my $cost;
my $sub_total;
my $f;
my $i;
($f,$i) = modf($TOTAL);
if ($f > 0)
{
$i++;
$TOTAL = $i;
}
$sub_total = ($TOTAL - 2.00);
$cost = (3.95 + $sub_total);
return $cost;
}
EOF
The rest of them, are variations on this one.
When I looked at the new minivend.cfg, it looks as if the subs have been
moved to the usertag dir.
Can you still put subroutines in minivend.cfg? Or are they supposed to go
in the usertag dir or somewhere else?
surf_A is listed in country.asc and is listed as Canada
When I removed the offending Canadian line, I get
No match found for mode 'air_A', quantity '', returning 0.
Anyone have an idea??
Thanks in advance...
Brian Kosick
Brian Kosick
Web Programmer
New Age Consulting Service, Inc.
216-619-2000
briank@nacs.net
_______________________________________________
Minivend-users mailing list
Minivend-users@minivend.com
http://www.minivend.com/mailman/listinfo/minivend-users