/woocommerce-phone-validator

Forces validate of woocommerce phone field on checkout and billing address edit page

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

Phone Validator for WooCommerce

Contributors: Preciousomonze

Donate link: Drop something for your boy 🤓 🥳

Tags: woocommerce, preciousomonze plugin, phone validator, intlTelInput, woocommerce phone validator

Requires at least: 4.9

Tested up to: 5.2

Stable tag: 1.1.1

License: GPLv3 or later

License URI: http://www.gnu.org/licenses/gpl-3.0.html

Description

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.

Suggestions / Feature Request

If you have suggestions or a new feature request, feel free to get in touch with me via twitter. follow me on Twitter! @preciousomonze

Installation

Automatic Installation

  • 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 🤗.

Manual Installation

  1. Download the plugin zip file in the repo or click here
  2. Login to your WordPress Admin. Click on "Plugins > Add New" from the left hand menu.
  3. 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.
  4. Activate the plugin. 🤧 that's all.

Frequently Asked Questions

What Do I Need To Use The Plugin

  1. You need to have WooCommerce plugin installed and activated on your WordPress site.

Changelog

1.0.0 - July 12, 2019

  • First release 🤗 🥳

1.0.1 - July 15, 2019

  • Fix: Proper sanitizing

1.1.0 - August 04, 2019

  • Fix: Made error message a little bit more descriptive
  • Fix: Removed appended element when not needed
  • Added: Enables validation on Billing Address Page

1.1.1 - August 08, 2019

  • Fix: Js remove element
  • Fix: Compatibility with checkout manager when the checkout fields are altered
  • Fix: Validation loop hole

Screenshots

1. Woocommerce billing phone field includes a flag

Screenshot 1

2. Error shown to user when an invalid phone number is submitted on checkout

Screenshot 2

3. Error show to user when an invalid phone number is submitted on the billing address edit page

Screenshot 3