Wilroc - Just noticed your post numbered 327. I would greatly appreciate the mod utilizing SOAP to be able to query all countries. Also any other changes you made to the original Dimjoula beta version.
Thanks!
Printable View
Wilroc - Just noticed your post numbered 327. I would greatly appreciate the mod utilizing SOAP to be able to query all countries. Also any other changes you made to the original Dimjoula beta version.
Thanks!
yeah, would def be good to get a copy of this modified version that should work on zen 1.5
The 1.5 version is now available at http://www.wilorc.co.uk. The download does NOT work for all Countries as outlined on earlier posts in this forum. However here is the code for the "zen_verif_tva" function in includes/functions/extra_functions/functions_vatmod.php:
function zen_verif_tva($num_tva){
$num_tva=preg_replace('/ +/', "", $num_tva);
$prefix = substr($num_tva, 0, 2);
if (array_search($prefix, zen_get_tva_intracom_array() ) === false) {
return 'false';
}
$tva = substr($num_tva, 2);
$client = new SoapClient("http://ec.europa.eu/taxation_customs...atService.wsdl");
if($client){
$params = array('countryCode' => $prefix, 'vatNumber' => $tva);
$r = $client->checkVat($params);
if($r->valid == true){
return 'true';
} else {
return 'false';
}
} else {
return 'no_verif';
}
}
PLEASE NOTE THE FOLLOWING: One proviso is that it requires the PHP soap extension to be installed and configured correctly (php.ini), otherwise it will completely break everything, i.e., zencart total screen white-out. For that reason I'm not going to add the new code to the download, but I'm happy to pass it on to anyone who wants it and understands about installing and configuring PHP extension modules. "
Is anyone able to make the changes to the necessary files and then post them back for everyone to use with necessary instructions?
I must stress this is NOT my work, other than chasing up the re-connection of the original download.
This could be very useful for many zen-cart european store owners / developers.
hi wdkstudio
I have a fresh install of zen v5 with this module installed on wampserver, php 5.3.8, can see 'vat' under 'configruation', i also have SOAP enabled, see attached. I replaced the zen_verif_tva code with code above (is this correct or does the above code go alongside existing zen_verif_tva code, not replace it??).
However, I am still getting the 'zencart total screen white-out', as you mentioned i might.
As far as I can see i have done everything correct, have you any idea of where i might be going wrong?
Advice appreciated.
Matt
Hi Matt
I really just got the download re-enabled. However, if you go to http://www.webhostinghub.com/support.../blank-website you might find an answer to your Whiteout problem
Good luck
wdkstudio
hi wdkstudio
you did say 'One proviso is that it requires the PHP soap extension to be installed and configured correctly (php.ini), otherwise it will completely break everything, i.e., zencart total screen white-out.', and this is what I am experiencing, was just wandering if you could advise how i properly configure soap extension, as, from what you have said above, this is the issue. If the white screen of death is not because of soap, but because code i entered is wrong, it is a php issue.
Referring to my post above, do i just replace the zen_verif_tva code in includes/functions/extra_functions/functions_vatmod.php with the code above? a direct paste over, yes?
matt
Hi Matt
all I did was get the original download link re-enabled. I am working on a site where the VAT mod is required, but have not yet implemented this myself. I had hoped that there might be other people who wanted to use this mod that had more experience of using SOAP that might have come in with some imput.
You do have to replace the zen_verif_tva code in includes/functions/extra_functions/functions_vatmod.php with the code above. Yes, a direct paste over.
Sorry not to be more help.
wdkstudio
Anyhow, you do have to replace
ok, cool, thanks for sorting link
i have no experience with SOAP, but, am also working on a zen v1.5 which will need eu vat mod, so, will report back with progress...
It works like heaven, only one thing: The TAX-number is not saved in the database. :(
Anyone has an idea where to start? I really have no idea where ZC gives the command to save in the database.
If I add the number in the back-end, everything works wonderfully. No tax is being calculated if there is a EU tax number active. :)
But my customers can't add their tax-number in the back-end..