This patch provides a list of Spanish provinces.

CommentFileSizeAuthor
#1 spanish_provinces-1923264-1.patch2.11 KBmariogalan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mariogalan’s picture

Status: Active » Needs review
FileSize
2.11 KB

Here goes the patch.

laraz’s picture

And 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.

mariogalan’s picture

Hi 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.

pcambra’s picture

Yeah, that was rejected a while ago, that's why this was created: http://drupal.org/sandbox/pcambra/1353366

rszrama’s picture

Component: Code » Address formats
Category: bug » feature
bojanz’s picture

Issue summary: View changes
Status: Needs review » Closed (duplicate)

Marking as duplicate of #2304349: Well known administrative areas for Spain -ES- since that issue has a better patch.