michielfb/magento2-vatid

Remove unwanted characters (. , - and spaces) from entered VAT-numbers and remove the country prefix if it matches the entered country of the address.

Installs: 74

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:magento2-module

0.0.1 2016-09-24 21:26 UTC

This package is auto-updated.

Last update: 2024-04-29 02:42:44 UTC


README

Remove unwanted characters (. , - and spaces) from EU VAT-numbers and remove the country prefix if it matches the entered country of the address.

This is usefull since the VAT-number checker of Magento marks VAT-numbers with a country prefix as invalid.

Installation

Use composer to install this plug-in:

composer require michielfb/magento2-vatid

Example

On a address a VAT-number is entered as NL123456789B01 and selects the country Netherlands (NL). By default Magento will mark this as invalid.

When this plug-in is used the country prefix will be stripped from the VAT-number resulting in the VAT-number 123456789B01. Magento will mark this VAT-number as valid*.

* please note that the VAT-number is an example. VAT-numbers will only be marked as valid if they actually exists.