[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Fed-Ex Shipping Tables
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!
--
#FEDEX PRIORITY OVERNIGHT
#,LBS,REGN 2,REGN 3,REGN 4,REGN 5,REGN 6,REGN 7,REGN 8,REGN 9,REGN 10,REGN 11,REGN 12,REGN 13,REGN 14,REGN 15,REGN 16
#LETTER,1,7.10,7.85,8.60,8.90,9.15,9.40,9.65,12.90,12.90,12.90,12.90,8.10,8.10,8.10,8.10
#PAK,1,9.50,1
PACKAGE,1,9.50,10.25,11.75,12.25,12.60,13.15,13.40,15.65,15.65,15.65,15.65,10.05,10.05,10.05,10.05
I'd guess you need concern yourself only with PACKAGE.
Each line is for the package weight, each field is for the region (zone).
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.
Our lobsterman, BTW, is shutting down site for holiday noon EST today. He's
been getting as much as 40-60 orders an hour and is worried about whether or
not he can ship it all. Thanks to MikeH and everyone for helping us put this
together.
cfm
On Wed, Dec 15, 1999 at 10:35:07AM -0500, Tev Kaber wrote:
> ****** message to minivend-users from Tev Kaber <tev@acadia.net> ******
>
> I have a client who needs to have Fed-Ex next day shipping on his store,
> since he sells lobsters. I got the zone and weight tables from the Fed-Ex
> site, but now I'm not sure what to do with them.
>
> Looking at the sample store, "ups_zone.asc" is in the format
> 004-005,4,304,204,244,134,104
> where the first part seems to be the zip code, the second the zone, but I'm
> not sure what the things after that are.
>
> Then, looking at "NextDayAir.csv" is in the format
> Exceed,102,103,104,105,106,107,108,124,125,126
> Letter,11.75,12.50,13.25,13.50,13.75,14.00,14.25,14.75,14.75,20.50
> 1,14.00,15.50,18.50,19.50,20.50,21.25,21.75,23.25,23.25,33.25
>
> I'm not sure what Exceed is, Letter I would guess is under 1 pound, then
> the lines that follow seem to be in the format of the weight, then the
> shipping price for each of 10 zones.
>
> Since the customer doesn't need UPS shipping, I figured if I knew the
> format of the existing UPS tables, I could just paste in the Fed-Ex
> information and use the existing UPS routines. That way I wouldn't have to
> add any code, just change how it is displayed in the shipping dropdown.
>
> Does anyone have clear explanations of how these 2 files are formatted?
> Am I right in thinking that all I need to do is replace the values in these
> 2 files and then change the display name in shipping.asc?
>
> Any help would be much appreciated.
> Quick help would be even more appreciated. =)
>
>
>
> +-------------------------+
> | Tev Kaber, Web Designer |
> | AcadiaNet |
> | http://www.acadia.net |
> +-------------------------+
> -
> 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
--
Christopher F. Miller, Publisher cfm@maine.com
MaineStreet Communications, Inc 208 Portland Road, Gray, ME 04039
1.207.657.5078 http://www.maine.com/
Database publishing, e-commerce, office/internet integration, Debian linux.