0151 355 4555

Magento Shopping Cart Data Validation Plugin

Our extension for the Magento shopping cart solution expedites the checkout process and enhances the user experience when filling in their details with advanced, international address capture and auto-completion technology PredictiveAddress, detailed email validation and telephone number validation to ensure you get correct details to use when comunicating with your customers.

Installation

To get started, download the extension from the Magento marketplace.

  1. Create the directory app/Data8/DataCaptureValidation within your Magento installation directory
  2. Extract the extension to the newly created directory
  3. Run the following install commands from your Magento installation directory:
    1. php bin/magento setup:upgrade
    2. php bin/magento cache:flush

Configuration

Log into your Magento admin site and go to Stores > Configuration > Data8 > Data Capture & Validation.

Enter your Ajax API key for your Data8 account and select the appropriate options.

The following options are available:

Ajax Key The key for your account. Get it from your dashboard and ensure you enable any domain names used by your web site
Postcode Lookup License Type The type of license you have for our Postcode Lookup service. Check with your account manager if you are unsure which one to select.
Use PredictiveAddress™ If you have purchased our PredictiveAddress service, select Yes here to enable it for all address data entry forms.
E-mail Validation Level

If you have purchased our Email Validation service, select the level of validation you want to apply to all email address entry fields. The available levels are:

  • Syntax. The supplied email is checked to ensure that it meets the standard email address format.

    This is the quickest option and would reject such incorrect email addresses as "noone@nowhere" and "N/A", but would accept incorrect email addresses that are correctly formed but that do not include a valid domain name such as "noone@data-9.com"

  • Domain. The supplied email is checked to ensure that the domain name (the part to the right of the @ sign) exists and is set up to receive email.

    This is still normally very quick, but can take a few seconds in some cases. This check would reject incorrectly formatted email addresses in the same way as the Syntax check, and would also reject a misspelled domain name such as "noone@data-9.com". It can also detect when a domain name exists but does not handle email, such as "noone@example.com".

    It does not verify that the part of the email address to the left of the @ sign exists.

  • Server. In addition to the Domain level checks, validates that at least one of the mail servers advertised for the domain is actually live.
  • Address. In addition to the Server level checks, validates that the mail server accepts mail for the full email address
Use Telephone Validation If you have purchased our International Telephone Validation service, select Yes here to apply validation to all telephone number entry fields.
Default telephone country code

If you are using telephone validation, enter the country code that telephone numbers should be assumed to be in. For example, if you are selling primarily to UK customers you would enter 44 here, or 1 if you are selling to US customers.

Telephone numbers that are entered without a country code are validated according to the rules for the country you enter here. Any telephone numbers that are entered with a country code will be validated according to the country code entered by the user.

Use UK Landline Validation If you have purchased our UK Landline Validation service, select Yes here to use the enhanced level of validation for any UK landline numbers in addition to the standard level of validation provided by the International Telephone Validation service.
Use Mobile Validation If you have purchased our Mobile Validation service, select Yes here to use the enhanced level of validation for any mobile numbers in addition to the standard level of validaiton provided by the International Telephone Validation service.

Once you have finished entering your configuration details, click the Save Config button in the top right of the screen.

Usage

After entering your configuration details, enhanced data capture and validation will automatically be applied to various data entry points around your Magento site including:

  • Checkout - Email Validation, Telephone Validation, Postcode Lookup, PredictiveAddress
  • Creating a new account - Email Validation
  • Editing account information - Email Validation
  • Adding/editing address book entries - Telephone Validation, Postcode Lookup, PredictiveAddress
  • Newsletter subscriptions - Email Validation