I have had this issue before but forgot. I have updated the VAT module to latest release and there is a bug that has been there in previous releases also
I am not sure how widespread this is, but it is definitly an issue for UK based sellers with ES VAT business customers
When entering the ES (Spanish) VAT number we get an invalid number message
Question
haylau
I have had this issue before but forgot. I have updated the VAT module to latest release and there is a bug that has been there in previous releases also
I am not sure how widespread this is, but it is definitly an issue for UK based sellers with ES VAT business customers
When entering the ES (Spanish) VAT number we get an invalid number message
The problem is in vatnumber.php
Line 228 is
$url = 'http://ec.europa.eu/taxation_customs/vies/viesquer.do?ms='.urlencode($prefix).'&iso='.urlencode($prefix).'&vat='.urlencode($vat);
I think this is an old PS issue also as I found the solution on the PS forum (http://forge.prestashop.com/browse/NM-824)
Changing that line to
$url = 'http://ec.europa.eu/taxation_customs/vies/vatResponse.html?locale=EN&memberStateCode='.urlencode($prefix).'&number='.$vat.'&traderName=';
Makes the VAt number valid
Edited by haylau25 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now