1 reply [Last post]
gregmac's picture
Offline
Getting busy with the Ubercode.
Joined: 09/25/2007
Juice: 87
Was this information Helpful?

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.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Country ignored on checkout?

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...