This plugin can be used for easy phone number input when buying goods in WooCommerce using flags of countries.
This plugin is especially useful when you need a 100% correct customer phone number.
Consist of the option to set country automatically (using the client IP address) and phone number validation.
To start plugin work – you only need to activate it. It’s really simple.
Live Demo: Link
Gravity Forms addon: Link
Features:
- Comfortable usability via admin panel
- Works with any WooCommerce theme
- Cross browser compatibility
- No coding required
Available Filters:
Show preferred countries:
add_filter('wcipi_preferred_countries', function(){ return ['ua', 'us']; });
Override phone inputs:
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