- 🇬🇧United Kingdom effortDee
Surprised this hasn't been picked up, it just doesn't make sense when I look at it as a UK resident and how we write our addresses.
- 🇬🇧United Kingdom mirhamzah
Had a look couple of weeks ago. Problem was in the commerceguys/address module, which is being used by this module.
Here is a quick fix:
- Copy event subscriber from modules/contrib/address/tests/modules/address_test/src/EventSubscriber/GreatBritainEventSubscriber.php in your custom module.
- Change namespace accordingly.
- Add service to .services.yml
- Add the line
$definition['locality_type'] = 'city';
in the if country = GB condition
- 🇬🇧United Kingdom slipstreamer
What I would find really useful is if this could include the sub country's like England, Wales, Scotland, Northern Ireland as selectable parts of the address, is that possible?
- 🇬🇧United Kingdom effortDee
I too would love that, I do a lot of web work in Wales and have missed this on a few sites.
- 🇷🇸Serbia bojanz
#5 can't be done in the module itself, because people might also expect to use the administrative_area for the ISO subdivisions: https://www.iso.org/obp/ui/#iso:code:3166:GB
I have opened a commerceguys/addressing issue for fixing the locality_type:
https://github.com/commerceguys/addressing/issues/200Updating version as this can't be backported to 8.x-1.x (since the library version is frozen in that branch).
- Status changed to Fixed
about 1 year ago 9:26pm 31 October 2023 Automatically closed - issue fixed for 2 weeks with no activity.