Closed (duplicate)
Project:
Address Field
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 May 2011 at 04:45 UTC
Updated:
14 Aug 2012 at 11:06 UTC
I had a bit of trouble rolling a patch but have attached the two main files for NZ address format support.
Place in includes and theme, also need the patch to .info and default_mappings to complete the integration.
Thanks for the useful module,
DT
P.S. rename extension to .tar.gz to extract.
| Comment | File | Size | Author |
|---|---|---|---|
| addressfield--nz.tar_.gz | 1.03 KB | davidwhthomas |
Comments
Comment #1
davidwhthomas commentedRe: additional changes to the .info and .module files
addressfield.info file needs
addressfield.module file needs:
Best to add the first .info line when the file is in place, clear 'class registry' cache and then add the second .module patch, to avoid a class not found error.
cheers,
DT
Comment #2
damien tournoud commentedThe
-reloadedbranch has been merged. It comes with reasonable defaults for most countries in the world, including New Zealand. It can be extended in contrib to provide the province dropdown.Comment #3
babbage commentedThe defaults are not reasonable for New Zealand when they have a required field for "State" and there are no states in New Zealand. Even the concept of regions here is pretty tenuous, and certainly never a required field in an address. A year on, a patch is in #1651612: Add administrative area #options for New Zealand regions. This is a bug so it does not seem reasonable to push this to contrib.
Comment #4
davidwhthomas commentedAgreed, this post was made a while ago and things have changed since then. it was meant as a starting point but I'm happy to move on as am using a custom addressfield ctools plugin instead which works fine.
DT