[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Fed-Ex Shipping Tables
>****** message to minivend-users from "Mr. Christopher F. Miller"
<cfm@maine.com> ******
>There are a raft of FedEx files. The simple easy way
>out is to have client arrange "One Rate" shipping with FedEx. ;^)
>That is same rate for all zones. WAY EASIER!
If only they would listen! =)
>You can process the rates file like this:
>
sub lobsters_shipping {
# add source if need be at $_[1]
my ($RATE,$WEIGHT)=@_;
my (@RATES,$s);
return -1 unless ($WEIGHT);
$WEIGHT=($WEIGHT == int($WEIGHT)) ? int($WEIGHT): int($WEIGHT)+1;
$ZIP=~ substr $ZIP,0,5;
@RATES=split /\n/,$RATES;
foreach $s ( @RATES ) {
next if ($s =~ /^\#/);
my (@rates);
(@rates)=split /\,/,$s;
next unless ( $rates[1] == $WEIGHT);
return $rates[$RATE]; # fortuitous!
}
return -1;
}
>
>Sorry, I can't help with how to plug that into vanilla shipping routines; we
>do it differently.
Very helpful, I've got the FedEx tables all set up, but one question - I
haven't inserted custom code in MiniVend before - how exactly would I do that?
Does anyone out there know how to make this work in a standard shipping way?
I know I will have more clients that will want Fed-Ex shipping...
Thanks!
+-------------------------+
| Tev Kaber, Web Designer |
| AcadiaNet |
| http://www.acadia.net |
+-------------------------+