Administrator
- Join Date:
- Feb 2006
- Location:
- Tampa Bay, Florida
- Posts:
- 10,747
- Plugin Contributions:
- 56
[Done 1.3.6] 1.3.5 coupon tax calculation and fix
Note: Tax calculation for discount coupons was broken prior to 1.3.5, but the line numbers
specified below are for the 1.3.5 version of ot_coupon.php.
To reproduce:
Enable discount coupon under modules/order total. Set recalculate tax to standard.
Add two items to your cart and check out. (If you simply add one item, the tax is correct.)
Fix: In ot_coupon.php, delete the following lines: l 279-280.
Then delete lines 214-218.
Now the tax will always show as the tax on the subtotal, but if you "include tax"
in your coupon settings, the amount shown for the discount will compensate
for the price deduction. I believe that this is the correct approach, and the way
that group discounts does it (which modifies the tax) is misleading - but in any event,
the calculations are correct.
Scott
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.