illegal zone on international shipping

Project: 
Ubercart
Category: 
bug report
Priority: 
normal
Status: 
fixed

Ive set up my site to use the Flatrate per order for international orders.. I thought id keep it simple for now. On the shipping quote general settings page Ive set up Canada, Australia, Japan, Germany France and Italy to be enabled for flatrate. USPS is only available for USA.

The problem is when i go to checkout and then preview order. If Ive selected any country other than US then it gives me a "An illegal choice has been detected. Please contact the site administrator." error and highlights the zone boxes in red.

maybe its something really simple im just not aware of.

the site url is sohokind.com/shop if you want to see it

Thanks!

Re: illegal zone on international shipping

Duplicated the error... I'll fix it. Probably slipped through the cracks when I updated the checkout pane system

Re: Re: illegal zone on international shipping

Yep... was a simple fix. Just had to change a few variable names around. Eye-wink

what did you do?

Thanks for taking care of this! Can you be more specific as to what you did?

I tried replacing everything in uc_cart with the latest from bzr and I got some missing function errors. Im afraid to replace the whole ubercart with the latest code b/c i dont want to introduce new bugs.. Id prefer to just patch my version.

Thanks!

figured it out.. but now there's paypal problems

Hi Ryan, thanks again for your fix. I updated uc_store.module and uc_cart_checkout_pane.inc and got the zone error taken care of.

Unfortunately now when i try to checkout using paypal it says:

Unable to process payment. Please contact the merchant as the shipping address provided by the merchant is invalid, and the merchant has requested that your order must be shipped to that address.

I dont know if paypal only supports US addresses or not. All this international stuff is tricky!

is this resolved in alpha 7e

i just wanted to check if this was corrected for the latest alpha (7e) as i receive the error in 7d (i have not updated yet)?? Or is it a patch?

thx
c.

Re: is this resolved in alpha 7e

This was corrected at least for Alpha 7e and is certainly fine in the Bazaar repository.