My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
ok, I try to clarify.
The store is on 1.3.9h
When there is a discount on an order, in this case a discount coupon for free shipping, and you change order status to, lets say "delivered", the order total is totally messed up.
Total isnt correct anymore.
See below:
First order is good:
Subtotal: 139:-
Discount Coupon: Test : -69:-
Shipping: 0:-
Tax 25%: 28:-
Total: 139:-
Then changing order status:
Subtotal: 111:-
Discount Coupon: Test: -69:-
Shipping: 0:-
Tax 25%: 11:-
Total: 53:-
This is tested on several stores with same result. All running 1.3.9h.
If removing the Edit Orders module it works fine to change status on an order without messing up the total. But removing it aint no solution since we need this module and its good in all other aspects.
/Jagge
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
In Edit Orders...
No one?
Edit Orders does not recalc tax. So using your numbers below:
The subtotal of 111 (after order is edited) is the result of the original subtotal of 139 minus the 28 tax (because edit orders doesn't recalculate tax)
However, simply changing the status of an order (vs. adding or taking away product) shouldn't produce this result.
But before we look at Edit Orders as the problem, you need to solve your first problem: the math in your original order doesn't add up.
The subtotal and total are the same and they should not be if you are subtracting 69 for the coupon and adding 28 for tax. Also, your tax numbers are wrong.
Your subtotal is 139. If you then subtract 69 for the coupon, the subtotal should then be 70. 28 percent tax on 70 is 17.50, leaving you with a total of 87.50.
You need to find out why this is calculating incorrectly first and foremost. Uninstall or disable Edit Orders and fix the problem in Zen Cart. Then re-install or re-enable Edit Orders and see if the problem still exists.
Thanks for the reply.
However, that discount is a coupon for free shipping so there shall be no reduced total.
So the figures/amounts is correct.
In my store I use two differente tax-rates....
After editing orders, the tax-totals are not correct.
When adding a product with a tax-type which didn't exist in the order before, the new tax-type is not shown at all.
When editing other orders (with both tax-types) the tax totals for both rates are the same. (the total of both taxes, instead of split up for each rate)
When I look at the code, is see that there is just one runnintax variable.
$RunningTax +=
Is there somebody with the same problem. And maybe already solved?
I am using v3.03 with Zen Cart 1.3.9h
To add on to what ScriptJunkie posted, your order totals are out ow whack and I'm confident that it's not because of Edit Orders.. Secondly, simply changing the order status in Edit Orders (regardless of whether you edit an order ot not) will not change the order totals all by itself..
It seems likely another order management mod you are running may be the source of the issues you are having..
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Bookmarks