WooCommerce Email Validation

Description

“WooCommerce Email Validation” is an extension for WooCommerce that adds a ‘confirm email address’ field to the checkout page as a required field. This will ensure that your customers will enter a correct email address, making managing your orders far easier and more reliable. If a customer’s email address does not match up then they will receive a standard validation error on the checkout page informing them that they need to make sure that their email addresses are the same.

This extension is WooCommerce 3.x compatible and supports localisation using WPML. It has built-in translations for English, German, Spanish, Dutch, Swedish, Japanese, Polish, Brazilian Portuguese, Hungarian and Serbian.

Want to contribute? Fork the GitHub repository.

Usage

Simply upload the plugin and you’re good to go. There are no options to configure – the extension just works.

Screenshots

  • The 'Confirm Email Address' field as it is displayed in the Twenty Twelve theme (from v2.0 of this plugin, the new field appears alongside the existing 'Email Address' field).

Installation

Installing “WooCommerce Email Validation” can be done either by searching for “WooCommerce Email Validation” via the “Plugins > Add New” screen in your WordPress dashboard, or by using the following steps:

  1. Download the plugin via WordPress.org
  2. Upload the ZIP file through the ‘Plugins > Add New > Upload’ screen in your WordPress dashboard
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

Installation Instructions

Installing “WooCommerce Email Validation” can be done either by searching for “WooCommerce Email Validation” via the “Plugins > Add New” screen in your WordPress dashboard, or by using the following steps:

  1. Download the plugin via WordPress.org
  2. Upload the ZIP file through the ‘Plugins > Add New > Upload’ screen in your WordPress dashboard
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
How do I reorder the checkout fields?

This plugin adds the email confirmation to the checkout fields right after the existing ‘Email Address’ field. If you would like to rearrange the checkout fields, then you are able to do so very easily by using the snippet provided here. The label/ID of the email confirmation field is billing_email-2.

This plugin doesn’t work with the Checkout Field Editor extension – what gives?

If you are using Checkout Field Editor then you need to manually specify the second email address field in that extension’s settings in order for the field to be displayed. The field ID that you must specify is billing_email-2.

Reviews

Thanks!

I edited the WooCommerce checkout fields using my theme’s functions.php file.

I added this plugin for email verification, and edited it very slightly.

It works a charm!

thanks.

Compatibility

It’s not compatible with wordpress version 4.7.3 and woocommerce 3…Keep Giving the error “Email addresses do not match!” in checkout page. Needs to be released a new update.

Simple and quality

No frills, does as needed. Real-time validation would be nice but maybe not worth the overhead. Should really be core.

Was working very well, but now it needs to be tweaked

Because of the lack of recent updates (last one was over 9 months ago), email confirmation field is in the wrong place. Woocommerce move it up, but this plugin never updated it.

The solution is to add this code to the functions.php of your child theme:

//RE-ORDER BILLING FIELDS WITH EMAIL VALIDATION
add_filter("woocommerce_checkout_fields", "order_fields");

function order_fields($fields) {

    $order = array(
        "billing_country",
        "billing_first_name",
        "billing_last_name",
        "billing_company",
        "billing_address_1",
        "billing_address_2",
	"billing_city",
        "billing_state",
        "billing_postcode",
        "billing_email",
	"billing_email-2",
        "billing_phone"

    );
    foreach($order as $field)
    {
        $ordered_fields[$field] = $fields["billing"][$field];
    }

    $fields["billing"] = $ordered_fields;
    return $fields;

}

Perfect

Installed with WooCommerce 2.0.4 and WP 3.5.1 and works just as described on the tin.
Should cut down on pesky clients who can’t type and then complain they never received an email.
In use on http://lcwoodpellets.com/
Thanks

Read all 18 reviews

Contributors & Developers

“WooCommerce Email Validation” is open source software. The following people have contributed to this plugin.

Contributors

“WooCommerce Email Validation” has been translated into 2 locales. Thank you to the translators for their contributions.

Translate “WooCommerce Email Validation” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

2.1

  • 2017-04-21
  • [UPDATE] Adding WooCommerce 3.0+ compatibility (props ablears)
  • [UPDATE] Ensuring backwards compatilibity for versions of WooCommerce prior to 3.0
  • [UPDATE] Adding woocommerce_original_email_field_class filter for modifying layout of fields on the fly

2.0

  • 2016-05-09
  • [UPDATE] Moving ‘Confirm Email Address’ field to the correct location on the checkout form
  • [UPDATE] Modifying text domain to match plugin slug (required for centralised localisation)
  • [TWEAK] Changing filter on which new field is added to make things more streamlined

1.2.8

  • 2015-05-28
  • [UPDATE] Adding Serbian translation (translation provided by Nebojsa Dolas)

1.2.7

  • 2015-02-16
  • [UPDATE] Adding Hungarian translation (translation provided by Kornel Schwarcz)
  • [FIX] Adding WooCommerce 2.3.x compatibility

1.2.6

  • 2015-01-21
  • [UPDATE] Adding Brazilian Portuguese translation (translation provided by Samuel Costa)

1.2.5

  • 2014-12-11
  • [UPDATE] Adding Polish translation (translation provided by Michał Dybczak)

1.2.4

  • 2014-10-13
  • [UPDATE] Adding ‘woocommerce_confirm_email_field_class’ filter so field class can be changed dynamically
  • [UPDATE] Adding Japanese translation (translation provided by Mako Kobayashi)
  • [FIX] Adding billing email address as default field value for WooCommerce 2.2+

1.2.3

  • 2014-09-05
  • [UPDATE] Adding Swedish translation (translation provided by Mari Lindström)

1.2.2

  • 2013-10-27
  • [UPDATE] Adding Dutch translation (translation provided by Bryan Touw)

1.2.1

  • 2013-07-12
  • [UPDATE] Adding Spanish translation (translation provided by Marcelo Pedra)

1.2

  • 2013-07-11
  • [UPDATE] Adding German translation (translation provided by Dietmar Hohn)

1.1

  • 2013-05-24
  • [FIX] Fixing validation to be case-insensitive

1.0

  • 2013-02-18
  • Initial release #boom