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.
This patch provides a list of Spanish provinces.
Comment | File | Size | Author |
---|---|---|---|
#1 | spanish_provinces-1923264-1.patch | 2.11 KB | mariogalan |
Comments
Comment #1
mariogalan CreditAttribution: mariogalan commentedHere goes the patch.
Comment #2
laraz CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: rszrama commentedComment #6
bojanz CreditAttribution: bojanz commentedMarking as duplicate of #2304349: Well known administrative areas for Spain -ES- since that issue has a better patch.