kowal.info

Checkout Address Validation

Composer kowal/module-checkout-validation · Version 1.0.3

Product page

Checkout Address Validation — kowal.co

Description

Check shipping details during checkout and show shoppers which fields need correction before they continue.

For whom

For stores that frequently need to correct postcodes, phone numbers or email addresses supplied at checkout.

Features

  • Country-specific postcode format checks, including Poland, Germany and the US.
  • Telephone and guest email syntax checks.
  • Tax ID warnings, including a checksum check for Polish NIP numbers.

Installation

From the Magento root, with Composer access to the Kowal package, run

composer require kowal/module-checkout-validation
bin/magento module:enable Kowal_CheckoutValidation
bin/magento setup:upgrade
bin/magento cache:clean

Configuration

  1. Open Stores → Configuration → Sales → Checkout → Checkout Address Validation.
  2. Turn on Enable Frontend Validation to show errors in the shipping form.
  3. If you need server-side diagnostics, enable Enable Backend Log-Only Diagnostics separately.

Requirements / notes

The checks validate format. They do not establish whether an address exists. Server diagnostics record the rule and metadata without storing the full customer-entered value in the diagnostic record.

FAQ

Will a tax ID warning stop the order?

The shopper can continue past a tax ID warning. Errors such as a malformed postcode block progression in the form. The backend diagnostics setting only logs an event.

Verify the installation

bin/magento module:status Kowal_CheckoutValidation

In a guest test cart, select Poland and enter 00 001 as the postcode. Check the message, change the postcode to 00-001 and confirm you can continue once the other required fields are complete.