Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 8 of 8

Thread: UPS Negotiated Rates

  1. #1
    harsha.gus is offline Senior Member
    Join Date
    Mar 2009
    Posts
    301

    Exclamation UPS Negotiated Rates

    Hi, i have followed all steps for UPS negotiated rates.

    and my UPS account has negotiated rates enabled.

    what i see is
    RTShipRequest is missing
    Code:
    <RateInformation> 
    <NegotiatedRatesIndicator/> 
    </RateInformation>
    Code:
    <roottag_justaddedfordisplayonthispage>
      <UPSRequest>
        <AccessRequest xml:lang="en-us">
          <AccessLicenseNumber>xxxxxxxxxxxxxxxxxxxxx</AccessLicenseNumber>
          <UserId>xxxxxxxxxxxxx</UserId>
          <Password>xxxxxxxxx</Password>
        </AccessRequest>
        <RatingServiceSelectionRequest xml:lang="en-US">
          <Request>
            <RequestAction>Rate</RequestAction>
            <RequestOption>Shop</RequestOption>
            <TransactionReference>
              <CustomerContext>Rating and Service</CustomerContext>
              <XpciVersion>1.0001</XpciVersion>
            </TransactionReference>
          </Request>
          <PickupType>
            <Code>01</Code>
          </PickupType>
          <Shipment>
            <Shipper>
              <Address>
                <City>AVENEL</City>
                <StateProvinceCode>NJ</StateProvinceCode>
                <PostalCode>07001</PostalCode>
                <CountryCode>US</CountryCode>
              </Address>
            </Shipper>
            <ShipTo>
              <Address>
                <City>AVENEL</City>
                <StateProvinceCode>NJ</StateProvinceCode>
                <PostalCode>07001</PostalCode>
                <CountryCode>US</CountryCode>
                <ResidentialAddressIndicator />
              </Address>
            </ShipTo>
            <ShipmentWeight>
              <UnitOfMeasurement>
                <Code>LBS</Code>
              </UnitOfMeasurement>
              <Weight>66.2450</Weight>
            </ShipmentWeight>
            <Package>
              <PackagingType>
                <Code>02</Code>
              </PackagingType>
              <Dimensions>
                <UnitOfMeasurement>
                  <Code>IN</Code>
                </UnitOfMeasurement>
                <Length>0</Length>
                <Width>0</Width>
                <Height>0</Height>
              </Dimensions>
              <Description>1</Description>
              <PackageWeight>
                <UnitOfMeasure>
                  <Code>LBS</Code>
                </UnitOfMeasure>
                <Weight>66.2450</Weight>
              </PackageWeight>
              <OversizePackage />
              <PackageServiceOptions>
                <InsuredValue>
                  <CurrencyCode>USD</CurrencyCode>
                  <MonetaryValue>72.0000</MonetaryValue>
                </InsuredValue>
              </PackageServiceOptions>
            </Package>
            <ShipmentServiceOptions />
           </Shipment>
        </RatinragServiceSelectionRequest>
      </UPSRequest>
    </roottag_justaddedfordisplayonthispage>

    storefront is not requesting the negotiated rates.

    can you please help me with getting the negotiated rates.

    thanks
    rbgx
    AspDotNetStorefront ML
    v8.0.1.4

  2. #2
    DotNetDevelopments is offline Senior Member
    Join Date
    Jul 2008
    Location
    Harlow / Essex / UK
    Posts
    619

    Default

    We had this problem and aspdnsf did not help. The patch they sent was the one we were using.

    You have to edit the core and make it use the rates. It never does at the moment.
    However we ship heavy items and UPS only ship up to 70kg so you need some logic to spilt the parcel up otherwise the shipping methods fail.

    Also the price goes up on number of packages, so you need to work out items that are commonly purchased together and make only one of them as ship separably, also you need to mark all items as ship separably (bar small items at are common addons), or you may lose on your shipping.

    In the end we had to stick with shipping by weights.

    Also UPS are no help in the matter at all and the documentation is pointless.

    Long story short if you want UPS rates to work you need to code it yourself and I highly suggest using another shopping cart's code to base it around.
    (Personally I used the UPS rates from magento to understand how to do it on aspdnsf.)

    We only got to the point of splitting the weight logic and then saw major problems ahead. Until we can have back up shipping options we are stuck. If you only ship small items you may be in luck and a quick few mods should do the trick just fine.

    Edit:
    Just saw you are in the US. UPS might be more helpful. From what I hear, the UPS in the states are far more computer savvy and helpful.
    Last edited by DotNetDevelopments; 02-08-2011 at 01:19 AM.
    =====
    Version (Code/DB): AspDotNetStorefront MSx 9.1.0.1/9.1.0.0
    Execution Mode: 64 Bit
    Dot Net Developments - E-commerce By Experience

  3. #3
    ssgumby is offline Senior Member
    Join Date
    Feb 2009
    Posts
    683

    Default

    I concur with e-trade, we too modified the code to use negotiated rates. It wasnt terribly hard from what i remember. We also wrote logic to split into multiple packages based on a 70 lb weight split. Not perfect but it works.

  4. #4
    harsha.gus is offline Senior Member
    Join Date
    Mar 2009
    Posts
    301

    Exclamation negotiated Rates

    actually, when i enable negotiated rates i get an error.

    Code:
    UPS Error: GetNegotiatedRates is 'true', but no negotiated rates were returned. Cantact UPS to ensure that you are authorized to receive negotiated rates.
    
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    
    Exception Details: System.Exception: UPS Error: GetNegotiatedRates is 'true', but no negotiated rates were returned. Cantact UPS to ensure that you are authorized to receive negotiated rates.
    
    Source Error: 
    
    
    Line 367:            pnlCartAllowsShippingMethodSelection.Visible = cart.CartAllowsShippingMethodSelection;
    Line 368:
    Line 369:            String ShipMethods = cart.GetShippingMethodList(String.Empty, out AnyShippingMethodsFound);
    Line 370:            ShippingOptions.Text = ShipMethods;
    Line 371:
    
    Source File: d:\Domains\mydomain.com\wwwroot\checkoutshipping.aspx.cs    Line: 369 
    
    Stack Trace: 
    
    
    [Exception: UPS Error: GetNegotiatedRates is 'true', but no negotiated rates were returned. Cantact UPS to ensure that you are authorized to receive negotiated rates.]
       AspDotNetStorefrontCore.UPS2Rates.GetRates(Shipments AllShipments, Decimal ShipmentWeight, Decimal ShipmentValue, Decimal ShippingTaxRate, String& RTShipRequest, String& RTShipResponse, ShippingSection& ShippingConfig, UPSSection& UPSConfig) +10609
       AspDotNetStorefrontCore.RTShipping.UPS2GetRates(Shipments AllShipments, String& RTShipRequest, String& RTShipResponse, Decimal ExtraFee, Decimal MarkupPercent, Decimal ShipmentValue, Decimal ShippingTaxRate) +6847
       AspDotNetStorefrontCore.RTShipping.GetRates(Shipments AllShipments, String Carriers, ResultType ListFormat, String FieldName, String CssClass, Decimal ShippingTaxRate, String& RTShipRequest, String& RTShipResponse, Decimal ExtraFee, Decimal MarkupPercent, Decimal ShipmentValue) +2724
       AspDotNetStorefrontCore.ShoppingCart.SyyXHttvv(Address , Decimal ) +17159
       AspDotNetStorefrontCore.ShoppingCart.LiMheo48p(Decimal ) +110
       AspDotNetStorefrontCore.ShoppingCart.GetRTShippingRates(Address thisShippingAddress, String FieldSuffix, String FreeIDs) +699
       AspDotNetStorefrontCore.ShoppingCart.GetShippingMethodList(String FieldSuffix, Boolean& AnyShippingMethodsFound) +31484
       AspDotNetStorefront.checkoutshipping.InitializePageContent() in d:\Domains\mydomain.com\wwwroot\checkoutshipping.aspx.cs:369
       AspDotNetStorefront.checkoutshipping.Page_Load(Object sender, EventArgs e) in d:\Domains\mydomain.com\wwwroot\checkoutshipping.aspx.cs:142
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +47
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
    when i check it with UPS they confirm negotiated rates are enabled for my account and i also can see those when i log in to my UPS account.

    i am on 8.01 Version store

    can anyone help how can i fix this problem.

    thanks
    Last edited by harsha.gus; 02-11-2011 at 07:08 AM.
    rbgx
    AspDotNetStorefront ML
    v8.0.1.4

  5. #5
    ssgumby is offline Senior Member
    Join Date
    Feb 2009
    Posts
    683

    Default

    yes, ive run into that error as well. There are multiple factors, even though you have negotiated rates your account has to be tied to ups tools online, your account rep needs to do that. We had a discussion on this topic in this thread.

    http://forums.aspdotnetstorefront.co...0-UPS-vs-UPS2&

  6. #6
    harsha.gus is offline Senior Member
    Join Date
    Mar 2009
    Posts
    301

    Exclamation XML used for Negotiated Rates

    where can I see the XML request store sends for Negotiated Rates.
    rbgx
    AspDotNetStorefront ML
    v8.0.1.4

  7. #7
    ssgumby is offline Senior Member
    Join Date
    Feb 2009
    Posts
    683

    Default

    Quote Originally Posted by harsha.gus View Post
    where can I see the XML request store sends for Negotiated Rates.
    Set this app config to true, then when you get rates the xml will be on the bottom of the page.

    RTShipping.DumpXmlOnCartPage

  8. #8
    harsha.gus is offline Senior Member
    Join Date
    Mar 2009
    Posts
    301

    Exclamation error on page

    When i set he Dump XML true for UPS2

    i get this error on checkoutshipping.aspx
    HTML Code:
    UPS Error: GetNegotiatedRates is 'true', but no negotiated rates were returned. Cantact UPS to ensure that you are authorized to receive negotiated rates
    rbgx
    AspDotNetStorefront ML
    v8.0.1.4