Zen Cart Logo
Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Order totals tax display when coupon active

Order totals tax display when coupon active

Views: 1,178

Results 1 to 3 of 3
16 Oct 2014, 2:05 PM
#1
lat9 avatar

lat9

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?

16 Oct 2014, 2:20 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Order totals tax display when coupon active

lat9:

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?
It's calculated in the order presented. So displaying the coupon last also applies the coupon last, after-tax.

16 Oct 2014, 3:20 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,081
Plugin Contributions:
56

Re: Order totals tax display when coupon active

So, why does the ot_coupon's configuration include a "Re-calculate tax" setting if it's not going to do the full job (i.e. updating the order's total tax but leaving the tax display incorrect)?