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']);
| Comment | File | Size | Author |
|---|---|---|---|
| uc_order.js.patch.gz | 260 bytes | tr |
Comments
Comment #1
rszrama commentedThanks, TR. Committed.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.