[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Fedex.pm Fix Download Link
>From: "Mark Lehman" <mlehman@epix.net>
>Reply-To: interchange-users@icdevgroup.org
>To: <interchange-users@icdevgroup.org>
>Subject: Re: [ic] Fedex.pm Fix Download Link
>Date: Thu, 3 Oct 2002 16:42:42 -0400
>Received: from mc1-f29.law16.hotmail.com ([65.54.236.36]) by
>mc1-s10.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 3 Oct
>2002 13:53:42 -0700
>Received: from ic.redhat.com ([128.121.249.201]) by
>mc1-f29.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 3 Oct
>2002 13:46:42 -0700
>Received: from linux20118.dn.net (localhost [127.0.0.1])by ic.redhat.com
>(Postfix) with ESMTPid 3D3F41D37E4; Thu, 3 Oct 2002 16:46:05 -0400 (EDT)
>Received: from bean.epix.net (bean.epix.net [199.224.64.57])by
>ic.redhat.com (Postfix) with ESMTP id 012791D344Ffor
><interchange-users@icdevgroup.org>; Thu, 3 Oct 2002 16:45:53 -0400 (EDT)
>Received: from VEGA (vega.epix.net [199.224.117.26])by bean.epix.net
>(8.12.5/2002082801/PL) with SMTP id g93Kjrsp021448for
><interchange-users@icdevgroup.org>; Thu, 3 Oct 2002 16:45:53 -0400 (EDT)
>Delivered-To: interchange-users@icdevgroup.org
>Message-ID: <013201c26b1d$6c1fc440$1a75e0c7@VEGA>
>References: <011601c26b1c$d666e8c0$1a75e0c7@VEGA>
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Mailer: Microsoft Outlook Express 6.00.2600.0000
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
>Sender: interchange-users-admin@icdevgroup.org
>Errors-To: interchange-users-admin@icdevgroup.org
>X-BeenThere: interchange-users@icdevgroup.org
>X-Mailman-Version: 2.0.11
>Precedence: bulk
>List-Help: <mailto:interchange-users-request@icdevgroup.org?subject=help>
>List-Post: <mailto:interchange-users@icdevgroup.org>
>List-Subscribe:
><http://www.icdevgroup.org/mailman/listinfo/interchange-users>,<mailto:interchange-users-request@icdevgroup.org?subject=subscribe>
>List-Id: Interchange users discussion (high volume)
><interchange-users.icdevgroup.org>
>List-Unsubscribe:
><http://www.icdevgroup.org/mailman/listinfo/interchange-users>,<mailto:interchange-users-request@icdevgroup.org?subject=unsubscribe>
>List-Archive: <http://www.icdevgroup.org/pipermail/interchange-users/>
>X-Original-Date: Thu, 3 Oct 2002 16:42:42 -0400
>Return-Path: interchange-users-admin@icdevgroup.org
>X-OriginalArrivalTime: 03 Oct 2002 20:46:43.0932 (UTC)
>FILETIME=[FB9BF1C0:01C26B1D]
>
>Sorry,
>
>I meant -feedback not feedbach...
>:)
>-Mark
>
>----- Original Message -----
>From: "Mark Lehman" <mlehman@epix.net>
>To: <interchange-users@icdevgroup.org>
>Sent: Thursday, October 03, 2002 4:38 PM
>Subject: [ic] Fedex.pm Fix Download Link
>
>
> > Please test and let me know of any feedbach, through posting back to the
> > mailing list.
> >
> > http://home.epix.net/~mlehman/fedex.html
> >
> > -Mark
> >
> >
> > _______________________________________________
> > interchange-users mailing list
> > interchange-users@icdevgroup.org
> > http://www.icdevgroup.org/mailman/listinfo/interchange-users
>
>
>_______________________________________________
>interchange-users mailing list
>interchange-users@icdevgroup.org
>http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mark,
In the FedEx.pm module you posted you changed the %Attributes hash, the keys
orig_country, orig_zip, dest_country, dest_zip, packaging, This made it so
existing code that uses FedEx.pm breaks. Also the %Packagings hash, I like
how you kept the old package types and remapped them to the new codes, I
was thinking if you also added the new strings 'FedEx Box', 'Your
Packaging', etc and map those to the appropriate code, new code could use
the new definitions, and old code would still work as well.
As for fedex_query.tag, I couldn't get it to work on my box, I'm thinking
the reason was one of the parameters changed as compared to the copy I use
on my box. Every call I make to fedex_query is wrapped by a usertag that I
wrote. I found that FedEx website wasn't very reliable in the past and
wouldn't return a shipping price in some cases, so I wrapped it up in code
that defaults to using rate lookup tables if it can't get the price
dynamically from FedEx.
I was able to get it working on my machine by using the old fedex_query.tag
and replacing the string 'FedEx 2-Day' with 'FedEx 2Day', and changing the
FedEx.pm module to use the old attributes, ie orig_country instead of
origCountry.
I don't ship FedEx Ground, and Home so I didn't need to worry about changing
the original fedex_query.tag to use the new FedEx.pm stuff you wrote.
Thanks for the code you posted, it was really helpful. I guess i'm just
posting this to let you know I did have some problems with your code, but it
was easily fixed to fit my situation.
Rich
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com