maxmage / international-telephone-input
Magento 2 国际电话输入模块
1.0.0
2018-03-19 20:29 UTC
Requires
- php: 7.0.2|7.0.4|~7.0.6|~7.1.0
This package is not auto-updated.
Last update: 2024-09-18 21:09:50 UTC
README
该模块基于jQuery插件,用于输入和验证国际电话号码,适用于Magento 2。工具脚本(build/js/utils.js)是Google的libphonenumber的定制构建。https://github.com/jackocnr/intl-tel-input/
集成到Magento 2的jQuery插件,用于输入和验证国际电话号码。它为电话字段添加了国旗下拉菜单,检测用户的国籍,显示相关占位符,并提供格式化和验证方法。目前,并非所有功能都已针对Magento 2实现。插件提供了这样的可能性。
jQuery插件的演示页面,并非Magento模块。
安装
-
前往Magento 2的根目录
-
输入以下命令安装模块:
composer require maxmage/international-telephone-input
-
输入以下命令启用模块:
php bin/magento module:enable MaxMage_InternationalTelephoneInput php bin/magento setup:upgrade php bin/magento cache:clean