web design and hosting
features and pricing my account customer support about ICG Link, Inc. contact ICG Link, Inc.

NetMerchant UPS and Fedex Calculations
   
 
 
You can use Netmerchant to get shipping quotes driectly from UPS. To do this, you must specify each item's weight in lbs. in the optional 4th column in shopname.data, the Netmerchant database containing all or your product information. UPS also requires the following to caculate a shipping quote: sender's 5-digit zipcode, recipient's zipcode or postal code, recipient's country code, packaging type, shipping method, pickup type, and destination type (residence or business). Don't get nervous!!...most of these variables are already being gathered as the customer enters their shipping information during checkout. However, some of these variables must be set in the .calc file used for the type of shipping specified.

The following tags are associated with this option:
Itemloop Tags:
  • <! UNITWEIGHT>- Will be replaced for each item in the basket by the weight specified for the item in the fourth column of shopname.data
  • <! NETWEIGHT> - Takes the number above and multiplies it by the quantity of the item that was ordered.
Non-Item Loop Tag:
  • <! TOTALWEIGHT> - This will be replaced by the total calculated weight of the order.
NetMerchant UPS Calculations

The following is an example of a .calc file that requests UPS quotes for The Imaginary-MadeUp Poster Factory, Inc. from UPS.

The Imaginary-MadeUp Poster Factory, Inc. sells life-sized posters of Linux Penguins dressed in racy leasure suits and ships them to destinations throughout the US using UPS 2nd Day Air. They have scheduled UPS Daily Pickups at their Beverly Hills, CA factory, and use Tube packaging supplied by UPS:

byUPS
method     2DA
pickup     Regular+Daily+Pickup
zipcode    90210
packaging  03
The first line of the calc file is byUPS followed by a linefeed, which tells NetMerchant how it should go about calculating the shipping costs.

The second line starts with the word "method" in lowercase letters followed by a TAB and then the code that corresponds to the UPS service being used...in this case, 2DA...2nd Day Air. Codes for each service are listed in a table below on this page. Please remember that the codes are case sensitive.

The third line starts with the word "pickup" in lowercase letters followed by a TAB and then a code indicating how UPS will receive the package from the shipper... in this case, the shipper has a scheduled daily pickup by UPS. Valid values for this line are listed further down this page.

The fourth line starts with the word "zipcode" in lowercase letters followed by a TAB and then the 5-digit zipcode of the SHIPPING location...in this case 90210, or Beverly Hills.

The fifth line starts with the word "packaging" in lowercase letters followed by a TAB and then the 2 digit code for the type of packaging to be used...in this case "UPS Tube". Codes for the various package types can be found below and are case sensitive.

method - This parameter defines the type of UPS shipping service. This parameter should be set to the product code. If it is exluded or entered incorrectly, it will default to GND, or "Ground". Valid values are case sensitive and are as follows:
UPS Service UPS Product Code
Next Day Air Early AM 1DM
Next Day Air 1DA
Next Day Air Intra (Puerto Rico) 1DAPI
Next Day Air Saver 1DP
2nd Day Air A.M. 2DM
2nd Day Air 2DA
3 Day Select 3DS
Ground GND
Canada Standard STD
Worldwide Express XPR
Worldwide Express Plus XDM
Worldwide Expedited XPD

pickup - This parameter determines which rate chart UPS to calculate the rate, based on how they will receive the package. Price differences can be dramatic. If you are unsure which applies to you, call UPS for clarification. If this line is excluded or entered incorrectly, it will default to One+Time+Pickup. Valid values are case sensitive and are as follows:
Customer+Counter
Letter+Center
On+Call+Air
One+Time+Pickup
Regular+Daily+Pickup

packaging - The type of packaging used for the package. If this variable is excluded or entered incorrectly, it will default to 00 or "Shipper Supplied Packaging". Valid values are as follows:
Packaging Used Corresponding Code
Shipper Supplied Packaging 00
UPS Letter Envelope 01
UPS Tube 03
UPS Express Box 21
International UPS 25KG Box 24
International UPS 10KG Box 25

zipcode - This should be the five digit zipcode of the location from which the package will be shipped. If it is excluded, or an invalid value is entered, the transaction will fail.

Valid example (values must be separated by a single TAB):

zipcode 37204
ICG Link, Inc. 7003 Chadwick Drive, Suite 111, Brentwood, TN 37027