Dan Browning > Business-Shipping-0.77 > [business-shipping]

Download:
Business-Shipping-0.77.tar.gz

Annotate this POD

CPAN RT

New  1
Open  2
View Bugs
Report a bug
Source   Latest Release: Business-Shipping-2.03

NAME ^

[business-shipping] - Live rate lookup for UPS and USPS (using Business::Shipping)

AUTHOR ^

        Dan Browning
        <db@kavod.com>
        http://www.kavodtechnologies.com

SYNOPSIS ^

[business-shipping mode="USPS" service="Airmail Parcel Post" weight="4" to_country="Albania" ]

[business-shipping mode="UPS" service="GNDRES" from_zip="98682" to_zip="98270" to_residential=1 weight="3.5" ]

INSTALLATION ^

Here is a general outline of the installation in interchange.

 * Follow installation instructions for Business::Shipping
    - http://www.kavod.com/Business-Shipping
 
 * Copy the business-shipping.tag file into one of these directories:
        - interchange/usertags (IC 4.8.x)
        - interchange/code/UserTags (IC 4.9.x)

 * Add any shipping methods that are needed to catalog/products/shipping.asc
   (The defaults that come with Interchange will work, but they will not use
   the new software ).

Note that "XPS" is used to denote fields that can be used for UPS or USPS.

UPS_ACCESS_KEY FJ28AWJN328A3 Shipping UPS_USER_ID userid Shipping UPS_PASSWORD mypassword Shipping UPS_PICKUPTYPE Daily Pickup Shipping

-or-

USPS_USER_ID 143264KAVOD7241 Shipping USPS_PASSWORD awji2398r2 Shipping

XPS_FROM_COUNTRY US Shipping XPS_FROM_ZIP 98682 Shipping XPS_TO_COUNTRY_FIELD country Shipping XPS_TO_ZIP_FIELD zip Shipping

 * USPS International Service types:
 
        'Global Express Guaranteed Document Service',
        'Global Express Guaranteed Non-Document Service',
        'Global Express Mail (EMS)',
        'Global Priority Mail - Flat-rate Envelope (large)',
        'Global Priority Mail - Flat-rate Envelope (small)',
        'Global Priority Mail - Variable Weight Envelope (single)',
        'Airmail Letter Post',
        'Airmail Parcel Post',
        'Economy (Surface) Letter Post',
        'Economy (Surface) Parcel Post',

 * Sample shipping.asc entry:

USPS_AIRMAIL_POST: USPS International criteria [criteria-intl]

        min                     0
        max                     4
        cost            f [business-shipping mode="USPS" service="Airmail Parcel Post" weight="@@TOTAL@@"]
        
        min                     4
        max                     999999
        cost            f [business-shipping mode="USPS" service="Airmail Parcel Post" weight="@@TOTAL@@"]