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

VAT-mod for European companies

Views: 114,578

Results 201 to 220 of 362
16 Mar 2009, 8:01 AM
#201
francy88 avatar

francy88

New Zenner

Join Date:
Mar 2009
Posts:
9
Plugin Contributions:
0

VAT-mod for European companies

yes, also the ";" was an error, but I corrected it...

now the only thing not workink on me is the changements of profile: if I try to add/modify the european tax number, nothing changes in DB...:wacko:

16 Mar 2009, 5:27 PM
#202
a1m_overlord avatar

a1m_overlord

New Zenner

Join Date:
Mar 2009
Posts:
3
Plugin Contributions:
0

Re: VAT-mod for European companies

Hmmm, for me everything works fine ...
How did you install the mod ??? (You wrote you installed 1.2.7, is that correct ???)

What I did is installing 1.2.8, then copying all template files from 1.2.7 into the templates folder and then create own language files (languages folder /german in my case ;) )

17 Mar 2009, 7:46 AM
#203
francy88 avatar

francy88

New Zenner

Join Date:
Mar 2009
Posts:
9
Plugin Contributions:
0

Re: VAT-mod for European companies

yes, also in my case I do that, but the site broken. then I deleted all module files and I try to install the previous version (1.3.7).
this version works for me, the only problem is the editing of the profile: I don't succeed to add/modify/delete the VAT number (in fact the VAT number inserted during registration, doesn't appears in the text field likes all others fields...)
I thinks wold be a problem of paths, but I'm not sure...
In fact after installing the module also the registration doesn't works, but I found the problem in a path:
at the begin I put the file "create_accout.php" under "includes/modules".
Now I put the same file under "includes/modules/classic" and all works...

this wold be the same or similar problem?

thanks for the support..
Francesco

24 Mar 2009, 5:03 PM
#204
modparts avatar

modparts

New Zenner

Join Date:
Mar 2009
Posts:
2
Plugin Contributions:
0

Re: VAT-mod for European companies

Hi all,

I installed the mod and everything seems to work exept i don't get the vat number field when i want to create a new account

24 Mar 2009, 6:10 PM
#205
dave_g_1 avatar

dave_g_1

New Zenner

Join Date:
Mar 2007
Posts:
83
Plugin Contributions:
0

Re: VAT-mod for European companies

BE SURE to backup your template files before you do this!!!!!

It looks like the templates are missing in the VAT-mod version 128 dated Feb 04 2009 download, you will find the 3 .tpl files I use they may or may not work for you they will need to go into \includes\templates\YOUR_TEMPLATE\templates directory.

28 Mar 2009, 4:31 PM
#206
barkbit86 avatar

barkbit86

New Zenner

Join Date:
Nov 2008
Posts:
14
Plugin Contributions:
0

Re: VAT-mod for European companies

arve:

Ok, I found the problem when I switch the backend to English then it works. During testing the function I noticed a big Problem with it. If a private person from a EU country without a EU-Vat number buys sth it also deductes the tax!:shocking:

Doesn´t anyone else have this problem too?

Beez:

We're unable to reproduce your problem. It works fine for us. Are you sure you have tax set up correctly? See the install.txt for instructions. Please let us know how it turns out.

I have the same problem private customers also gets taxfree.
i have no idea why it does this, nothing seem to fault.
But if somebody really wants, pls explain in detail the zone configuration. Alltough i dont think this is the solution?

28 Mar 2009, 7:45 PM
#207
daniel21 avatar

daniel21

New Zenner

Join Date:
Mar 2009
Posts:
2
Plugin Contributions:
0

Re: VAT-mod for European companies

I think that the implementation of VAT made using only the ISO codes of countries in the EU may cause problems, in fact the case management that is of special areas that have the purpose of VAT shall be considered or not considered to belong to the EU is difficult. In this respect there is a link for these special cases to which to refer.
http://www.e-services.agenziaentrate.it/sito_ing/aliquote_iva/aliquote_iva-02.htm

Sorry for my bad English.

30 Mar 2009, 4:18 PM
#208
barkbit86 avatar

barkbit86

New Zenner

Join Date:
Nov 2008
Posts:
14
Plugin Contributions:
0

Re: VAT-mod for European companies

barkbit86:

I have the same problem private customers also gets taxfree.
i have no idea why it does this, nothing seem to fault.
But if somebody really wants, pls explain in detail the zone configuration. Alltough i dont think this is the solution?

A small update to my problem, the problem is that it shows all my products taxfree, even when i have show tax in prices configured, this happens when i configure a company or private person from sweden. My own country is finland theres no problem with customers from finland.

31 Mar 2009, 12:58 PM
#209
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Re: VAT-mod for European companies

hi all

every time I do a test purchase, the EU VAT is a new install, i get the below error, is anyone else having this problem?

'Server is unable to check your VAT number: please, leave blank'

Cheers

Matt

4 Apr 2009, 3:55 PM
#210
barkbit86 avatar

barkbit86

New Zenner

Join Date:
Nov 2008
Posts:
14
Plugin Contributions:
0

Re: VAT-mod for European companies

mattys:

hi all

every time I do a test purchase, the EU VAT is a new install, i get the below error, is anyone else having this problem?

'Server is unable to check your VAT number: please, leave blank'

Cheers

Matt

have you applyed this fix
Hey,

I just tried to install the mod and got a white screen too...

In my case the functions_vatmod.php is broken (in includes/... and admin/includes/...)

edit (from line 121 to end)
PHP Code:
'CZ'=>'CZ', //Czech Republic
'SI'=>'SI');//Slovania
'RO'=>'RO', //Romania
'BG'=>'BG'); //Bulgaria
return $intracom_array;
}
?>
to
PHP Code:
'CZ'=>'CZ', //Czech Republic
'SI'=>'SI', //Slovania
'RO'=>'RO', //Romania
'BG'=>'BG'); //Bulgaria
return $intracom_array;
}
?>

4 Apr 2009, 4:07 PM
#211
barkbit86 avatar

barkbit86

New Zenner

Join Date:
Nov 2008
Posts:
14
Plugin Contributions:
0

Re: VAT-mod for European companies

Is it me who cant configure this or is this a bug, but goddamit i cant get this to function correctly.
I have zj_black template installed. Private persons gets taxfree when from another Eu country, pls check this out somebody.

6 Apr 2009, 8:18 AM
#212
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Re: VAT-mod for European companies

barkbit86 - i gave up trying to intstall this mod, has a few bugs in. i tried to get hold of the guys that developed it and asked if they would do, obvioulsy for payment, but had no reply from either of them.

In the end I got these guys to sort: http://www.waveriderdesign.com/

It is working now, although the VAT server is down a bit http://ec.europa.eu/taxation_customs/vies/vieshome.do and there is nothing that can be done about that - the module references the database on this site to validate VAT numbers

when you download the latest module, the pack doesn't contain the template files, these need to be downloaded from an earlier download pack

Apart from this it seems to work well, thanks to those who developed it.

7 Apr 2009, 9:08 PM
#213
barkbit86 avatar

barkbit86

New Zenner

Join Date:
Nov 2008
Posts:
14
Plugin Contributions:
0

Re: VAT-mod for European companies

Thank you Mattys, well it seemsl il just have to wait for better times :D

8 Apr 2009, 8:41 PM
#214
vitam avatar

vitam

New Zenner

Join Date:
Jul 2005
Posts:
12
Plugin Contributions:
0

Re: VAT-mod for European companies

Help me, please!
I use VAT-mod_138a_v130 and this mod wrong verify VAT number (Poland).
In my shop I need VAT number, but I don't verification it.

In admin (VAT-Mod), in "Check the VAT number" set "false", but mod still verifing!?! Send red info about "wrong number"....

How I close (blocked) this verification (on create, modify etc)?
Please...

Best Regards to ALL

21 Apr 2009, 7:16 PM
#215
daniel21 avatar

daniel21

New Zenner

Join Date:
Mar 2009
Posts:
2
Plugin Contributions:
0

Re: VAT-mod for European companies

barkbit86:

Is it me who cant configure this or is this a bug, but goddamit i cant get this to function correctly.
I have zj_black template installed. Private persons gets taxfree when from another Eu country, pls check this out somebody.

I think that I have found the solution:
Change the last lines of the file
zen-cart-v1.3.8a\includes\functions\extra_functions\functions_vatmod.php

from

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

to

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

22 Apr 2009, 10:38 PM
#216
barkbit86 avatar

barkbit86

New Zenner

Join Date:
Nov 2008
Posts:
14
Plugin Contributions:
0

Re: VAT-mod for European companies

Daniel21:

I think that I have found the solution:
Change the last lines of the file
zen-cart-v1.3.8a\includes\functions\extra_functions\functions_vatmod.php

from

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

to

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

Thank you so much,:clap: i hope this will fix this, unfortunately the server seems to be down right now, but il post as soon as i get this tested.

24 Apr 2009, 12:19 AM
#217
barkbit86 avatar

barkbit86

New Zenner

Join Date:
Nov 2008
Posts:
14
Plugin Contributions:
0

Re: VAT-mod for European companies

Daniel21:

I think that I have found the solution:
Change the last lines of the file
zen-cart-v1.3.8a\includes\functions\extra_functions\functions_vatmod.php

from

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

to

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

Thank you Daniel21 This is tested and seems to be working now, thank you very much for this bugfix. This is a very good mod, excellent work by beez and vike

7 May 2009, 1:16 PM
#218
rayspike avatar

rayspike

New Zenner

Join Date:
Apr 2009
Posts:
25
Plugin Contributions:
0

Re: VAT-mod for European companies

Nice AddOn

I want that customers which have an VAT-number can checkout with COD... All other customers without VAT-number can't

So a step to do that is to add a condition into the includes/modules/payment/cod.php

Something like this.

// disable the module if customers don't have an VAT-number
$verify_entry_btw = $db->Execute("select entry_tva_intracom from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $order_check->fields['customers_id']. "'");
      if ($this->enabled == true) {
		if (zen_not_null($order_check->fields['billing_tva_intracom'])) {
         $this->enabled = false;
        }
      }

But this isn't the right condition. Who can help me with the right condition?

11 May 2009, 2:37 PM
#219
rayspike avatar

rayspike

New Zenner

Join Date:
Apr 2009
Posts:
25
Plugin Contributions:
0

Re: VAT-mod for European companies

Solution is this:

find ```
// disable the module if the order only contains virtual products
if ($this->enabled == true) {
if ($order->content_type != 'physical') {
$this->enabled = false;
}
}



and insert next code

// disable only when billingaddress has a correct VAT-Number
$order_check = $db->Execute("select entry_tva_intracom
from " . TABLE_ADDRESS_BOOK . "
"); // TVA_INTRACOM
if ($this->enabled == true) {
if (zen_not_null($order_check->fields['entry_tva_intracom'])) {
$this->enabled = true;}
else {
$this->enabled = false;
}
}


So now people with a right VAT-Number in their Billing-Address can pay with COD, customers without a VAT-Number in their billing-address can't pay with COD.
17 May 2009, 9:41 AM
#220
sky1 avatar

sky1

New Zenner

Join Date:
Feb 2007
Posts:
15
Plugin Contributions:
0

Re: VAT-mod for European companies

Please help.
I am having a problem after installing Vat-Mod v.1.3.0 to zen-cart-v1.3.8a
admin/includes/functions/extra_functions/functions_vatmod.php on line **133
**I have fixed line 130-132 easily. Problem is that I know nothing about programing.