VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Development Projects, Modifications, Hacks & Tweaks. VM1.1 => Shipping Modules => Topic started by: Chris Hutcheson on July 23, 2006, 21:59:18 PM

Title: Canada Post Tax Calculation
Post by: Chris Hutcheson on July 23, 2006, 21:59:18 PM
I have the Canada Post shipping module working, but the tax aspect of it seems screwed up. I figured out which fields do what in the module, and when I enter the tax rates the shipping cost appears to be calculated correctly with taxes. However, it's incorrect on the payment method page - on a $50 order with a 5.75 shipping cost, the tax amount DROPS by 7cents on what was calculated on the previous (shipping method) page. I'm no PHP guy, but I'm guessing it's something in canadapost.php around line 298 where the writer had to do a trick - to quote him/her - to handle two tax rates.

The thing is, the error occurs whether I separate the rates 6% provincial and 8% GST in the module, or show them as a combined 14% in either field. The final tax calculation is correct on the shipping page, and low by 9 cents on the total page when I use 14%, and 7 cents when I break them out into federal and provincial amounts.

My alternatives, I guess, are to not charge tax (urk!) or try UPS or Fedex (or return to Zen Cart)...any help would be appreciated!
Title: Re: Canada Post Tax Calculation
Post by: Scott on August 08, 2006, 05:39:28 AM
Fixed...
http://virtuemart.net/index.php?option=com_smf&Itemid=71&topic=20027.msg50643#msg50643