maxmage/international-telephone-input

Magento 2 国际电话输入模块

安装次数: 10,098

依赖项: 0

建议者: 0

安全: 0

星标: 26

关注者: 2

分支: 44

开放问题: 15

语言:JavaScript

类型:magento2-module

1.0.0 2018-03-19 20:29 UTC

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实现。插件提供了这样的可能性。

Demo International Telephone Input module

jQuery插件的演示页面,并非Magento模块。

安装

  1. 前往Magento 2的根目录

  2. 输入以下命令安装模块:

    composer require maxmage/international-telephone-input
    
  3. 输入以下命令启用模块:

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

配置

  1. 在Magento®管理后台的“商店”>“配置”>“客户”>“国际电话输入”下启用国际电话输入模块。

    Disable/Enable International Telephone Input module