Author: Preciousomonze
Contributors: Helgatheviking π€Ύπ»ββοΈ
Donate link: I do not mind a token for ordering Pancakes π₯, so you can Drop something for your boy π€ π₯³
Tags: woocommerce, preciousomonze plugin, phone validator, intlTelInput, woocommerce phone validator
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 5.6
Stable tag: 1.2.1
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Phone Validator for WooCommerce is a plugin which helps in validating international telephone numbers for WooCommerce. It adds a flag dropdown to the Billing phone number field which allows your site users to choose their country base and validate a phone number accordingly on the checkout page and Billing Account edit page of WooCommerce. It forces users to enter a valid phone number before being able to checkout or update their Billing details.
This plugin is based on https://intl-tel-input.com/ developed by Jack O'Connor.
If you have suggestions or a new feature request, feel free to get in touch with me via twitter. follow me on Twitter! @preciousomonze
- Login to your WordPress Admin area
- Go to "Plugins > Add New" from the left-hand menu
- In the search box type Phone Validator for WooCommerce
- From the search result you will see Phone Validator for WooCommerce click on Install Now to install the plugin.
- After installation, activate the plugin, that's all π€.
- Download the plugin zip file in the repository or click here
- Login to your WordPress Admin. Click on "Plugins > Add New" from the left hand menu.
- Click on the "Upload" option, then click "Choose File" to select the zip file from your computer. Once selected, press "OK" and press the "Install Now" button.
- Activate the plugin. π€§ that's all.
- You need to have WooCommerce plugin installed and activated on your WordPress site.
Sure fam! I like to ease things for people. ππ½ββοΈ check out the list of hooks and sample usage, click here.
Awwwwn π, sorry about that, you can submit an issue by clicking here.
Yes you can, check out the github repo here.
- First release π€ π₯³
- Fix: Proper sanitizing
- Fix: Made error message a little bit more descriptive
- Fix: Removed appended element when not needed
- Added: Enables validation on Billing Address Page
- Fix: Js remove element
- Fix: Compatibility with checkout manager when the checkout fields are altered
- Fix: Validation loop hole
- New: Translation support for error messages, ikr! finally π (I am sincerely sorry).
- New: Enable country code after flag(Operation Separate Dial Code) using filter 'wc_pv_separate_dial_code', set to true
βΊοΈ - New: Ability to set default country using filter 'wc_pv_set_default_country'
- New: Phone field now uses same list of allowed countries in your WooCommerce settings by default ( Thanks to Helgatheviking π€Ύπ»ββοΈ)
- New: Enable altering list of allowed countries using filter hooks
- Update: Tested up to WordPress 5.4 π₯³π₯³
- Update: Tested up to WooCommerce 4.3 π₯³π₯³
- Fix: Error Messages not re-rendering due to logic error(Thanks to Sylvain): https://wordpress.org/support/topic/error-messages-are-not-refreshed-in-case-of-successive-errors-on-checkout-page/
- Update: Adjusted stable tag, Github Actions wahala and struggle, some svn structure clean up.