This module adds extra validation rules to customer address fields in PrestaShop, helping store owners enforce higher-quality address data at the point of entry. It targets two common data quality problems: invalid or fake phone numbers, and incomplete address entries that omit a house number.
- Phone number validation via libphonenumber: Uses the libphonenumber library — the same library Google uses on Android — to validate phone numbers. If the number includes a country prefix, it is validated against the rules for that country; if no prefix is present, the rules of the customer's selected country are applied.
- Address field validation via configurable regex: The address1 field is validated against a regular expression that can be customised. The default pattern checks that the address contains at least two letters and a number, reducing the chance of customers submitting an address without a house number.
- Translatable error messages: All validation error messages can be edited using the standard PrestaShop translation panel, making it straightforward to adapt them for different languages or store-specific wording.
This module is aimed at store owners who want to reduce the number of orders with unusable or incomplete address details. It is especially useful for stores that ship physically and depend on accurate delivery information. Because the module relies on the lite version of the libphonenumber library, it requires a reasonably modern PHP environment to function correctly.
Comments (0)
Your review appreciation cannot be sent
Report comment
Report sent
Your report cannot be sent