Couldn't find the edit button, but I would like to remove the question about the tax calcuation formula, I found it, and it's very straightforward. :)
Couldn't find the edit button, but I would like to remove the question about the tax calcuation formula, I found it, and it's very straightforward. :)
RayDube
The Leatherman Place Powered by Zen-Cart!
The Road to Online Success - Traffic Builder - Web Directory - Web Hosting
No worries,
includes/functions/functions_taxes.php
Ray
RayDube
The Leatherman Place Powered by Zen-Cart!
The Road to Online Success - Traffic Builder - Web Directory - Web Hosting
Hi Ray,
I am just trying to find where I got that code from on the FORUM - I used it and it worked, so I just copied it into my explanation for what I did. There is a report in Bug Issues regarding Compound Tax for version 1.5. I was viewing the thread here:
http://www.zen-cart.com/showthread.p...t=compound+tax
I also looked at this thread and think I used the file suggested in it as well.
http://www.zen-cart.com/showthread.p...-shipping-cost
Well, this is interesting.
1.3.9:
1.5Code:$taxAdd = zen_calculate_tax($this->products[$index]['final_price']*$this->products[$index]['qty'], $taxRate) + zen_calculate_tax($this->products[$index]['onetime_charges'], $this->products[$index]['tax']);
Not quite sure why, but the two tax variables are different, and in 1.5 it appears that it is incorrect:Code:$taxAdd = zen_calculate_tax($this->products[$index]['final_price'], $this->products[$index]['tax']) * $this->products[$index]['qty']; + zen_round(zen_calculate_tax($this->products[$index]['onetime_charges'], $this->products[$index]['tax']), $decimals);
$this->products[$index]['tax'] <> $taxRate
Changing this does allow the tax to be calcuated correctly
So to add to the fix suggested earlier, delete the if for the comparison of the tax description
(and the closing } only, leaving the contents)Code://if ($taxDescription == $products_tax_description) // {
Then change the tax variable to $TaxRate.
I will follow up and add my comments to the other thread as well.
Next is the description, which it seems like the correction mentioned earlier should be ok.
Ray
RayDube
The Leatherman Place Powered by Zen-Cart!
The Road to Online Success - Traffic Builder - Web Directory - Web Hosting
Bookmarks