2017 © Pedro Peláez
 

magento2-module vatfix

Magento2 module for accepting VAT's (UID) with country code (ex.ATU69932326) as usual in EU.

image

copex/vatfix

Magento2 module for accepting VAT's (UID) with country code (ex.ATU69932326) as usual in EU.

  • Wednesday, January 31, 2018
  • by roman204
  • Repository
  • 4 Watchers
  • 12 Stars
  • 3,614 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 6 Versions
  • 11 % Grown

The README.md

CopeX_VatFix

Magento2 module to enable VAT ID Validation with countrycodes (ex. ATU69932326) as usual in EU.

Latest Stable Version Total Downloads Monthly Downloads Build Status, (*1)

This extension for Magento2 changes the behaviour of VAT ID validation in Magento., (*2)

Magento2 can change a customers group regarding to a valid VAT ID. This feature is especially useful for companies within the EU. There is a small issue in Magento2 (also Magento1) thus it is not possible to correctly validate a VAT ID where the country code is in it. In Europe the VAT consists of 2 letters that represent the country and additional letters for the company identification. This plugin changes the behaviour how Magento validates the VAT ID so a full VAT ID can be entered. With this plugin it is possible to validate a VAT ID even for countries like Greece (ISO: GR, VAT: EL) or the United Kingdom (ISO: GB, VAT: UK) where the declarations collide., (*3)

With this extension installed it enables Magento2 to accept VAT IDs (UID) with prepended countrycodes (ex. ATU69932326)for all european countries. For all other countries the check stays the same. We use the original VIES Service to validate the given VAT ID / UID., (*4)

Installation

Copy the folder to your Magento2 "app/code" directory or install via composer composer require copex/vatfix, (*5)

after that enable the plugin by:, (*6)

bin/magento module:enable CopeX_VATFix, (*7)

followed by bin/magento setup:upgrade, (*8)

followed by bin/magento setup:di:compile, (*9)

Workflow

When a customer saves a vat number: 1. the plugin takes the given string 2. validates the country code if it is a valid EU country code defined in ISO-3166-Alpha-2-Code 3. if it is valid, it changes the parameter for original method of magento. 4. magento sends the validation-request to the VIES-Service and the normal workflow of magento is executed, (*10)

Information

This extension is a plugin, it will work out of the box when it is installed correctly. There are no settings in the backend., (*11)

Demonstration

I made a Demonstration Video here, (*12)

Author: Roman Hutterer
Website: CopeX eCommerce Solutions, (*13)

The Versions

31/01 2018

dev-master

9999999-dev

Magento2 module for accepting VAT's (UID) with country code (ex.ATU69932326) as usual in EU.

  Sources   Download

GPL-3.0 GPL-3.0-or-later

The Requires

  • php ~5.6.0|~7.0.0|~7.1.0

 

The Development Requires

12/04 2017

1.0.6

1.0.6.0

Magento2 module for accepting VAT's (UID) with country code (ex.ATU69932326) as usual in EU.

  Sources   Download

GPL-3.0

The Requires

  • php ~5.5.0|~5.6.0|~7.0.0|~7.1.0

 

The Development Requires

12/01 2017

1.0.5

1.0.5.0

Magento2 module for accepting VAT's (UID) with country code (ex.ATU69932326) as usual in EU.

  Sources   Download

GPL-3.0

The Requires

  • php ~5.5.0|~5.6.0|~7.0.0|~7.1.0

 

11/12 2016

1.0.4

1.0.4.0

Magento2 module for accepting VAT's (UID) with country code (ex.ATU69932326) as usual in EU.

  Sources   Download

GPL-3.0

The Requires

  • php ~5.5.0|~5.6.0|~7.0.0|~7.1.0

 

06/12 2016

1.0.3

1.0.3.0

Magento2 module for accepting VAT's (UID) with country code (ex.ATU69932326) as usual in EU.

  Sources   Download

GPL-3.0

The Requires

  • php ~5.5.0|~5.6.0|~7.0.0|~7.1.0

 

11/04 2016

0.0.1

0.0.1.0

Magento2 module for accepting VAT's (UID) with country code (ex.ATU69932326) as usual in EU.

  Sources   Download

GPL-3.0

The Requires