With the "Copy billing address" format handler enabled in both the Billing information and Shipping information profile types, the "Country" ajax widget in Shipping information doesn't work. I've got United Kingdom as my default country and if I try to change the country in Shipping information, the ajax "Please wait" indicator appears and the country name changes in the select box, but the fields are still UK specific.

Comments

NewZeal’s picture

StatusFileSize
new1.35 KB

I can confirm that this happens in 7.x-1.0. This is because the ajax wrapper div gets swapped out in copy_billing_address.inc both in the initial form build and in the verification process. Attached is a fix in the form of a patch.

googletorp’s picture

Status: Active » Needs review

Thanks, will look at this when I got the time. Hopefully soon.

mrfelton’s picture

I can confirm the problem, and the fix. Updated patch that applies cleanly using git.

googletorp’s picture

Status: Needs review » Fixed

Finally got around to looking at this, works great New Zeal, committed it to dev.

mrfelton’s picture

Status: Fixed » Active

Looks like this was committed against 7.x-1.x in http://drupalcode.org/project/commerce_shipping.git/commit/cf4a18d but not 7.x-2.x.

mrfelton’s picture

Status: Active » Reviewed & tested by the community
googletorp’s picture

Status: Reviewed & tested by the community » Fixed

Having two branches makes fixing stuff a bit of a hazzle at times.

Fixed in 2.x as well.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.