You are clever too Kuroi and have indeed helped me out on many occassions - :)
No offence intended!
Rob
You are clever too Kuroi and have indeed helped me out on many occassions - :)
No offence intended!
Rob
if elephants could fly, I'd be a little more optimistic....
I got same problem at my store.
How can I make it calculate Gross and net correctly?
Module reguires to have 2 Taxable Goods settings EEC VAT Zone and local country (finland).
Both are set tax rate 22%. Problem seems it uses both tax rates in product edit form, therefore using tax 44%.
The quoted example takes 2 x 21% = 42%.
What is the fix?
Hi, I have just installed your VAT Module, I actually have my store in South Africa though, How do I set it up so that it doesn't check the VAT number, I just want the client to fill it in.
I have changes in admin->VAT-mod "check VAT number" to false and "Miniumum Numbers" to 0
What else do I need to change, Thank you for your help.
i had this error and i fixed it by removing the ');' from line 128 and replacing it with a ','.
looks like 2 extra countries were added after slovania :)Code:'CZ'=>'CZ', //Czech Republic 'SI'=>'SI',//Slovania 'RO'=>'RO', //Romania 'BG'=>'BG'); //Bulgaria return $intracom_array;
Hello -- i had some problems with this mod when using group disounts. I found that there was a problem with the group discount logic and vat tax.
I found this post - http://www.zen-cart.com/forum/showthread.php?t=120341 which discussed the discount+tax problem and a possible solution (not related to the VAT mod). It looks like this problem propogates to the VAT mod. By modifying the code below i was able to get my discounts+vat to work properly.
This works in my version on zencart which is 1.3.8. please use at own risk -- create a backup of the files being modded before aplying this 'fix'. I am not a full time programmer thus i have not run this mod through X number of versions -- it works in my environment (php 5.2.5, apache 2.2.6, mysql 5.0.45, zen 1.3.8)
Please note in the 3rd file (ot_group_pricing.php) there is a line of code which is supposed to address group disounts which do not include shipping and tax to calculate the discount. I initially added this line in but it messed up the calculations. I was able to get the correct values by commenting this line out -- it works when i have both values to false in the group-disount mod.
I hope this helps someone as it definately helped me -- maybe if someone can test this thoroughly then it could be added to the next version of the VAT mod :).
in includes/classes/order.php
in includes/modules/order_total/ot_shipping.phpCode:'subtotal' => 0, 'shipping_tax'=>0, //added per http://www.zen-cart.com/forum/showthread.php?t=120341 'tax' => 0, 'total' => 0,
Code:// TVA_INTRACOM REPLACE BEGIN ..$calculated_tax = $shipping_tax_amount } } $calculated_tax = zen_calculate_tax($order->info['shipping_cost'], $shipping_tax); if($tva_tax){ $order->info['tax'] += $calculated_tax; $order->info['tax_groups']["$shipping_tax_description"] += $calculated_tax; $order->info['shipping_tax'] += $calculated_tax; //added as per http://www.zen-cart.com/forum/showthread.php?t=120341 $order->info['total'] += $calculated_tax; } if (DISPLAY_PRICE_WITH_TAX == 'true') $order->info['shipping_cost'] += zen_calculate_tax($order->info['shipping_cost'], $shipping_tax); //} // TVA_INTRACOM REPLACE END
in /includes/modules/order_total/ot_group_pricing.php
Code:function get_order_total() { global $order; $order_total_tax = $order->info['tax']; $order_total = $order->info['total']; if ($this->include_shipping != 'true') $order_total -= $order->info['shipping_cost']; if ($this->include_shipping != 'true') $order_total_tax -= $order->info['shipping_tax']; //added per http://www.zen-cart.com/forum/showthread.php?t=120341 if ($this->include_tax != 'true') $order_total -= $order->info['tax']; //if ($this->include_tax != "true" && $this->include_shipping != 'true') $order_total += $order->info['shipping_tax']; //adding this did not work for me total was incorrect $orderTotalFull = $order_total; $order_total = array('totalFull'=>$orderTotalFull, 'total'=>$order_total, 'tax'=>$order_total_tax); return $order_total; }![]()
i wanted to make sure you do not miss the above fix (as i somehow did even though i went through all 24 pages) and install this into your VAT mod 1.3.0. the above makes sure that private parties in the EU are charged VAT tax. without this when selling in the EU only private parties in your home country are charged VAT tax (private parties outside of your home country in the EU are not charged VAT which is incorrect).
I wish to thank jazznuts699 for providing the fix for the functions_vatmod which was a real problem upgrading to 1.3.8 with latest vat mod.
We installed the vat module around 18 months ago and its worked fine since however since upgrade to 1.3.8 all european customers are not being charged vat.
For example I am based in UK and get charged vat at checkout, all products i view on main website show price with and without vat. If I change my delivery address to spain, france etc it still calculates the correct vat. But all old or new european customers are not being charged vat.
If any customer in europe places an order all products show the same price for incl and excl vat i.e. £1.00 excl vat / £1.00 incl vat and no vat is charged at checkout - even if a new european country address is added to the account no vat is charged.
ADDED - just to clarify the vat module works fine and shows the vat correctly as it should, just not doing that with european customers.
Martyn
Unfortunately is this for 100% correct. In this query it will look if the VAT-Number is in the address-book. Not especially for billing-address.
How can I do this, that is only for billing-address purpose?
Solution is this query (WHERE address_book_id = '" . (int)$_SESSION['billto'] . "'):
Code:$order_check = $db->Execute("select entry_tva_intracom from " . TABLE_ADDRESS_BOOK . " WHERE address_book_id = '" . (int)$_SESSION['billto'] . "' "); // TVA_INTRACOM
Last edited by RaySpike; 3 Sep 2009 at 10:26 AM. Reason: solution
Bookmarks