UPS Not working - Need Help Urgently - SOLVED

1 2 Next
Posted: 3 years ago Quote #36713
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
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
NopCommerce ROCKS!
Posted: 3 years ago Quote #36719
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?
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: 3 years ago Quote #36720
Yes I have. I placed in the username and pass along with the Access Key
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
NopCommerce ROCKS!
Posted: 3 years ago Quote #36722
What is your  complete XML request and response files associated with the error?
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: 3 years ago Quote #36723
How can I view the Request and Response XML?
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
NopCommerce ROCKS!
Posted: 3 years ago Quote #36729
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.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
NopCommerce ROCKS!
Posted: 3 years ago Quote #36731
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>
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
NopCommerce ROCKS!
Posted: 3 years ago Quote #36733
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?
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Barry Franklin
www.nopeasy.com - NopEasy Picture Manager v1.1.1 now available!
Upload pictures to your products in NopCommerce quickly and easily with NopEasy Picture Manager v1.1.1!

Coming soon... NopEasy Stock Manager (for FREE)
Check out the demo: http://www.youtube.com/watch?v=NZxhQtLX-GE
Posted: 3 years ago Quote #36734
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...
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Barry Franklin
www.nopeasy.com - NopEasy Picture Manager v1.1.1 now available!
Upload pictures to your products in NopCommerce quickly and easily with NopEasy Picture Manager v1.1.1!

Coming soon... NopEasy Stock Manager (for FREE)
Check out the demo: http://www.youtube.com/watch?v=NZxhQtLX-GE
Posted: 3 years ago Quote #36735
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 post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
NopCommerce ROCKS!
1 2 Next
nopCommerce on facebook