Closed (duplicate)
Project:
Address Field
Version:
7.x-1.x-dev
Component:
Address formats
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2013 at 09:41 UTC
Updated:
23 Nov 2014 at 21:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mariogalan commentedHere goes the patch.
Comment #2
laraz commentedAnd how can I relate to the locality?
I put this:
if ($address['administrative_area'] == 3)
{
$format['locality_block']['locality']['#options'] = array(
'' => t('--'),
'AL' => t('Alicante'),
'BE' => t('Benidorm'),
'ALTEA' => t('Altea'),
);
}
But only change when I refresh de page.
Thanks.
Comment #3
mariogalan commentedHi laraz!
I don't really understand your question.
I think that you're asking how to add locality information, right?
Well, it wouldn't be that different of the code of the patch, messing a little bit with the form API. I think there's a patch in the queue related to Brazil that goes down to that level of detail.
Anyway, the provinces were added because some shipping method rates are different depending on the origin and destination province but no deeper.
I don't see if that would be of any help.
Comment #4
pcambraYeah, that was rejected a while ago, that's why this was created: http://drupal.org/sandbox/pcambra/1353366
Comment #5
rszrama commentedComment #6
bojanz commentedMarking as duplicate of #2304349: Well known administrative areas for Spain -ES- since that issue has a better patch.