Jump to content
Sign in to follow this  
masterblaster

VAT/TAX calculation urgent problem

Recommended Posts

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

Share this post


Link to post
Share on other sites

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'.


JeanLuc

OsC: MS2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×