Hey made a few tweaks to make it more UK specific, hope this is OK? I might be able to pull in a standard list of counties if that would help?
Let me know cheers.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | patch_commit_570b6cfa3503.patch | 2.34 KB | jdelaune |
| #8 | patch_commit_d755f81eff37.patch | 2.27 KB | jdelaune |
| #6 | gb_address_format_1219658-2.patch | 3.04 KB | cameron tod |
| #1 | gb_address_format_1219658.patch | 1.87 KB | fonant |
| patch_commit_7154c3b7452a.patch | 1.57 KB | jdelaune |
Comments
Comment #1
fonant commentedHere's my take on the patch for UK addresses.
County field is present but optional (Royal Mail don't use it if Postcode is present). So I don't think we need to ask the user to select from a long list of counties: this is unneeded, and also has the problem of whether to use old-fashioned or new county names.
Formatting of address output also improved, with new lines as normal.
Comment #2
cameron tod commentedThanks Fonant, this patch makes a lot more sense for UK addresses. Would love to see it applied in the next release version.
Comment #3
jdelaune commentedSo what needs to get discussed? The code could certainly be cleaned up a bit. But overall it seems good. Anything else holding it back from a commit?
Comment #4
fonant commentedJust to say be careful cleaning up the code: the locality_block has a style sheet attached to it, so it needs to remain in place even if not displayed. Probably would be better to move the style sheet include somewhere else?
Sadly the UK address format is so completely different to other places in the world, it didn't seem possible to fiddle things without doing this complete re-arrangement for the UK. At least the UK-specific stuff is all in one place!
Comment #5
cameron tod commentedThere's bug in this patch where the postal code is added to the form twice. I have fixed it locally and will re-roll a new patch shortly.
Comment #6
cameron tod commentedAttaching patch.
Comment #7
flortjes commentedSeems like we've got this issue twice! I've just submitted a patch for issue #939394: Support for UK addresses and then stumbled upon this one.
Comment #8
jdelaune commentedHopefully this one will pass the patch police :P
I've tried to minimise the amount of changes it does to the structure of the form elements. I've added an extra class so we can tweak the arrangements of elements for country specific needs such as this.
Fingers crossed :)
Comment #9
jdelaune commentedFixed an issue with output formatting and re-rolled patch.
Comment #10
Shadlington commentedSubbing
Comment #11
sammyd56 commentedErm...
;)
Comment #12
Shadlington commentedOh!
Well that's good news :D
My apologies for the unnecessary comment!
Comment #13
iaugur commentedI have applied patch #9 and that works for me. Changes State* to County (not required)
Looking forward to this being committed.
Comment #14
Firetracker commentedHi,
Any chance this will be rolled into the actual module? Trying to avoid patching on my latest project :-)
Zap
Comment #15
rlmumfordSetting this to reviewed and tested. Worked for me. Hopefully we can get this into the module now.
Comment #16
damien tournoud commentedThose type of country-specific tweaks are going to be unmaintainable very quickly. I hope we can come up with a better solution.
In the meantime, merged in 7.x-1.x.
Comment #18
joachim commentedSince without this fix UK addresses are pretty much broken, any chance of a new beta release?
Comment #19
fonant commentedYes! A new beta [7.x-1.0-beta3, 2012-May-29] which works sensibly for the UK. Thanks, folks :)