Giter VIP home page Giter VIP logo

brianhenryie / woocommerce-phone-validator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from preciousomonze/woocommerce-phone-validator

0.0 2.0 0.0 2.2 MB

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

Home Page: https://wordpress.org/plugins/woo-phone-validator

License: GNU General Public License v3.0

PHP 79.37% CSS 1.87% JavaScript 15.82% Shell 2.94%

woocommerce-phone-validator's Introduction

Phone Validator for WooCommerce

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

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 repository 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.

Do you have a sample of using your filter hooks to customize the plugin? πŸ‘€πŸ₯Ά

Sure fam! I like to ease things for people. πŸ’†πŸ½β€β™‚οΈ check out the list of hooks and sample usage, click here.

I noticed some issues, how can i report it?

Awwwwn 😊, sorry about that, you can submit an issue by clicking here.

Can I contribute to the codes of this plugin?

Yes you can, check out the github repo here.

Changelog

1.0.0 - 12/07/2019

  • First release πŸ€— πŸ₯³

1.0.1 - 15/07/2019

  • Fix: Proper sanitizing

1.1.0 - 04/08/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 - 08/08/2019

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

1.2.0 - 27/07/2020

  • 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/

1.2.1 - 28/07/2020

  • Update: Adjusted stable tag, Github Actions wahala and struggle, some svn structure clean up.

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 shown to user when an invalid phone number is submitted on the billing address edit page

Screenshot 3

woocommerce-phone-validator's People

Contributors

preciousomonze avatar helgatheviking avatar tibbben avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.