[ic] FedEx Shipping WWW Lookup

Ed LaFrance (New Media E.M.S.) ic_users at newmediaems.com
Wed Sep 22 19:26:50 EDT 2004


At 02:45 PM 9/22/2004, you wrote:

>Hello,
>
>IC 5.2
>
>I've browsed a bunch of the email list and can't figure out how to make
>Fedex Shipping work with WWW Lookups.  Here's what goes into my shipping.asc
>after using the GUI admin to create a couple of FedEx shipping options:
>
>fedexg  FedEx Ground    weight  0       0       e Nothing to ship!
>{'ups' => "0",'ui_ship_type' => "FEDE:FEG",}
>fedexg  FedEx Ground    weight  0       150     f [fedex-query cache=1
>mode=FEG weight="@@TOTAL@@"]             {'PriceDivide' => "0",}
>fedexg  FedEx Ground    weight  150     9999999 e Too heavy for FedEx
>{'PriceDivide' => "0",}
>
>fedex2day       FedEx 2 Day     weight  0       0       e Nothing to ship!
>{'ups' => "0",'ui_ship_type' => "FEDE:F2D",'PriceDivide' => "0",}
>fedex2day       FedEx 2 Day     weight  0       150     f [fedex-query
>cache=1 mode=F2D weight="@@TOTAL@@"]             {'PriceDivide' => "0",}
>fedex2day       FedEx 2 Day     weight  150     9999999 e Too heavy for
>FedEx           {'PriceDivide' => "0",}
>
>"fedexg" and "fedex2day" are both in my "countries" table for the USA.  When
>I use this code:
>
>[loop option=mv_shipmode
>list=|[data table=country key='[default ship_country US]' col=shipmodes]|
>]
>[perl interpolate=1]
>$sub = [shipping mode=[loop-code] noformat=1] + 0;
>$weight = "[scratch weight]";
>$code = "[loop-code]";
>[if value ship_state]
>$state = "[value ship_state]";
>[/if]
>[if session ship_message]
>$ship_message =  "[data session ship_message]";
>[/if]
>return '[loop-code] - [shipping-desc [loop-code]] [shipping
>mode=[loop-code]]<br>';
>[/perl]
>[/loop]
>
>To display my shipping options, I see everything, including zero dollar
>options, and the FedEx's are coming back with $0.00
>
>free - Free Shipping - U.S. $0.00
>uspspm - USPS Priority Mail $3.95
>upsg - UPS Ground $4.93
>ups3 - UPS Three Day $6.20
>upsbak - UPS Two Day AK/HI $0.00
>ups2 - UPS Two Day $8.80
>download - Download Products/No Shipping $0.00
>fedexg - FedEx Ground $0.00
>fedex2day - FedEx 2 Day $0.00
>
>Posts such as this one:
>http://www.icdevgroup.org/pipermail/interchange-users/2002-December/029700.h
>tml
>
>Indicate a fall 2002 update/fix to the Fedex.pm module, but the link is now
>404'd, and I'd hope/expect that those changes were incorporated by the 5.2
>release.
>
>Any suggestions or clues?  Or documentation that I can't seem to find?
>
>Thanks,
>
>-Russell

AFAIK the fedex_query tag and underlying Business::FedEx module will never 
work again, if someone knows differently, feel free to correct me. Chris 
Wenham has written a replacement built on FedEx's DirectConnect API: 
http://www.synesmedia.com/twiki/bin/view/Cyc/FedExShipManager

- Ed


===============================================================
New Media E.M.S.              Technology Solutions for Business
11630 Fair Oaks Blvd., #250   eCommerce | Consulting | Hosting
Fair Oaks, CA  95628          Ed.LaFrance at newmediaems.com
(916) 961-0446                http://www.newmediaems.com
(866) 519-4680 Toll-Free      (916) 961-0447 Fax
=============================================================== 



More information about the interchange-users mailing list