UPS Not working - Need Help Urgently - SOLVED

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 Jahre weitere
For the life of me I cannot get the UPS module to work. I have an UPS account with an Access Key. Everything is setup as per the instructions here http://ryan.d3-systems.com/setting-up-ups-shipping-in-nopcommerce.html. But I cannot get the dang thing to calculate the shipping. I get this error everything. "Shipping Options could not be loaded". I have looked high and far for a solution but with no avail. I have the item in stock, they have a weight everything is fine. I am set to put the site live very soon but I won't hit the deadline unless I can sort this out. Any suggestions or help would be mightily appreciated.

Brennan
13 Jahre weitere
I'm assuming you have an account with UPS and have set it up properly in its configuration (user-name, Passwrod and their key).

Right?
13 Jahre weitere
Yes I have. I placed in the username and pass along with the Access Key
13 Jahre weitere
What is your  complete XML request and response files associated with the error?
13 Jahre weitere
How can I view the Request and Response XML?
13 Jahre weitere
Yeah, I can't seem to find where to write the response or request out to the browser. I have tried all I know how on that aspect but with no avail. I'll keep doing research to see if I find a solution.
13 Jahre weitere
Here is the response I got back from UPS. Everything looks fine.

<?xml version="1.0"?>
<RatingServiceSelectionResponse>
  <Response>
    <TransactionReference>
      <CustomerContext>Bare Bones Rate Request</CustomerContext>
      <XpciVersion>1.0001</XpciVersion>
    </TransactionReference>
    <ResponseStatusCode>1</ResponseStatusCode>
    <ResponseStatusDescription>Success</ResponseStatusDescription>
  </Response>
  <RatedShipment>
    <Service>
      <Code>02</Code>
    </Service>
    <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
    <BillingWeight>
      <UnitOfMeasurement>
        <Code>LBS</Code>
      </UnitOfMeasurement>
      <Weight>108.0</Weight>
    </BillingWeight>
    <TransportationCharges>
      <CurrencyCode>USD</CurrencyCode>
      <MonetaryValue>179.16</MonetaryValue>
    </TransportationCharges>
    <ServiceOptionsCharges>
      <CurrencyCode>USD</CurrencyCode>
      <MonetaryValue>0.00</MonetaryValue>
    </ServiceOptionsCharges>
    <TotalCharges>
      <CurrencyCode>USD</CurrencyCode>
      <MonetaryValue>179.16</MonetaryValue>
    </TotalCharges>
    <GuaranteedDaysToDelivery>2</GuaranteedDaysToDelivery>
    <ScheduledDeliveryTime/>
    <RatedPackage>
      <TransportationCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>59.72</MonetaryValue>
      </TransportationCharges>
      <ServiceOptionsCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>0.00</MonetaryValue>
      </ServiceOptionsCharges>
      <TotalCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>59.72</MonetaryValue>
      </TotalCharges>
      <Weight>4.0</Weight>
      <BillingWeight>
        <UnitOfMeasurement>
          <Code>LBS</Code>
        </UnitOfMeasurement>
        <Weight>36.0</Weight>
      </BillingWeight>
    </RatedPackage>
    <RatedPackage>
      <TransportationCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>59.72</MonetaryValue>
      </TransportationCharges>
      <ServiceOptionsCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>0.00</MonetaryValue>
      </ServiceOptionsCharges>
      <TotalCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>59.72</MonetaryValue>
      </TotalCharges>
      <Weight>4.0</Weight>
      <BillingWeight>
        <UnitOfMeasurement>
          <Code>LBS</Code>
        </UnitOfMeasurement>
        <Weight>36.0</Weight>
      </BillingWeight>
    </RatedPackage>
    <RatedPackage>
      <TransportationCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>59.72</MonetaryValue>
      </TransportationCharges>
      <ServiceOptionsCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>0.00</MonetaryValue>
      </ServiceOptionsCharges>
      <TotalCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>59.72</MonetaryValue>
      </TotalCharges>
      <Weight>4.0</Weight>
      <BillingWeight>
        <UnitOfMeasurement>
          <Code>LBS</Code>
        </UnitOfMeasurement>
        <Weight>36.0</Weight>
      </BillingWeight>
    </RatedPackage>
  </RatedShipment>
  <RatedShipment>
    <Service>
      <Code>13</Code>
    </Service>
    <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
    <BillingWeight>
      <UnitOfMeasurement>
        <Code>LBS</Code>
      </UnitOfMeasurement>
      <Weight>108.0</Weight>
    </BillingWeight>
    <TransportationCharges>
      <CurrencyCode>USD</CurrencyCode>
      <MonetaryValue>486.69</MonetaryValue>
    </TransportationCharges>
    <ServiceOptionsCharges>
      <CurrencyCode>USD</CurrencyCode>
      <MonetaryValue>0.00</MonetaryValue>
    </ServiceOptionsCharges>
    <TotalCharges>
      <CurrencyCode>USD</CurrencyCode>
      <MonetaryValue>486.69</MonetaryValue>
    </TotalCharges>
    <GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery>
    <ScheduledDeliveryTime/>
    <RatedPackage>
      <TransportationCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>162.23</MonetaryValue>
      </TransportationCharges>
      <ServiceOptionsCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>0.00</MonetaryValue>
      </ServiceOptionsCharges>
      <TotalCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>162.23</MonetaryValue>
      </TotalCharges>
      <Weight>4.0</Weight>
      <BillingWeight>
        <UnitOfMeasurement>
          <Code>LBS</Code>
        </UnitOfMeasurement>
        <Weight>36.0</Weight>
      </BillingWeight>
    </RatedPackage>
    <RatedPackage>
      <TransportationCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>162.23</MonetaryValue>
      </TransportationCharges>
      <ServiceOptionsCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>0.00</MonetaryValue>
      </ServiceOptionsCharges>
      <TotalCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>162.23</MonetaryValue>
      </TotalCharges>
      <Weight>4.0</Weight>
      <BillingWeight>
        <UnitOfMeasurement>
          <Code>LBS</Code>
        </UnitOfMeasurement>
        <Weight>36.0</Weight>
      </BillingWeight>
    </RatedPackage>
    <RatedPackage>
      <TransportationCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>162.23</MonetaryValue>
      </TransportationCharges>
      <ServiceOptionsCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>0.00</MonetaryValue>
      </ServiceOptionsCharges>
      <TotalCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>162.23</MonetaryValue>
      </TotalCharges>
      <Weight>4.0</Weight>
      <BillingWeight>
        <UnitOfMeasurement>
          <Code>LBS</Code>
        </UnitOfMeasurement>
        <Weight>36.0</Weight>
      </BillingWeight>
    </RatedPackage>
  </RatedShipment>
  <RatedShipment>
    <Service>
      <Code>14</Code>
    </Service>
    <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
    <BillingWeight>
      <UnitOfMeasurement>
        <Code>LBS</Code>
      </UnitOfMeasurement>
      <Weight>108.0</Weight>
    </BillingWeight>
    <TransportationCharges>
      <CurrencyCode>USD</CurrencyCode>
      <MonetaryValue>603.39</MonetaryValue>
    </TransportationCharges>
    <ServiceOptionsCharges>
      <CurrencyCode>USD</CurrencyCode>
      <MonetaryValue>0.00</MonetaryValue>
    </ServiceOptionsCharges>
    <TotalCharges>
      <CurrencyCode>USD</CurrencyCode>
      <MonetaryValue>603.39</MonetaryValue>
    </TotalCharges>
    <GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery>
    <ScheduledDeliveryTime>8:30 A.M.</ScheduledDeliveryTime>
    <RatedPackage>
      <TransportationCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>201.13</MonetaryValue>
      </TransportationCharges>
      <ServiceOptionsCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>0.00</MonetaryValue>
      </ServiceOptionsCharges>
      <TotalCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>201.13</MonetaryValue>
      </TotalCharges>
      <Weight>4.0</Weight>
      <BillingWeight>
        <UnitOfMeasurement>
          <Code>LBS</Code>
        </UnitOfMeasurement>
        <Weight>36.0</Weight>
      </BillingWeight>
    </RatedPackage>
    <RatedPackage>
      <TransportationCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>201.13</MonetaryValue>
      </TransportationCharges>
      <ServiceOptionsCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>0.00</MonetaryValue>
      </ServiceOptionsCharges>
      <TotalCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>201.13</MonetaryValue>
      </TotalCharges>
      <Weight>4.0</Weight>
      <BillingWeight>
        <UnitOfMeasurement>
          <Code>LBS</Code>
        </UnitOfMeasurement>
        <Weight>36.0</Weight>
      </BillingWeight>
    </RatedPackage>
    <RatedPackage>
      <TransportationCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>201.13</MonetaryValue>
      </TransportationCharges>
      <ServiceOptionsCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>0.00</MonetaryValue>
      </ServiceOptionsCharges>
      <TotalCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>201.13</MonetaryValue>
      </TotalCharges>
      <Weight>4.0</Weight>
      <BillingWeight>
        <UnitOfMeasurement>
          <Code>LBS</Code>
        </UnitOfMeasurement>
        <Weight>36.0</Weight>
      </BillingWeight>
    </RatedPackage>
  </RatedShipment>
  <RatedShipment>
    <Service>
      <Code>01</Code>
    </Service>
    <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
    <BillingWeight>
      <UnitOfMeasurement>
        <Code>LBS</Code>
      </UnitOfMeasurement>
      <Weight>108.0</Weight>
    </BillingWeight>
    <TransportationCharges>
      <CurrencyCode>USD</CurrencyCode>
      <MonetaryValue>500.16</MonetaryValue>
    </TransportationCharges>
    <ServiceOptionsCharges>
      <CurrencyCode>USD</CurrencyCode>
      <MonetaryValue>0.00</MonetaryValue>
    </ServiceOptionsCharges>
    <TotalCharges>
      <CurrencyCode>USD</CurrencyCode>
      <MonetaryValue>500.16</MonetaryValue>
    </TotalCharges>
    <GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery>
    <ScheduledDeliveryTime>10:30 A.M.</ScheduledDeliveryTime>
    <RatedPackage>
      <TransportationCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>166.72</MonetaryValue>
      </TransportationCharges>
      <ServiceOptionsCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>0.00</MonetaryValue>
      </ServiceOptionsCharges>
      <TotalCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>166.72</MonetaryValue>
      </TotalCharges>
      <Weight>4.0</Weight>
      <BillingWeight>
        <UnitOfMeasurement>
          <Code>LBS</Code>
        </UnitOfMeasurement>
        <Weight>36.0</Weight>
      </BillingWeight>
    </RatedPackage>
    <RatedPackage>
      <TransportationCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>166.72</MonetaryValue>
      </TransportationCharges>
      <ServiceOptionsCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>0.00</MonetaryValue>
      </ServiceOptionsCharges>
      <TotalCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>166.72</MonetaryValue>
      </TotalCharges>
      <Weight>4.0</Weight>
      <BillingWeight>
        <UnitOfMeasurement>
          <Code>LBS</Code>
        </UnitOfMeasurement>
        <Weight>36.0</Weight>
      </BillingWeight>
    </RatedPackage>
    <RatedPackage>
      <TransportationCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>166.72</MonetaryValue>
      </TransportationCharges>
      <ServiceOptionsCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>0.00</MonetaryValue>
      </ServiceOptionsCharges>
      <TotalCharges>
        <CurrencyCode>USD</CurrencyCode>
        <MonetaryValue>166.72</MonetaryValue>
      </TotalCharges>
      <Weight>4.0</Weight>
      <BillingWeight>
        <UnitOfMeasurement>
          <Code>LBS</Code>
        </UnitOfMeasurement>
        <Weight>36.0</Weight>
      </BillingWeight>
    </RatedPackage>
  </RatedShipment>
</RatingServiceSelectionResponse>
13 Jahre weitere
This may not be relevant because I don't know how UPS works, but I know that USPS works in this way... you sign up for an account and they give you a TESTING account (that doesn't work with nopCommerce) and you have to email them and tell them to switch your account to a live account before you can use it with nopCommerce... maybe UPS works that way too?
13 Jahre weitere
Also, any time that I ever got "Shipping Options could not be loaded" it was because I THOUGHT I set up a shipping option, but in fact didn't have it "active" or whatever... you may want to triple-check your set up to make sure it is all ok. I think that error actually means that the program can't find any shipping options that are configured and set as active...
13 Jahre weitere
It does and I have already done that. They gave me all the correct info. But as far as getting basic rates you only need the access key and you're already setup in production.

Here however in ShippingService.cs it get's past the if statement but not the foreach.

var shippingOptions2 = iShippingRateComputationMethod.GetShippingOptions(shipmentPackage, ref errorSrcm);

                if (shippingOptions2 != null)
                {
                    File.AppendAllText(@"c:\temp\log.txt", @"WORKING" + Environment.NewLine);
                    foreach (var so2 in shippingOptions2)
                    {
                        File.AppendAllText(@"c:\temp\log.txt", @"WORKING STILL" + Environment.NewLine);
                        so2.ShippingRateComputationMethodId = srcm.ShippingRateComputationMethodId;
                        File.AppendAllText(@"c:\temp\log.txt", @srcm.ShippingRateComputationMethodId + Environment.NewLine);
                        shippingOptions.Add(so2);
                    }
                }


But if I go the UPSComputationMethod.cs and Log what is returned the log file is populated. So there is something fishy happening there possibly with this function var iShippingRateComputationMethod = Activator.CreateInstance(Type.GetType(srcm.ClassName)) as IShippingRateComputationMethod;
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.