Re: VAT-mod for European companies
I have successfully installed this onto a 1.3.8 (more testing needed), but wanted the verification to work.
After playing with the urls on the vies site i found the following fix seemed to work (not guaranteed! :smile:):
In includes/functions/extra_functions/functions_vatmod.php i replaced:
$monfd = file_get_contents('http://ec.europa.eu/taxation_customs/vies/viesquer.do', null, $context);
with
$monfd = file_get_contents('http://ec.europa.eu/taxation_customs/vies/viesquer.do?ms=' . $prefix . '&iso=' . $prefix . '&vat=' . $tva, r);
Not fully tested but seems to work, i also amended the admin version of this file to the same and that seems to work when editing a customers vat number.
Is this mod supposed to show the total during checkout without VAT as mine seems not to, but this may be installing the 1.3.7 version onto my 1.3.8!?!?
Re: VAT-mod for European companies
Quote:
Originally Posted by
mindows
I'd like to have VAT excluded for a company (If VAT number is entered) and included for a customer (if VAT is omitted).
Sorry, it does not work this way, unfortunately. I would love to, but it is only during the checkout process that it applies VAT or not. Your shop will display all items with or without VAT (depending on your parameter), not depending on the client status.
Re: VAT-mod for European companies
Quote:
Originally Posted by
rickcj
After playing with the urls on the vies site i found the following fix seemed to work (not guaranteed! :smile:):
Mmh. The verification is still working for me. Around line 71, can you replace POST with GET, and keep the same code? I think your server don't want to send a POST request, and only accept to send a GET request.
1 Attachment(s)
Re: VAT-mod for European companies
After editing a few spelling mistakes, I release it again:
VAT-Mod 1.2.7 for Zen Cart v. 1.3.8
For Companies inside European Union dealing with European sales tax.
IMPORTANT NOTE: THIS IS NOTE THE OFFICIAL RELEASE FROM Beez & Vike.
I did a simple Cut and Paste from the previous code VAT-Mod 1.2.6 for Zen Cart v. 1.3.7) and paste it to Zen Cart v. 1.3.8 files.
It works for me, but you should handle it with care.
What's new:
* Compatibility with Zen Cart v. 1.3.8
* adding Bulgaria and Romania to the list
* French translation
* update of the VIES link to check the validity of the number (http://ec.europa.eu/taxation_customs/vies/)
I hope that Beez & Vike will offer an official release soon (they don't answer to their e-mails :( ). And thanks guys for your great help !!
Re: VAT-mod for European companies
Quote:
Originally Posted by
dimjoula
Sorry, it does not work this way, unfortunately. I would love to, but it is only during the checkout process that it applies VAT or not. Your shop will display all items with or without VAT (depending on your parameter), not depending on the client status.
Yahoo! I found a solution!
It is VAT mod for EU comp + Customer Tax Exempt :clap:
VAT mod for EU comp gives me a possibility to register companies on the site properly, review details to make sure it is not a scam.
http://www.xadoireland.ie/e-shop/images/company.jpg
Then Customer Tax Exempt mode gives possibility to "turn on" the company view mode - they can see all prices without tax, at the same time, when ordinary users see the prices with VAT!
http://www.xadoireland.ie/e-shop/images/Options.jpg
For the customers, which have in the field Customer Tax Exempt "ALL" (I put ALL manually as a "stamp" after checking all the details) will be shown the prices without VAT!
Who does not have that entered - will be shown normally with VAT!
Just if you will try to merge them you will need to review the overlapping files!
Or will not work :lamo:
Re: VAT-mod for European companies FATAL ERROR cant login to the backend admin
Fatal error: Cannot redeclare zen_address_format() (previously declared in /home/www/7f081bbe8f38b5cfa4478b5cbaeba6ac/web/shop/admin/includes/functions/general.php:470) in /home/www/7f081bbe8f38b5cfa4478b5cbaeba6ac/web/shop/admin/includes/functions/functions_customers.php on line 115:
zen cart 1.3.8
server info
PHP Built on: Linux imu124 2.6.18.5-imu-x86-136 #1 SMP Fri Mar 28 12:20:37 CET 2008 i686
Database Version: 5.0.45-log
Database Collation: utf8_general_ci
PHP Version: 5.2.5
Web Server: Apache
Web Server to PHP interface: apache2handler
Joomla! Version: Joomla! 1.5.6 Production/Stable [ Vusani ] 12-August-2008 22:00 GMT
User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Re: VAT-mod for European companies
Check your files and make sure the 2 function files are current ...
The function is listed in both, but it is commented out of general.php
Perhaps you do not have the files updated correctly?
Or, perhaps you have an add-on that has overwritten these functions with an out of date version? :unsure:
Re: VAT-mod for European companies
here is the VAT module i installed http://www.zen-cart.com/index.php?ma...products_id=89,
what should i do access admin section this is not possible yet . thanks
Re: VAT-mod for European companies
now i have find a solution and can login to backend the vat modul is displayed but i get this error:oops:
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/www/7f081bbe8f38b5cfa4478b5cbaeba6ac/web/shop/admin/includes/functions/extra_functions/functions_vatmod.php on line 84
Warning: file_get_contents(http://ec.europa.eu/taxation_customs/vies/viesquer.do) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/www/7f081bbe8f38b5cfa4478b5cbaeba6ac/web/shop/admin/includes/functions/extra_functions/functions_vatmod.php on line 84
I can not see Vat module in Frontend, thanksn for your help
Re: VAT-mod for European companies
Hello, i've installed this mod on my zencart 1.3.8a store, but i do not want one thing: customers must write their vat numer in following way:
"Contry Code" + "VAT Number"
-exapmle
VAT = PL1234567890
I want to leave just "VAT Number", without the contry code
-example
VAT = 1234567890
I will not get orders from others contries, only from mine, so "Contry Code" for me is useless.
Does somebody know how to do it? Witch files i must modify? I tried to do it for my own, but my php knowledge isn't great.