此插件可用于在使用国家/地区国旗在 WooCommerce 中购买商品时轻松输入电话号码。
当您需要 100% 正确的客户电话号码时,此插件特别有用。
包括自动设置国家/地区(使用客户端 IP 地址)和电话号码验证的选项。
要开始插件工作 – 您只需激活它。这真的很简单。
现场演示: 链接
Gravity Forms 插件: 链接
特征:
- 通过管理面板实现舒适的可用性
- 适用于任何 WooCommerce 主题
- 跨浏览器兼容性
- 无需编码
可用过滤器:
显示首选国家/地区:
add_filter('wcipi_preferred_countries', function(){ return ['ua', 'us']; });
覆盖电话输入:
add_filter('wcipi_elements', function(){ return "#billing_phone_1, #shipping_phone_2"; });
v. 2.1.8 22.05.2024 - "wcipi_elements" filter added to override "phone input" elements - compatibility fixes v. 2.1.7 28/01/2024 - "Set country automatically" feature fix v. 2.1.6 22/01/2024 - WooCommerce 8.* compatibility updates - added an ability to search through the list of countries v. 2.1.5 27/03/2023 - bug fixes - WooCommerce 7.5.1 compatibility fixes - Ukrainian localisation added v. 2.1.4 22/09/2022 - compatibility fixes v. 2.1.3 10/02/2022 - ipinfo.io API compatibility fix v. 2.1.2 31/01/2022 - compatibility fixes - the ability to use an ipinfo.io account for client IP address check v. 2.1.1 15/05/2021 - compatibility fixes v. 2.1 12/04/2021 - compatibility fixes v. 2.0.3 26/04/2020 - preferred countries filter added v. 2.0.2 18/02/2020 - compatibility fixes - in_array() warning fixed - localization fixes v. 2.0.1 20/02/2019 - 'set default country' setting added - fixed bug when validation message overlaps - WooCommerce 3.5 compatibility fixes - localization updated v. 2.0 17/08/2018 - WooCommerce 3.4 compatibility fixes - localization updated - added "shipping" and "billing" phone number validation - set country automatically by using the client IP feature fixed (curl library is not required anymore) - added ability to set Custom validation success and/or fail messages v. 1.4.5 07/08/2017 - bug fixes - localization fixes - ua, de languages added v. 1.4.1 13/04/2017 - fixed phone back-end validation v. 1.4 06/02/2017 - compatibility update - front-end and back-end phone validation added v 1.3.2 - 07/11/2016 - compatibility update - "auto set flag" feature fix v 1.3.1 - 26/05/2016 - compatibility update - "show only selected countries" feature added v 1.3 - 04/05/2016 - compatibility update - ru localization added v 1.2 - 03/11/2015 - compatibility update v 1.1 - 19/04/2015 - new flags have been added - flags icons have been updated - localization issues fixed - browsers compatibility has been updated v 1.0.2 - 17/10/2014 - phone validator updated v 1.0.1 - 24/09/2014 - css minor fix - "get by ip" bug fix by using HTTPS v 1.0 - 07/06/2014 - First stable release