Daniel Browning > Business-Shipping > [business-shipping]

Download:
Business-Shipping-2.03.tar.gz

Annotate this POD

CPAN RT

New  1
Open  2
View Bugs
Report a bug
Source  

NAME ^

[business-shipping] - Interchange usertag for Business::Shipping

VERSION ^

[business-shipping] usertag: $Rev: 314 $

Requires Business::Shipping: Revision: 1.90+

AUTHOR ^

Dan Browning <db@kavod.com>, Kavod Technologies, http://www.kavod.com.

SYNOPSIS ^

[business-shipping shipper=UPS_Offline service='Ground Residential' from_zip=98682 to_zip=98270 weight=5.00 ]

REQUIRED MODULES ^

The following modules are required for offline UPS rate estimation. See doc/INSTALL.

 Business::Shipping::DataFiles (any)
 Class::MethodMaker::Engine (any)
 Config::IniFiles (any)
 Log::Log4perl (any)

OPTIONAL MODULES ^

The following modules are used by online rate estimation and tracking. See doc/INSTALL.

 Cache::FileCache (any)
 Clone (any)
 Crypt::SSLeay (any)
 LWP::UserAgent (any)
 XML::DOM (any)
 XML::Simple (2.05)

INSTALLATION ^

Here is a general outline for installing [business-shipping] in Interchange.

 * Follow the instructions for installing Business::Shipping.
    - (http://www.kavod.com/Business-Shipping/latest/doc/INSTALL.html)
 
 * Copy the business-shipping.tag global usertag into one of these directories:
    - interchange/usertags (IC 4.8.x)
    - interchange/code/UserTags (IC 4.9+)
   The directory will be found in /usr/lib/interchange/ if you are using the LSB
   or RPM installation.

 * Add any shipping methods that are needed to catalog/products/shipping.asc
   (examples below)
 
 * Add the following Interchange variables to provide default information.
   These can be added by copying/pasting into the variable.txt file, then
   restarting Interchange.
   
   Note that "BSHIPPING" is used to denote fields that can be used for any 
   Business::Shipping shipper.  Note that there should be one tab separating
   each of the three columns below.
   
   UPS_TIER is the pricing tier.

 BSHIPPING_LOG_INVALID_REQUESTS 1       Shipping
 BSHIPPING_DEBUG        0       Shipping
 BSHIPPING_GEN_INCIDENTS        0       Shipping
 BSHIPPING_FROM_COUNTRY US      Shipping
 BSHIPPING_FROM_STATE   WA      Shipping
 BSHIPPING_FROM_ZIP     98682   Shipping
 BSHIPPING_MAX_WEIGHT   0       Shipping
 BSHIPPING_TO_COUNTRY_FIELD     country Shipping
 BSHIPPING_TO_CITY_FIELD        city    Shipping
 BSHIPPING_TO_ZIP_FIELD zip     Shipping
 UPS_ACCESS_KEY AB12CDEF345G6   Shipping 
 UPS_USER_ID    userid  Shipping
 UPS_PASSWORD   mypassword      Shipping
 UPS_PICKUP_TYPE        Daily Pickup    Shipping
 UPS_TIER       8       Shipping
 USPS_USER_ID   123456ABCDE7890 Shipping
 USPS_PASSWORD  abcd1234d5      Shipping
    
 * Sample shipping.asc entry:

UPS_GROUND: UPS Ground criteria weight min 0 max 2000 cost f [business-shipping mode="UPS_Offline" service="Ground Residential" weight="@@TOTAL@@"]

UPGRADE from [ups-query] ^

If you already use [ups-query], you can replace it with the version here to be able to re-use all of your old shipping.asc entries. It is untested, so please report any bugs.

COPYRIGHT AND LICENCE ^

Copyright (c) 2003-2004 Kavod Technologies, Dan Browning. All rights reserved. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. See LICENSE for more info.