Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The module currently defines New Zealand regions, added in #1651612: Add administrative area #options for New Zealand regions.
$format['locality_block']['administrative_area']['#options'] = array(
'' => t('--'),
'AUK' => t('Auckland'),
'BOP' => t('Bay of Plenty'),
'CAN' => t('Canterbury'),
'HKB' => t("Hawke's Bay"),
'MWT' => t('Manawatu-Wanganui'),
'NTL' => t('Northland'),
'OTA' => t('Otago'),
'STL' => t('Southland'),
'TKI' => t('Taranaki'),
'WKO' => t('Waikato'),
'WGN' => t('Wellington'),
'WTC' => t('West Coast'),
'GIS' => t('Gisborne District'),
'MBH' => t('Marlborough District'),
'NSN' => t('Nelson'),
'TAS' => t('Tasman District'),
'CIT' => t('Chatham Islands Territory'),
);
However, both Google's dataset and the Universal Postal Union specify that the administrative area field should not be used.
http://www.upu.int/fileadmin/documentsFiles/activities/addressingUnit/nz... has the following:
To benefit from reduced rates, items must meet the following criteria:
– province names, regions and nearby cities must not be used;
Based on this, I suggest removing the region list, but want to get the comment of New Zealand peope first.
Comments
Comment #1
bojanz CreditAttribution: bojanz commentedI see that the patch in #1713698: Correct address labels for Australia is also trying to remove the regions.
Comment #2
John Pitcairn CreditAttribution: John Pitcairn commentedAs long as city and postcode are present there will be no delivery problems in NZ.
Comment #3
bojanz CreditAttribution: bojanz commentedCommitted, thank you.
Comment #6
millionleaves CreditAttribution: millionleaves as a volunteer and commentedI realise this gate was closed a long time ago, but I'd vote to reverse this commit to the Region field for NZ, but perhaps make it optional so it only appears in the address form if it's enabled.
I find it useful to have Regions when creating conditions for shipping rules. The Region field is (or was) a select field of pre-defined values, so I'm able to rely on those values in my rules. The City field can easily be misspelt or made up by a customer, making it impossible to rely on when writing conditions in Rules.
I've manually reinstated the Region field in a couple of sites I've built, but it would be nice if it wasn't necessary to do this going forward.
Comment #7
bojanz CreditAttribution: bojanz at Centarro commentedYou can write an Addressfield plugin that does the same thing (there are similar plugins for China, Estonia, other countries).
See https://www.drupal.org/project/addressfield_estonia, for example
Comment #8
millionleaves CreditAttribution: millionleaves as a volunteer and commentedPerfect - thanks - I'll do that.