Country ignored on checkout?

Posts: 28
Joined: 09/24/2007
Getting busy with the Ubercode.

I'm having a problem with the country in the checkout pages. It seems that no matter what, it is selecting 'canada' as the country, regardless of what is actually selected. In my quote callback function, it always passes 124 as the country (which is canada).

Even weirder, in the quote_callback() function in uc_quote.js, I added an alert() line on line 32 for debugging:

$("select[@name*=delivery]").each(function(i){
alert($(this).attr("name") + "=" + $(this).children("option:selected").text() + " = " + $(this).children("option:selected").val());
details["details[" + $(this).attr("name").split("delivery_")[1].replace(/]/, "") + "]"] = $(this).children("option:selected"
).val();

This pops up "panes[delivery][delivery_country] = CanadaUnited States = 124". I don't know why it is concatenating the two countries like that. It always says that regardless of what is selected, I have
I have Canada, United Kingdom and United States in my countries drop-down.

This is with alpha 7e.

Posts: 5617
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

I'm going to link to this thread from this issue and we'll try to take care of it through the issue post:

http://www.ubercart.org/issue/1346/wrong_country_used_shipping_costs_cal...