Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Dutch tax problems


ironmaik

Recommended Posts

Hello,

 

I installed taxes sql file for the netherlands from the contributions.

All Zones (12) and the tax rate for every zone is set to 19%.

 

But the problem is when I fill in the price for an article it makes a strange caculation. For instance ?25 becomes ?82. The taxes of all 12 zones is added to the product.

All zones have priority one, I already changed that but it makes no difference.

 

Does anyone now how I can solve this problem?

 

Maikel

Link to comment
Share on other sites

Hello Maikel

 

I have exactly the same problem.

With 3 different zones and same tax-rate=25%.

100 (excl tax) results in 175 (incl. tax).

 

Let me know if you find a solution to the problem...

 

Jakob

Best regards

Jakob Høy Biegel

-----------------------------------

Shopeon.com - Automate your webshop

Link to comment
Share on other sites

Hello Maikel

 

I did some researh on the problem.

 

It seems like there is a bug in the admin/categories.php (MS2-installation).

Now tax-rates for all zones are summed into a tax-value.

Instead tax-rates for the zone of your store should be summed!

 

Correct the bug, by opening the file admin/categories.php and find (line 421):

tep_get_tax_rate_value($tax_class_array[$i]['id'])

 

substitute this text with:

 

tep_get_tax_rate($tax_class_array[$i]['id'], STORE_COUNTRY, STORE_ZONE)

 

 

Setup your Store country and Store zone in the administration and you should be set ;)

 

Best regards

Jakob

Best regards

Jakob Høy Biegel

-----------------------------------

Shopeon.com - Automate your webshop

Link to comment
Share on other sites

I edited line 421

 

echo 'tax_rates["' . $tax_class_array[$i]['id'] . '"] = ' . tep_get_tax_rate_value($tax_class_array[$i]['id'], STORE_COUNTRY, STORE_ZONE) . ';' . "\n";

 

I also changed the store country and zone.

But it doens't work.

 

All Tax Rates have priority 1. I changed one of them, but that doesn't work either.

 

Maikel

Link to comment
Share on other sites

Hello Maikel

 

You should change the line to:

echo 'tax_rates["' . $tax_class_array[$i]['id'] . '"] = ' . tep_get_tax_rate($tax_class_array[$i]['id'], STORE_COUNTRY, STORE_ZONE) . ';' . "\n";

 

(You forgot to remove the '_value' part og the function-call).

It should work fine with all tax rates having priority 1.

 

Best regards

Jakob

Best regards

Jakob Høy Biegel

-----------------------------------

Shopeon.com - Automate your webshop

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...