Zen Cart Logo
Forums / All Other Contributions/Addons / VAT-mod for European companies

VAT-mod for European companies

Views: 114,578

Results 261 to 280 of 362
9 Jun 2010, 3:59 PM
#261
infocom avatar

infocom

Zen Follower

Join Date:
Jul 2006
Location:
Cardiff, Wales
Posts:
308
Plugin Contributions:
0

VAT-mod for European companies

Hi Just installed this now my Admin is blank... it initially worked, but I went to Modules -> Order Total and it was blank, now my whole admin is blank I cannot use it. Any ideas?
Thanks

9 Jun 2010, 4:12 PM
#262
infocom avatar

infocom

Zen Follower

Join Date:
Jul 2006
Location:
Cardiff, Wales
Posts:
308
Plugin Contributions:
0

Re: VAT-mod for European companies

Installing the debug tool shows this error:-

PHP Parse error:  syntax error, unexpected T_DOUBLE_ARROW in /home/mysite/public_html/shop/admin/includes/functions/extra_functions/functions_vatmod.php on line 129

Cant believe its not working out of the box for a mod thats been there since Mar 12 2009!

In the above file there is an error. The array is prematurely closed at Slovania, this should be a comma:-

Change:-

'CZ'=>'CZ',	//Czech Republic
'SI'=>'SI');//Slovania
'RO'=>'RO', //Romania
'BG'=>'BG'); //Bulgaria

To

'CZ'=>'CZ',	//Czech Republic
'SI'=>'SI', //Slovania
'RO'=>'RO', //Romania
'BG'=>'BG'); //Bulgaria
9 Jun 2010, 4:20 PM
#263
infocom avatar

infocom

Zen Follower

Join Date:
Jul 2006
Location:
Cardiff, Wales
Posts:
308
Plugin Contributions:
0

Re: VAT-mod for European companies

I chose Finland to test this as my first VAT number, FI12345678 (FI + 8 characters) and it tells me "The VAT number does not match server request." and states I should use FI + 8 characters :frusty:

Had to switch check VAT number off.

11 Jun 2010, 12:31 PM
#264
infocom avatar

infocom

Zen Follower

Join Date:
Jul 2006
Location:
Cardiff, Wales
Posts:
308
Plugin Contributions:
0

Re: VAT-mod for European companies

I have the same problem as a few previous reported.... customers that do NOT enter a VAT number are not getting charged VAT. The VAT is shown in checkout but is £0. The suggested fix here did not fix it: http://www.zen-cart.com/forum/showpost.php?p=862163&postcount=253. So it is NOT to do with NULL being in the entry_tva_intracom field. I get this issue with new customers having an empty entry_tva_intracom field.

11 Jun 2010, 1:11 PM
#265
infocom avatar

infocom

Zen Follower

Join Date:
Jul 2006
Location:
Cardiff, Wales
Posts:
308
Plugin Contributions:
0

Re: VAT-mod for European companies

I am not sure what is going on, but I may have a fix, although dont know the implications...

In includes/functions/extra_functions/functions_vatmod.php on line 146 is this:-

    if ($tva_intracom->fields['country_id'] === $store_country->fields['store_country']) {
        return false;
    } else {
        return true;
    }

I changed the last return true to return false, and it working now, but only four countries not in the store country:-

    if ($tva_intracom->fields['country_id'] === $store_country->fields['store_country']) {
        return false;
    } else {
        return false;
    }

This is because in includes/functions/extra_functions/functions_taxes.php is the following line which was returning 0 as the zen_get_tax_rate() if the country was not equal to the store country.

    $tva_intracom_number = get_tva_intracom_number();
    if ($tva_intracom_number === true && $_SESSION['customer_id']) {
        return 0;
        }

I dont quite understand this thing with comparing whether the person is in the store country or not because they pay VAT with no VAT number, or they dont pay VAT with a VAT number whether they are in the store country or not.

15 Jun 2010, 7:47 PM
#266
feng avatar

feng

New Zenner

Join Date:
Nov 2009
Posts:
40
Plugin Contributions:
0

Re: VAT-mod for European companies

i have succesfully installed teh module. It works as it should.

VAT number included in the registration means prices without tax in the store and on teh invoice.

However, i am missing the customers VAT nummer on the invoice. And that is a legal obligation if i do not charge TAX on my invoice.

How can i have this automaticly included ( what did i do wrong, cause i thought this should automaticly be included )

Thanks

29 Jun 2010, 9:25 PM
#267
rikw avatar

rikw

New Zenner

Join Date:
Jun 2010
Posts:
3
Plugin Contributions:
0

Re: VAT-mod for European companies

Hi all,
I have installed this mod with 1.3.9d, but it is not working during the check-out process. When I go to the check-out, until step 1/3 everything seems normal. In step 2 of 3 (payment method) I get a complete white screen.

When I put back the original datafiles this page is just loading again.

Does anybody know what can be the problem?

I have done the database update (now rows for tva* have been made) and done the other suggestion of changing both functions_vatmod.php files

I hope somebody can help me with this.

16 Aug 2010, 9:29 PM
#268
dimjoula avatar

dimjoula

New Zenner

Join Date:
Feb 2008
Posts:
23
Plugin Contributions:
0

Re: VAT-mod for European companies

This mod is not compatible with Zen Cart 1.3.9e. It is only compatible with 1.3.8. DON'T INSTALL IT! :no:

Doing a simple copy and paste from the mod to the new 1.3.9 files does not work. I notice that tax calculation changed in the file /includes/classes/order.php
It is not working as expected. I am not a developer, so it is a bit hard for me to find out what I have to edit. Really, the tax calculation changed a bit and some new constant values have appeared.

As long as the problem with this mod is not fixed, I will not update my store from 1.3.8 to 1.3.9e.

Unfortunately, past events show that the developers of this mod are not reactive. We may wait a long time (a year) before a new version is released. :frusty:

17 Aug 2010, 7:15 AM
#269
speedy6 avatar

speedy6

New Zenner

Join Date:
Sep 2009
Posts:
11
Plugin Contributions:
0

Re: VAT-mod for European companies

dimjoula:

This mod is not compatible with Zen Cart 1.3.9e. It is only compatible with 1.3.8. DON'T INSTALL IT! :no:

Doing a simple copy and paste from the mod to the new 1.3.9 files does not work. I notice that tax calculation changed in the file /includes/classes/order.php
It is not working as expected. I am not a developer, so it is a bit hard for me to find out what I have to edit. Really, the tax calculation changed a bit and some new constant values have appeared.

As long as the problem with this mod is not fixed, I will not update my store from 1.3.8 to 1.3.9e.

Unfortunately, past events show that the developers of this mod are not reactive. We may wait a long time (a year) before a new version is released. :frusty:
What are then the problems you are having?
I have 1.3.9 with this mod and seems to work fine...??

17 Aug 2010, 1:57 PM
#270
dimjoula avatar

dimjoula

New Zenner

Join Date:
Feb 2008
Posts:
23
Plugin Contributions:
0

Re: VAT-mod for European companies

No, you have simply erased new zen-cart 1.3.9 files with old zen-cart 1.3.8 files. And there are many changes in these codes as bug fixes and security fixes. You have deleted all these.

17 Aug 2010, 3:26 PM
#271
dimjoula avatar

dimjoula

New Zenner

Join Date:
Feb 2008
Posts:
23
Plugin Contributions:
0

Re: VAT-mod for European companies

VAT-Mod BETA UNOFFICIAL for Zen Cart v. 1.3.9e
For Companies inside European Union

Remake and compatibility with Zen Cart v. 1.3.9e
Special edition done by dimjoula.

IMPORTANT NOTE: this is not the official release from Beez & Vike.
It is a BETA version. I did a copy and paste from the previous codes (VAT-Mod 1.3.0 for Zen Cart v. 1.3.8a) and paste them to Zen Cart v. 1.3.9e files. It works for me with my own personal configuration, but you should take it with care. IT MAY NOT WORK WITH YOUR OWN CONFIGURATION out of the box. Perhaps you will need to edit some files. If it is the case, please share it here.

BACKUP - BACKUP first your files and database before updating your store with these files. It may be buggy. You must know how to restore it!!!

What's new:

  • PARTIAL (90%) Compatibility with Zen Cart v. 1.3.9e (but should be OK in most regular situations; potential problem when the customer uses several different addresses located in different countries)
  • french translation
  • update of the VIES link to check the validity of the number (only for a compatibility with php 5.3)
  • THIS FUNCTION INTRODUCED IN THE PREVIOUS MOD DOES NOT WORK ANYMORE: "Don't add tax on any prices in the store if customer is logged in with verified VAT-number and customers shipping address is not in the same country as the store." So, the file catalog/includes/functions/functions_taxes.php is not updated. Please, use the geniune file from 1.3.9e instead.

Download the file here: http://dl.free.fr/bdI0KVTFH (Zip file, 119 KB) :beta:

19 Aug 2010, 8:07 AM
#272
oberheimer avatar

oberheimer

Zen Follower

Join Date:
Feb 2009
Posts:
108
Plugin Contributions:
0

Re: VAT-mod for European companies

infocom:

I chose Finland to test this as my first VAT number, FI12345678 (FI + 8 characters) and it tells me "The VAT number does not match server request." and states I should use FI + 8 characters :frusty:

Had to switch check VAT number off.

Same here does not work need to fix it. Everything else works with the zones and taxes...

i get this error "Warning: file_get_contents() expects at most 2 parameters, 3 given in /includes/functions/extra_functions/functions_vatmod.php on line 84"

19 Aug 2010, 8:38 AM
#273
oberheimer avatar

oberheimer

Zen Follower

Join Date:
Feb 2009
Posts:
108
Plugin Contributions:
0

Re: VAT-mod for European companies

And also i installed an earlier version so how do i remove the old sql

INSERT INTO configuration_group VALUES (27, "VAT-Mod", "VAT-Mod options", 27, 1);

INSERT INTO configuration VALUES ("", "Check the European Tax number", "ENTRY_TVA_INTRACOM_CHECK", "true", "Check the Customer's European Tax number by the europa.eu.int server", 27, 1, "", "", NULL, "zen_cfg_select_option(array('true', 'false'),");
INSERT INTO configuration VALUES ("", "European Tax number of the store", "TVA_SHOP_INTRACOM", "", "European Tax number:", 27, 22, "", "", NULL, NULL);
INSERT INTO configuration VALUES ("", "Minimum characters for European Tax number", "ENTRY_TVA_INTRACOM_MIN_LENGTH", 10, "Required characters for European Tax number (0 if you don't want checking)", 27, 17, "", "", NULL, NULL);

ALTER TABLE address_book ADD entry_tva_intracom VARCHAR(32) DEFAULT NULL AFTER entry_company;
ALTER TABLE orders ADD billing_tva_intracom VARCHAR(32) AFTER billing_company;

and ad the new

22 Aug 2010, 6:31 PM
#274
dimjoula avatar

dimjoula

New Zenner

Join Date:
Feb 2008
Posts:
23
Plugin Contributions:
0

Re: VAT-mod for European companies

Your problem is a very simple configuration problem. Go to the Zen Cart Admin, menu Configuration -> VAT-MOD and change the number in front of "Minimum characters for European Tax number". Put 0 for not check, or something to 4 (the minimum for Romania). If this does not help, I have no other clue.

5 Sep 2010, 7:45 PM
#275
dimjoula avatar

dimjoula

New Zenner

Join Date:
Feb 2008
Posts:
23
Plugin Contributions:
0

Re: VAT-mod for European companies

VAT-Mod BETA UNOFFICIAL for Zen Cart v. 1.3.9f
For Companies inside European Union

Remake and compatibility with Zen Cart v. 1.3.9f
Special edition done by dimjoula.

IMPORTANT NOTE: this is not the official release from Beez & Vike.
It is a BETA version. I did a copy and paste from the previous codes (VAT-Mod 1.3.0 for Zen Cart v. 1.3.8a) and paste them to Zen Cart v. 1.3.9f files. It works for me with my own personal configuration, but you should take it with care. IT MAY NOT WORK WITH YOUR OWN CONFIGURATION out of the box. Perhaps you will need to edit some files. If it is the case, please share it here.

BACKUP - BACKUP first your files and database before updating your store with these files. It may be buggy. You must know how to restore it!!!

What's new:

  • PARTIAL (90%) Compatibility with Zen Cart v. 1.3.9f (but should be OK in most regular situations; potential problem when the customer uses several different addresses located in different countries)
  • french translation
  • update of the VIES link to check the validity of the number (only for a compatibility with php 5.3)
  • THIS FUNCTION INTRODUCED IN THE PREVIOUS MOD DOES NOT WORK ANYMORE: "Don't add tax on any prices in the store if customer is logged in with verified VAT-number and customers shipping address is not in the same country as the store." So, the file catalog/includes/functions/functions_taxes.php is not updated. Please, use the geniune file from 1.3.9f instead.

Download the file here: http://dl.free.fr/ihFjqxh49 (Zip file, 151 KB) :beta:

22 Sep 2010, 1:34 PM
#276
webmc avatar

webmc

New Zenner

Join Date:
Jul 2010
Location:
Kent UK
Posts:
50
Plugin Contributions:
0

Re: VAT-mod for European companies

When a user clicks on my account link there is no option to add the vat number or change company name if they did not enter it upon registration......This would be helpful

22 Sep 2010, 1:43 PM
#277
webmc avatar

webmc

New Zenner

Join Date:
Jul 2010
Location:
Kent UK
Posts:
50
Plugin Contributions:
0

Re: VAT-mod for European companies

It is there actually - just under edit address - not where I was expecting.

"So, the file catalog/includes/functions/functions_taxes.php is not updated. Please, use the geniune file from 1.3.9f instead"

-That is important - blank screen otherwise as i just found out

7 Nov 2010, 6:16 PM
#278
dimjoula avatar

dimjoula

New Zenner

Join Date:
Feb 2008
Posts:
23
Plugin Contributions:
0

Re: VAT-mod for European companies

For your information, the "VAT-Mod BETA UNOFFICIAL for Zen Cart v. 1.3.9f" module is fully compatible with 1.3.9h.

23 Nov 2010, 11:51 AM
#279
knownonesince avatar

knownonesince

New Zenner

Join Date:
Dec 2009
Posts:
22
Plugin Contributions:
0

Re: VAT-mod for European companies

I'm using 1.3.8.a it is a Dutch shop selling licenses.

The text on the order should be changed according to if it's a company and the country:

Country Customer On Order
Netherlands Company 19 % VAT
Netherlands No Company 19 % VAT
EU not NL Company VAT Reversed Charge
EU not NL No Company VAT Reversed Charge
Outside EU Company empty
Outside EU No Company empty

How can I accomplish this?

15 Dec 2010, 12:08 PM
#280
pituti avatar

pituti

New Zenner

Join Date:
Nov 2007
Posts:
20
Plugin Contributions:
0

Re: VAT-mod for European companies

Hi,

I have the 1.3.9 version, and I executed the sql patch, and upload the files, but now I cannot enter in the admin (blank site).

Do you know any reason why could that happend how could I fix it?

Thanks!

edit: Oops, I saw the answer infocom gave one page earlier. There was a problem with the old functions_vatmod.php, but it is fixed in the new version ;-)