-
Loki Checkout
- User documentation
-
Developer documentation
- Modules
- Getting started
- Architecture
- Basic customizations
- Advanced customizations
- Integrations
-
Troubleshooting
- Common errors
- Disabling Loki Checkout
- Troubleshooting tips
- Troubleshooting JS validation
- Troubleshooting Luma styling
- Where are my TailwindCSS classes?
- Email validation issues
- Button of final step is loading forever
- ZIP code validation seems to tight
- Specific field is required
- Custom component skips step validation
- Troubleshooting the layout
- "Street Address" cannot contain more than 2 lines
- Invalid city
- ADR
- Playbook
- Reference
- Milestones and roadmap
- Module overview
- Frequently Asked Questions
- Loki Components
- Loki Field Components
- Loki Admin Components
- Loki Theme Kit
- Loki Base
- Miscellaneous
Invalid city
When trying to enter certain values in the address field city, you might bump into the validation error Invalid City.
Some city names can not be saved due to the fact that their name is seen as invalid:
's HertogenboschSt. PetersburgTrinidad & TobagoParis (75001)
LokiCheckout makes use of the validator classes of the core, among which the Magento\Customer\Model\Validator\City class. This class does not allow for numbers to occur in the city name, which could be considered either a bug or a feature.
To overcome this issue, the Magento\Customer\Model\Validator\City class needs to be fixed. You can do this yourself, or use the LokiCheckout_LoosenCityValidator module for this instead.
See also github.com/magento/magento2/pull/39859
Last modified: May 13, 2026