UPS Real Time setup VP-ASP 5.00 Jan 11, 2004 Summary This code interfaces to the UPS to obtain real time shipping rates It is based On Version 1.2 of UPS Online Tools UPSReal time requires Microsoft's XML DLL to be on your server. Because of recent problems with XML this version can also use ASPTEAR or DYNUHTTP 1. Copy all these these files to the VP-ASP install directory upsrealtime.asp - New upsrealtransport.asp - New upsrealconfig.asp - New upsrealinterface.asp - New 2. Change VP-ASP Shop Configuration values xShippingCalc="Other" ' You merchant zip code xMerchantShipZip="33313" 3. Add 1 additional selection to your current shipmethods table It can be any name you want. In the Filename field (shiproutine) add the value upsrealtime.asp. How it Works VP-ASP will display the normal shipping forms. If UPS is selected as the shipping method the file upsrealtime.asp will be called before shopcreateorder.asp It will determine the UPS rates based on the weight being shipping and display a new dropdown list with different UPS options Customer then selects appropriate shipping method. If an error occurs connecting to UPS, an error is displayed and customer can either retry or select a non UPS shipping method. Using Different Transport Methods Your server may or may not have the XML DLL required for this file. Supported methods are XML3, XML4, ASPTEAR and DUNHTTP ASPTEAR and DUNUHTTP can be supplied on request In upsrealconfig.asp you can determine te transport method by this line Const Interface= "XML2" A quote makes the line a comment. So to use XML4 it would look like 'Const Interface= "XML3" Const Interface= "XML4" 'Const Interface= "ASPTEAR" 'Const Interface= "DYNUHTTP" 'Const Interface= "XML2" For more information on Microsoft XML DLLS please see www.vpasp.com/virtprog/info/faq_xmlproblems.htm UPS Real Configuration Options ' Setting to Yes forces calculation of each product separately ' This adds greatly to overhead since multiple calls to UPS are required const xIndividualPackages="No" ' ' If you want the supplier to be used as the shipping address Set this to Yes ' Works only in conjunction with xIndividualpackages=Yes ' The zip code is atken from the supplier record if it exists ' and the other1 field is also filled in the supplier record (any value is OK) const xUseSupplierZip="No" ' const xAutoSeparatepackages="No" ' If weight is greater than 150, then auto separate packages ' Does not apply to individual packages const xAutoseparateWeight=150 ' ' Yes means it is an error if total weight is 0, No means shipping cost=0 ' const xzeroweightError="Yes" ' 'Set to 1 if sent to Residential address. 0 means commercial address const Residentialind=0 ' ' Set to Yes to see various phases of UPS calculation ' Used in conjunction with VP-ASP support staff const xTrace="No" ' ' UPS Rate Chart const UPSRateChart="Regular+Daily+Pickup" 'const UPSRateChart="Customer+Counter" ' the Custome+Counter rate chart will normally give higher rates ' Merchant Surcharge ' The amount to be added to the UPS returned value Const Xmerchantsurcharge=0 Disclaimer This code is provided ASIS. It is up to you to determine if the rates reported by UPS are correct. Virtual Programming has no association with UPS. UPS may withdraw or alter this service at any time. Virtual Programming does NOT guarantee to support changes that UPS makes to their real time Online tools or to current or future UPS online tools or rating and Service Selection ----------------------------------------------------------------------------- VP-ASP IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. Virtual Programming DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL Virtual Programming OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES. ----------------------------------------------------------------------------- LICENSEE ACCEPTS VP-ASP Shopping Cart "AS IS" "WITH ALL FAULTS", Virtual Programming accepts no responsibility for the operation or performance of the VP-ASP Shopping Cart. The entire risk of use and consequences of use of VP-ASP Shopping Cart falls completely on the Licensee and Virtual Programming shall not be liable in any respect for any claims loss or injury alleged to have resulted from use of or in reliance on VP-ASP Shopping Cart. Licensee acknowledges that it has read the foregoing disclaimers of warranty and limitation of liability and understands that Licensee assumes the entire risk of using VP-ASP Shopping Cart.