[Skip to main content](#vessel-content)

#   Invalid VAT number

##

- **[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")**
- [![mohairbears's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/916-mohairbears "View mohairbears's Profile") Topic Author
- [ Offline](/forum/user/916-mohairbears)

Less More

- Posts: 610
- Thank you received: 13
-

10 years 1 month ago [\#250181](#250181) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  *[Invalid VAT number](/forum/3-bug-report/886480-invalid-vat-number#250181 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 2.6.2 -- PHP version -- : 5.4.24 -- Browser(s) name and version -- : Fifefox -- Error-message(debug-mod must be tuned on) -- : the VAT number is not valid  Hi, I have an issue with a valid VAT number not being accepted. It is an Irish VAT number IE3332169AH, the checks out as valid on the European Commission VAT website but Hikashop give an invalid VAT number error? I have tried inputting by removing the IE &amp; AH but still get an error?  I have not had problems with other VAT numbers giving errors?  thanks")* was created by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 2.6.2
-- PHP version -- : 5.4.24
-- Browser(s) name and version -- : Fifefox
-- Error-message(debug-mod must be tuned on) -- : the VAT number is not valid

Hi,
I have an issue with a valid VAT number not being accepted. It is an Irish VAT number IE3332169AH, the checks out as valid on the European Commission VAT website but Hikashop give an invalid VAT number error? I have tried inputting by removing the IE &amp; AH but still get an error?

I have not had problems with other VAT numbers giving errors?

thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODY0ODAtaW52YWxpZC12YXQtbnVtYmVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

10 years 1 month ago [\#250189](#250189) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Invalid VAT number](/forum/3-bug-report/886480-invalid-vat-number#250189 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 2.6.2 -- PHP version -- : 5.4.24 -- Browser(s) name and version -- : Fifefox -- Error-message(debug-mod must be tuned on) -- : the VAT number is not valid  Hi, I have an issue with a valid VAT number not being accepted. It is an Irish VAT number IE3332169AH, the checks out as valid on the European Commission VAT website but Hikashop give an invalid VAT number error? I have tried inputting by removing the IE &amp; AH but still get an error?  I have not had problems with other VAT numbers giving errors?  thanks")*

Hi,

Ah yes, it seems that Ireland has updated the possibilities in terms of VAT numbers.
Change the line: Code:

$regex = '/^(IE){0,1}[0-9][0-9A-Z\+\*][0-9]{5}[A-Z]$/i';

to:
Code:

$regex = '/^(IE){0,1}[0-9][0-9A-Z\+\*][0-9]{5}[A-Z][A-Z]?$/i';

in the file administrator/components/com_hikashop/helpers/vat.php and it should handle that VAT number properly.
We add that patch on our end too.

The following user(s) said Thank You: [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODY0ODAtaW52YWxpZC12YXQtbnVtYmVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")**
- [![mohairbears's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/916-mohairbears "View mohairbears's Profile") Topic Author
- [ Offline](/forum/user/916-mohairbears)

Less More

- Posts: 610
- Thank you received: 13
-

6 years 7 months ago [\#317212](#317212) by [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")  Replied by *[mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")* on topic *[Invalid VAT number](/forum/3-bug-report/886480-invalid-vat-number#317212 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 2.6.2 -- PHP version -- : 5.4.24 -- Browser(s) name and version -- : Fifefox -- Error-message(debug-mod must be tuned on) -- : the VAT number is not valid  Hi, I have an issue with a valid VAT number not being accepted. It is an Irish VAT number IE3332169AH, the checks out as valid on the European Commission VAT website but Hikashop give an invalid VAT number error? I have tried inputting by removing the IE &amp; AH but still get an error?  I have not had problems with other VAT numbers giving errors?  thanks")*

Hi, It looks like Ireland may have changed something again as this VAT number IE3662134UH will not work even though its valid on the EU check site?

Rgds

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODY0ODAtaW52YWxpZC12YXQtbnVtYmVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

6 years 7 months ago [\#317214](#317214) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Invalid VAT number](/forum/3-bug-report/886480-invalid-vat-number#317214 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 2.6.2 -- PHP version -- : 5.4.24 -- Browser(s) name and version -- : Fifefox -- Error-message(debug-mod must be tuned on) -- : the VAT number is not valid  Hi, I have an issue with a valid VAT number not being accepted. It is an Irish VAT number IE3332169AH, the checks out as valid on the European Commission VAT website but Hikashop give an invalid VAT number error? I have tried inputting by removing the IE &amp; AH but still get an error?  I have not had problems with other VAT numbers giving errors?  thanks")*

Hi,

No the regex is still fine.
And it works fine with this number.
The issue is that this VAT number is not valid. I just checked on the EU website and it returned an error:
[ monosnap.com/file/4YRv29jHcm53XQSjM81PUC628C4h51](https://monosnap.com/file/4YRv29jHcm53XQSjM81PUC628C4h51)

The following user(s) said Thank You: [mohairbears](/forum/user/916-mohairbears "View mohairbears's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODY0ODAtaW52YWxpZC12YXQtbnVtYmVyP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.050 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
