shannonphx:
I did several tests & I think I narrowed the problem down to the Setup Fee.
OK, so lets look at some of these figures.
Using the last of your examples, we have this
cost tax
82.40 6.84
35.00 2.90
8.95 0.00
126.35 9.74 - No tax on shipping (??????)
The 'correct' amounts here should (probably be)
cost tax
82.40 6.84
35.00 2.90
8.95 0.74
126.35 10.48
Now the 'fun' bit. The total in this example shows
133.19 which is exactly 6.84 higher than it should be. Is it a coincidence that this is the same amount as the tax on the product itself? I very much doubt it.
Using your 3rd example we have
cost tax
73.80 6.13
35 2.90
8.95 0.74
117.75 9.77
-108
9.75
The total displayed is 6.85. A difference of $2.90. Is it a coincidence that 2.90 is the tax amount for the setup fee? I very much doubt it.
So, it looks to me that what is happening is that some costs are being double taxed, but having said that, your 4th example seems to defy explanation.
So, what could/would cause this? I can only think it is a coding error somewhere, and since a 'native' zencart doesn't exhibit this strange kind of behaviour, I'm inclined to think that it has something to do with your custom addon for the setup fees. (OK, so it is easy to blame the unknown), but I really can't think of what else it would/could be.
Exactly how/where is this fee being added? A new/modified order total module? an automatically added 'product'? Other?
Is it possible for you to provide the relevant code for inspection?
Would I be wrong to assume that without the Setup fee then all else is OK? (with and without discounts?)
Other than what I've just written, I'm pretty much stumped for any other explanation.
Cheers
RodG
NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.
Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.