spree-contrib / spree_active_shipping

Spree integration for Shopify's active_shipping gem.
http://guides.spreecommerce.org
134 stars 207 forks source link

We are unable to calculate shipping rates for the selected items #208

Closed westlakem closed 9 years ago

westlakem commented 9 years ago

There is no indicator when this happens what the issue is... Nothing in the web console or in the terminal. Not very helpful when trying to debug why this is happening

brandon-a-hay commented 9 years ago

I believe it gets displayed as a flash message.

westlakem commented 9 years ago

still doesn't tell me what's wrong

 On Sunday, March 1, 2015 5:09 PM, Brandon Hay <notifications@github.com> wrote:

I believe it gets displayed as a flash message.— Reply to this email directly or view it on GitHub.

chriscarpenter12 commented 9 years ago

I am also currently dealing with this, and can't pinpoint where my error may be. Trying to setup US and Canadian shipping with UPS. Double checked my zones and I have config[:track_inventory_levels] = false as well as Shipping Calculators defined for my zones (United States and Canada). The error is not very helpful.

Does anyone know how to debug this to pinpoint where my issue is?

EDIT: Also if I change to a default shipping calculator in spree (Price Sack) my checkout works just fine. So I am guessing its with talking to UPS, but I can't find the communication log to it...

brandon-a-hay commented 9 years ago

Is the zip code of the stock location from where you're purchasing the product a valid zip code?

On Fri, Apr 10, 2015 at 11:11 AM, Chris Carpenter notifications@github.com wrote:

I am also currently dealing with this, and can't pinpoint where my error may be. Trying to setup US and Canadian shipping with UPS. Double checked my zones and I have config[:track_inventory_levels] = false as well as Shipping Calculators defined for my zones (United States and Canada). The error is not very helpful.

Does anyone know how to debug this to pinpoint where my issue is?

— Reply to this email directly or view it on GitHub https://github.com/spree-contrib/spree_active_shipping/issues/208#issuecomment-91588122 .

chriscarpenter12 commented 9 years ago

If you are referring to the business address in Configuration > Stock Locations > Default yes it is correct. I have double checked the address, city, state, zip and country.

Or the address used in the checkout process? It is my home address and know the address, city, state, zip and country are correct.

brandon-a-hay commented 9 years ago

Yeah that's what I meant. I've had the problem and that was the solution. Sorry man

On Sun, Apr 12, 2015 at 6:32 PM, Chris Carpenter notifications@github.com wrote:

If you are referring to the business address in Configuration > Stock Locations > Default yes it is correct. I have double checked the address, city, state, zip and country.

Or the address used in the checkout process? It is my home address and know the address, city, state, zip and country are correct.

— Reply to this email directly or view it on GitHub https://github.com/spree-contrib/spree_active_shipping/issues/208#issuecomment-92144977 .

chriscarpenter12 commented 9 years ago

I figured out my own issue if it helps anyone else. 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 for my current cart 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.

Should there be a migration run to bring in active open carts?

brandon-a-hay commented 9 years ago

Good find. When I installed Spree it automatically added the active shipping gem so this was never an issue.

On Tue, Apr 14, 2015 at 12:38 PM, Chris Carpenter notifications@github.com wrote:

I figured out my own issue if it helps anyone else. 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 for my current cart 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.

Should there be a migration run to bring in active open carts?

— Reply to this email directly or view it on GitHub https://github.com/spree-contrib/spree_active_shipping/issues/208#issuecomment-92965543 .

jspizziri commented 9 years ago

Is this issue resolved?

chriscarpenter12 commented 9 years ago

@jspizziri I resolved my own issue. I'm not sure if @westlakem ever did.

jspizziri commented 9 years ago

@westlakem, did you resolve your issue?