Closed (fixed)
Project:
Ubercart
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 May 2009 at 17:24 UTC
Updated:
11 Jun 2009 at 18:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
cha0s commentedIs this actually an Ubercart issue, or just the way the DrupalCon page is handling it?
Comment #2
joachim commentedA site like Drupalcon has to handle orders from all countries, and some countries like the USA need to show that code. So I'd say it's up to the address creation stuff to be clever and know for which countries it's relevant and which not.
Comment #3
Island Usurper commentedThe address formatter is clever enough to know not to output the unneeded address data. The problem is that the people who contributed the country files that Ubercart uses didn't pay enough attention to the address formats.
For example, the current address format for the United Kingdom is
which is the same as the United State's address format and the default value. (!country_name_if only displays the country name if it is different from the store address's country.)
Since this obviously isn't right, we need a patch to the united_kingdom_826_1.cif file to fix it (I'll take care of renaming it to united_kingdom_826_2.cif since it's a new version).
Comment #4
joachim commentedAh... in which case, hats off to Ubercart!
Clearly, that address format hasn't been changed from the US default -- the comma in "!city, !zone_code" is a giveaway also.
Here's a patch:
- removing the zone code
- putting a line break between city and postcode.
Comment #5
Island Usurper commentedThanks a lot. Committed.
Comment #6
longwaveZone name should be used in UK addresses instead of zone code. I posted a v2 of the UK country file at http://drupal.org/node/326836#comment-1583500 including updates to a number of zone names that were missing in v1, but so far it seems to have been overlooked :(
Comment #7
joachim commentedI thought that one was in already! At least, I saw East Riding of Yorkshire in the Drupalcon dropdown!
I'd go for omitting the county -- it's not a formal part of a UK address. If we could make input of the zone non-required too that would be even better. Having to scroll through that dropdown for my county was a pain.
Comment #8
longwaveEast Riding of Yorkshire was already in the country file. The whole of Northern Ireland, plus Avon, Cleveland and Middlesex are still missing from the Drupalcon Paris site.
Zone can be made optional in the UI but this affects all countries, so for a lot of non-UK sites it will probably be set to required. Required address fields should probably be made country-specific rather than site-wide, but I guess that won't happen now until UC3.
Comment #9
Island Usurper commentedI'm not sure how we can get the zone field to be required for some countries and not for others. I agree that it probably won't happen until UC3. Sorry about not dealing with the other issue about the zone list, but I'll merge it in as well. There hasn't been a release since this patch was committed, so it should be fine to keep calling it version 2.