Aakhan CheckoutValidations is a Magento 2 extension that enforces custom validation rules for the telephone
and postcode
fields on the checkout page. This extension ensures these fields are filled out with US-specific validation for phone numbers and postal codes.
- Mandatory Field Validation: Ensures
telephone
andpostcode
fields in billing and shipping steps are mandatory. - US Format Validation: Applies US-specific validation for phone numbers and postal codes.
- Easy Integration: Automatically integrates validations into the Magento 2 checkout process.
- Clone the repository:
git clone https://github.com/khanareeb17/CheckoutValidations.git
To download this extension:
- Visit the GitHub repository.
- Click on the "Code" button.
- Select Download ZIP to download the extension files.
- Extract the downloaded ZIP file.
After downloading and extracting, follow these steps to install:
-
Move files: Place the
Aakhan/CheckoutValidations
directory inapp/code/Aakhan/CheckoutValidations
in your Magento 2 installation. -
Enable the module:
php bin/magento module:enable Aakhan_CheckoutValidations rm -rf generated/* var/cache/* var/page_cache/* var/view_preprocessed/* pub/static/* php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy php bin/magento cache:flush