masterblaster Posted July 11, 2004 Share Posted July 11, 2004 I've installed the E.U. VAT Intracom Number constribution and it works fine. My Problem is that I want to set the tax to 0.00% if a Person has a valid VAT number. I tried to change the ot_tax file, but I don't know where I shall begin. ;) The rest will be charged 16%. I don't know what I'm doing wrong! Please help me as fast as you can. I want to go online with my shop! Masterblaster Quote Link to comment Share on other sites More sharing options...
JeanLuc Posted July 20, 2004 Share Posted July 20, 2004 For not having VAT on shipping cost if the conditions about VAT intracom are OK: in catalog/includes/modules/order_total/ot_shipping.php, find these two lines (about 52): $shipping_tax = tep_get_tax_rate($GLOBALS[$module]->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); $shipping_tax_description = tep_get_tax_description($GLOBALS[$module]->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); and replace them by: // BOF for TVA_intracom_v3.4 if ($order->billing['company'] != '' && $order->billing['tva_intracom'] != '' && $order->billing['country']['id'] != STORE_COUNTRY && $order->delivery['country']['id'] != STORE_COUNTRY) { $shipping_tax = 0; $shipping_tax_description = NO_TAX; } else { // EOF for TVA_intracom_v3.4 $shipping_tax = tep_get_tax_rate($GLOBALS[$module]->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); $shipping_tax_description = tep_get_tax_description($GLOBALS[$module]->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); // BOF for TVA_intracom_v3.4 } // EOF for TVA_intracom_v3.4 Just be carefull and check if it's OK but I think it is: it's just put the VAT on shipping as '0'. Quote JeanLuc OsC: MS2 Link to comment Share on other sites More sharing options...
masterblaster Posted July 20, 2004 Author Share Posted July 20, 2004 Thanks! It works fine and I solved the rest! masterblaster B) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.