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. :)
Printable View
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. :)
No worries,
includes/functions/functions_taxes.php
Ray
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
Just a note, BC switched back to the PST effective April 1, 2013
NS HST rate is 15%
PEI switched to HST effective April 1, 2013 tax rate is 14%
you might want to update the setting up post at the top of this thread to reflect these changes
I am having an issue with zones that have multiple tax rates ie: PST and GST in the same zone
not showing any tax at all, I am Using ver 1.5.0
Thanks
Jim
www.thetoychest.ca
Warning!! Site contains adult content!
Things have gone a little sideways I think, and I'm hoping this thread is as active as it once was.
I have products with taxes, and shipping with taxes. Each product/shipping item has two taxes for Québec. (5% GST / 9.975% PST)
Product price is 200.00
Shipping Price is 25.00
Line one of Taxes is GST = 10.00
Line two of Taxes is PST = 19.95
Line three of taxes is GST+PST = 3.74
This may be confusing for the client, heck, it was confusing for me!
It seems that Line one and two are the taxes on the product, and line three is the combined taxes on the shipping.
Shouldn't lines one and two be combined?
The good news is that all the taxes are properly calculated, so at least there's that.
Ray
So essentially you're saying everything's correct but its just not displaying exactly how YOU figure it should in YOUR situation, right?
I personally disagree that its confusing, except perhaps to customers that don't bother to read. If it says GST and PST for the goods and then combines them for the taxes... it is clear about that. Sure, someone might wonder "hmm.. why'd they do it that way?" but that's a quandary more of a confusion.
If you want it displayed a specific way for your site then you have the opportunity to change it as you see fit. But what you think works best for you isn't going to be universal.