Yet another "We are unable to calculate shipping rates for the selected items"

1,019 views
Skip to first unread message

Chris Carpenter

unread,
Apr 10, 2015, 2:54:29 PM4/10/15
to spree...@googlegroups.com
I am trying to get spree_active_shipping working with UPS.

Set my UPS login, password, key and shipper number in Spree Admin.

I have config[:track_inventory_levels] = false in my spree initializer so I do not track inventory levels.

I have a United States Zone configured, and a UPS Ground shipping method set to use my Default shipping category which all my products are in and is using my United States zone.

On checkout at address submission I get the error "We are unable to calculate shipping rates for the selected items".

If I change the shipping method from UPS Ground to a stock calculator (Price Sack) I can complete the checkout process without issue.

Is there a way to debug this further? My development log isn't showing any calls to the UPS api that I can see.

 

Jason Fleetwood-Boldt

unread,
Apr 10, 2015, 3:05:45 PM4/10/15
to spree...@googlegroups.com


I think that error comes from Spree, not UPS (although I’m not 100% sure)

Is your shipping address you are testing out against have a city, state, zip, and country?

Spree won’t be able to match the shipping address correctly to the Shipping Method for the United States zone unless the address is complete.

(personally I’ve hit that problem in testing and been very frustrated— but I assure you once you get the shipping address to click with the right zone it works)

-Jason

Chris Carpenter

unread,
Apr 10, 2015, 3:17:42 PM4/10/15
to spree...@googlegroups.com
I am using the address of my house so I would hope it is correct. Address, city, state, zip and country are all passed through. Like I said the checkout process works if I use an included calculator (Price Sack), but not with UPS Ground.

Chris Carpenter

unread,
Apr 10, 2015, 3:23:34 PM4/10/15
to spree...@googlegroups.com
I can even change the shipping to Flat Rate ($15) and it will process with the zone of my address. 



Moshe Holtzberg

unread,
Apr 12, 2015, 10:35:48 AM4/12/15
to spree...@googlegroups.com
I had a similar issue with fedex turns out I dit have fedex ground home delivery setup as a shipping method and was trying to ship to my house which was a residential address so it was looking for the the ground home calculator/method instead of the regular ground method I had setup

Chris Carpenter

unread,
Apr 12, 2015, 6:23:36 PM4/12/15
to spree...@googlegroups.com
Moshie: Could you elaborate a little more on this? I don't quite follow what you are saying.

Moshe Holtzberg

unread,
Apr 12, 2015, 6:36:37 PM4/12/15
to spree...@googlegroups.com
When active shipping makes an app call to carriers api (fedex in my scenario) it returns all available services for that package.


{
"FedEx First Overnight" => 5886,
"FedEx Priority Overnight" => 2924,
"FedEx Standard Overnight" => 2529,
"FedEx 2 Day Am" => 1987,
"FedEx 2 Day" => 1774,
"FedEx Ground Home Delivery" => 925
}

In this sample response notice how regular ground is not one of the available services that is because the address it is being shipped to is most probably a residential address.

Now when if you dont have FedEx Ground Home Delivery setup as a shipping method in your app it will discard that option because there is no corresponding calculator to use. I other words it matches the service options from the carrier to the calculators you have available to use in your app

Moshe Holtzberg

unread,
Apr 12, 2015, 6:51:13 PM4/12/15
to spree...@googlegroups.com
Start reading from where it says "inside the calculator class" section

https://github.com/spree-contrib/spree_active_shipping/blob/master/README.md

Chris Carpenter

unread,
Apr 12, 2015, 7:11:25 PM4/12/15
to spree...@googlegroups.com

That makes perfect sense now, but in my case I'm 99% sure UPS Ground should be available at my home address. I'll try using some other calculator s though to see.

Chris Carpenter

unread,
Apr 14, 2015, 12:24:54 PM4/14/15
to spree...@googlegroups.com
I figured out my own issue if it helps anyone. I had items in my cart before installing the spree_active_shipping gem and never cleared my cart before testing with the new gem. It never created the associated row in spree_shipments and that's why it was failing in the checkout. I cleared the cart, added new items and it worked right away. Should have thought of this first.

Jason Fleetwood-Boldt

unread,
Apr 14, 2015, 12:33:01 PM4/14/15
to spree...@googlegroups.com


That is interesting. If I were you I’d file that as an issue on the spree_active_shipping, as a warning for others installing the Gem.

Probably should be part of the installation instructions that a migration will be necessary to backport shipping items for customers with existing carts

Chris Carpenter

unread,
Apr 14, 2015, 12:35:59 PM4/14/15
to spree...@googlegroups.com
Jason FB: That was my next step to let them know. Luckily for me the store is not live yet and no active carts besides my own, but this would be a real issue on an active store.
Reply all
Reply to author
Forward
0 new messages