No image available

customer_form_validation

Adds phone number validation (via libphonenumber) and configurable address field regex validation to PrestaShop customer forms, reducing incomplete or invalid address submissions.

Developed by Daresh

Get This Module Free on PS Forum EN
PS 8.0 License: Unknown Status: Unknown Health: Good

Info updated 1 month ago

Sources
PS Forum EN Visit →
Type
Module

Info checked: Mar 2, 2026

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.

  • Reference
    customer_form_validation

  • License
    Unknown
  • PS Compatibility
    8.x
  • Status
    Unknown

Comments (0)

No customer reviews for the moment.
Loading...