PHPackages                             copex/vatfix - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. copex/vatfix

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

copex/vatfix
============

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

1.0.9(4y ago)1717.7k↓37.5%4GPL-3.0-or-laterPHP

Since Apr 11Pushed 4y ago4 watchersCompare

[ Source](https://github.com/CopeX/CopeX_VatFix)[ Packagist](https://packagist.org/packages/copex/vatfix)[ RSS](/packages/copex-vatfix/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (8)Versions (9)Used By (0)

CopeX\_VatFix
=============

[](#copex_vatfix)

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

[](#magento2-module-to-enable-vat-id-validation-with-countrycodes-ex-atu69932326-as-usual-in-eu)

[![Latest Stable Version](https://camo.githubusercontent.com/8567512a0615d9e0473a6bb6061b8a171c144f5b24a982127cc178558301e150/68747470733a2f2f706f7365722e707567782e6f72672f636f7065782f7661746669782f762f737461626c65)](https://packagist.org/packages/copex/vatfix)[![Total Downloads](https://camo.githubusercontent.com/749ca8c49b8d395e75dca99562e77401c98c9dee444020c7f2c49ae704e4f0bf/68747470733a2f2f706f7365722e707567782e6f72672f636f7065782f7661746669782f646f776e6c6f616473)](https://packagist.org/packages/copex/vatfix)[![Monthly Downloads](https://camo.githubusercontent.com/12558d6443285e49b365457f92e625b3459bfeffea6c10d3f54c3c91bb167ee7/68747470733a2f2f706f7365722e707567782e6f72672f636f7065782f7661746669782f642f6d6f6e74686c79)](https://packagist.org/packages/copex/vatfix)[![Build Status](https://camo.githubusercontent.com/e339d6d282662fec4afa232bc27a76282c5261584e8847df1c56425b2b1a2c40/68747470733a2f2f7472617669732d63692e6f72672f436f7065582f436f7065585f5661744669782e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/CopeX/CopeX_VatFix)

This extension for Magento2 changes the behaviour of VAT ID validation in Magento.

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.

With this extension installed it enables Magento2 to accept VAT IDs (UID) with prepended countrycodes (ex. **AT**U69932326)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.

Installation
------------

[](#installation)

Copy the folder to your Magento2 "app/code" directory or install via composer `composer require copex/vatfix`

after that enable the plugin by:

`bin/magento module:enable CopeX_VATFix`

followed by `bin/magento setup:upgrade`

followed by `bin/magento setup:di:compile`

Workflow
--------

[](#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

Information
-----------

[](#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.

Demonstration
-------------

[](#demonstration)

[I made a Demonstration Video here](https://www.youtube.com/watch?v=wSgHk4Wq7pA)

Author: Roman Hutterer
Website: [CopeX eCommerce Solutions](https://copex.io)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 80.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~306 days

Recently: every ~466 days

Total

8

Last Release

1546d ago

Major Versions

0.0.1 → 1.0.32016-12-06

PHP version history (3 changes)0.0.1PHP ~5.5.0|~5.6.0|~7.0.0

1.0.3PHP ~5.5.0|~5.6.0|~7.0.0|~7.1.0

1.0.7PHP ~5.6.0|~7.0.0|~7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a0c6e10308f861e7060d38f85a351f2855267d789b45f8c009c51f8ec723452?d=identicon)[roman204](/maintainers/roman204)

![](https://www.gravatar.com/avatar/3fea4e94ffef563d1de634ab9e783c62c05e8e3ce253b3bf4a21f6125663c0cc?d=identicon)[copex.io](/maintainers/copex.io)

---

Top Contributors

[![roman204](https://avatars.githubusercontent.com/u/584168?v=4)](https://github.com/roman204 "roman204 (62 commits)")[![pointia](https://avatars.githubusercontent.com/u/1998210?v=4)](https://github.com/pointia "pointia (10 commits)")[![jissereitsma](https://avatars.githubusercontent.com/u/7670482?v=4)](https://github.com/jissereitsma "jissereitsma (5 commits)")

---

Tags

magentomagento2magento2-extensionuidvat

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/copex-vatfix/health.svg)

```
[![Health](https://phpackages.com/badges/copex-vatfix/health.svg)](https://phpackages.com/packages/copex-vatfix)
```

###  Alternatives

[mokhosh/filament-jalali

Add Jalali datetime to your filament tables

6744.4k2](/packages/mokhosh-filament-jalali)[marcusball/case-helper

Easily convert between camelCase, PascalCase, kebab-case, snake\_case, SCREAMING\_SNAKE\_CASE, Train-Case, and string case!

2145.5k3](/packages/marcusball-case-helper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
