Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

VAT/TAX calculation urgent problem


masterblaster

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

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...