Page 34 of 37 FirstFirst ... 243233343536 ... LastLast
Results 331 to 340 of 362
  1. #331
    Join Date
    Mar 2012
    Posts
    2
    Plugin Contributions
    0

    Default Re: VAT-mod for European companies

    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!

  2. #332
    Join Date
    Sep 2006
    Location
    North Devon, England, UK
    Posts
    289
    Plugin Contributions
    0

    Default Re: VAT-mod for European companies

    yeah, would def be good to get a copy of this modified version that should work on zen 1.5

  3. #333
    Join Date
    Jan 2007
    Location
    Whitstable - UK
    Posts
    48
    Plugin Contributions
    0

    Default Re: VAT-mod for European companies

    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.

  4. #334
    Join Date
    Sep 2006
    Location
    North Devon, England, UK
    Posts
    289
    Plugin Contributions
    0

    Default Re: VAT-mod for European companies

    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
    Attached Images Attached Images  

  5. #335
    Join Date
    Jan 2007
    Location
    Whitstable - UK
    Posts
    48
    Plugin Contributions
    0

    Default Re: VAT-mod for European companies

    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

  6. #336
    Join Date
    Sep 2006
    Location
    North Devon, England, UK
    Posts
    289
    Plugin Contributions
    0

    Default Re: VAT-mod for European companies

    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

  7. #337
    Join Date
    Jan 2007
    Location
    Whitstable - UK
    Posts
    48
    Plugin Contributions
    0

    Default Re: VAT-mod for European companies

    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

  8. #338
    Join Date
    Sep 2006
    Location
    North Devon, England, UK
    Posts
    289
    Plugin Contributions
    0

    Default Re: VAT-mod for European companies

    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...

  9. #339
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: VAT-mod for European companies

    Soap is installed and activated on my server, but got white out with this modification, could you offer further guidance?

    Quote Originally Posted by wdkstudio View Post
    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.

  10. #340
    Join Date
    Apr 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: VAT-mod for European companies

    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..

 

 
Page 34 of 37 FirstFirst ... 243233343536 ... LastLast

Similar Threads

  1. v138a VAT mod for european companies on ZC 1.5
    By hyperion12 in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 14
    Last Post: 9 May 2016, 12:52 PM
  2. VAT MOD for EU Countries Support
    By jinglezdj in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 21 Oct 2009, 09:38 AM
  3. Is it possible to have tax exemption with VAT-mod for European companies?
    By stomm in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 16 Jun 2009, 04:39 PM
  4. "VAT for companies" mode with checkout without account mode
    By sagivle1 in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 15 Jan 2008, 05:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR