Administrator
- Join Date:
- Sep 2009
- Location:
- Stuart, FL
- Posts:
- 14,081
- Plugin Contributions:
- 56
Order totals tax display when coupon active
I've got a test environment where Modules->Order Totals is set as:
Discount Coupon ot_coupon 312
Group Discount ot_group_pricing 290
Gift Certificates ot_gv 840
Shipping ot_shipping 310
Sub-Total ot_subtotal 100
Tax ot_tax 308
Total ot_total 999
The discount coupon is configured with include shipping and include tax set to false and "Re-calculate Tax" set to "Standard"; the coupon is a 20% discount. The store's tax rate at 6%.
I add a product for $165.00 to the cart, login and start the checkout process. I choose "Store Pickup" for shipping and click to continue to the checkout_payment screen where the order totals are displayed as:
Sub-total: $165.00
Tax: $9.90
Store Pickup: $0.00
Total: $174.90
I select my payment method, enter the coupon's code and click "Continue Checkout". On the checkout_confirmation page, the order totals display as:
Sub-total: $165.00
Tax: $9.90
Store Pickup: $0.00
Coupon: $33.00
Total: $139.92
The tax is not recalculated (it should be $7.92) -- the value in the order's tax field is recalculated, it's the ot_tax total value that isn't updated.
If I move the sort order of the coupon to be just after the sub-total, all calculations and display are correct, but this store owner would prefer to have the coupon displayed last.
Shouldn't the order-total value be recalculated?