Situation:
Store has default address set to Canada. When manually creating an order via admin/store/orders/create, the order edit page (admin/store/orders/#/edit) comes up with empty fields for the delivery and billing address. The "Country" field comes up as Canada by default. So far, this is how it should be.

Problem:
When loading a saved address for a customer in the US, the "Country" field gets properly updated but the "Zone" select remains set to the provinces of Canada rather than the states of the US.

Solution:
Patch attached. A jQuery selector was being set wrong, so the AJAX post that was supposed to update the zone select never happened. I solved it by changing one line in uc_order.js:

Original: uc_update_zone_select('#edit-' + type + '-country', address['zone']);
Fixed: uc_update_zone_select('edit-' + type + '-country', address['zone']);

CommentFileSizeAuthor
uc_order.js.patch.gz260 bytestr

Comments

rszrama’s picture

Version: 5.x-1.0 » 5.x-1.3
Status: Active » Fixed

Thanks, TR. Committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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