Administrator
- Join Date:
- Sep 2009
- Location:
- Stuart, FL
- Posts:
- 14,119
- Plugin Contributions:
- 56
Coupon (amount + free shipping) tax calculations incorrect
Fresh copy (2016-03-29) of Zen Cart 1.5.5 with demo products included. Defined a new coupon for $25.00 off plus free shipping on orders $30.00 or more. Flat rate ($5.00) shipping enabled and untaxed.
Go to storefront, add Red Corner Linked (products_id 14) and Matrox G200 MMS (products_id 1) with all default options. Price reflected in the shopping cart is $331.99.
Sign in and make sure that the order is going to Florida (7% sales tax). Click Checkout.
On the checkout_payment page, enter the coupon-code for the newly-created coupon and press enter (after you've chosen a payment method). The checkout_confirmation page registers the fact that the coupon was entered, but the tax calculation isn't correct:
Sub-Total: $331.99
Flat Rate (Best Way): $5.00
Discount Coupon: 40794fad55 : -$30.00
FL TAX 7.0%: $21.14
Total: $328.13
The tax result should be based on the amount (331.99 - 25.00) = 306.99 * 0.07 = 21.49, but it's being calcualted on (331.99 - 30.00) = 301.99 * 0.07 = 21.14.