Ireland (Republic) does not have a post code, but Northern Ireland does. The addressfield module includes the Northern Ireland counties in the drop-down when Ireland is selected - now technically it probably shouldn't, but the reality is this is what people expect.

However, Northern Ireland has a postcode and the postal code field does not appear when Ireland is selected, even though those counties appear in the drop-down.

The attached patch makes three changes:

  • Provides an optional postcode field for Ireland.
  • Applies the same GB specific tweaks to Ireland.
  • Removes three invalid counties from the drop-down.

Comments

stella’s picture

StatusFileSize
new2.52 KB

Actually, the invalid counties come from the patch over at #1345198: Add irish counties, fix locality label which hasn't been committed, so attached is an updated patch for just the other two changes.

ericmaster’s picture

Actually, I think there should be a checkbox in the field settings form to let the field be optional or required. I need this for Ecuador as well, although we have postal codes now, almost nobody use them. For now I'm altering the form to get this done.

rszrama’s picture

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

fyi, Ireland is (allegedly) introducing post codes next year
http://en.wikipedia.org/wiki/Postal_codes_in_the_Republic_of_Ireland

bojanz’s picture

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

I have fixed the problem of optional postal codes for Ireland, Ecuador, and many others in http://cgit.drupalcode.org/addressfield/commit/?id=8e3b16b.

I won't be enabling postal codes for Ireland before Ireland itself introduces them.
I'm also against including Northern Ireland's counties in Ireland's counties, and will respond in the other issue.

Therefore, the only thing that remains in the current patch is the City & County label/position fix, I'm going to resolve that in the other issue.
Closing this one.

Homotechsual’s picture

Status: Closed (duplicate) » Needs work

Ireland has introduced the EirCode system which is a Post Code-like system but the codes are unique to each address and the Post Code field would need to display the label EirCode to be immediately recogniseable. This could be set to optional as not all customers would be aware of their EirCode at this stage.

Further information: eircode.ie

bojanz’s picture

Status: Needs work » Closed (duplicate)

@MJCO
Please don't reopen old issues, open a new one instead with your request.