mohdqasim98 / international-telephone-input

Integration to Magento 2 a jQuery plugin for entering and validating international telephone numbers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

International Telephone Input module for Magento 2

The module for Magento 2 based on a jQuery plugin for entering and validating international telephone numbers https://github.com/jackocnr/intl-tel-input/. The utilities script (build/js/utils.js) is a custom build of Google's libphonenumber.

Integration to Magento 2 a jQuery plugin for entering and validating international telephone numbers. It adds a flag dropdown to telephone fields, detects the user's country, displays a relevant placeholder and provides formatting/validation methods. At the current moment not all features implement for Magento 2., plugin provides such possibility.

Demo International Telephone Input module

The demo page of a jQuery plugin, not Magento module.

Installation

  1. Go to Magento 2 root directory

  2. Enter following commands to install module:

    composer require maxmage/international-telephone-input
    
  3. Enter following commands to enable module:

    php bin/magento module:enable MaxMage_InternationalTelephoneInput
    php bin/magento setup:upgrade
    php bin/magento cache:clean
    

Configuration

  1. Enable the International Telephone Input module in Magento® Admin under Stores > Configuration > Customers > International Telephone Input.

    Disable/Enable International Telephone Input module

About

Integration to Magento 2 a jQuery plugin for entering and validating international telephone numbers.

License:Open Software License 3.0


Languages

Language:JavaScript 65.1%Language:CSS 25.7%Language:PHP 8.2%Language:HTML 1.0%