Discount coupon and tax computation - a workaround I'm using
Hey guys, I had a 22.214.171.124 cart customer who wanted to have a percentage discount taken from the sub total, then shipping and tax applied to the new sub total amount. Tax was being calculated incorrectly and actually depending on the settings the Tax amount was deducted instead of added to the Total. The client has multiple tax rates.
I read several threads about the issues and they seem to become disjointed as people add extraneous bits. I wanted to post how I fixed mine to help anyone in the position I was.
First, I used Wilts code update from this thread, post #9:
This worked to fix the calc problem, but it was still calculating tax on the sub total.
I changed the sort order in Modules/Order Totals to
Discount Coupon 150
I edited the Discount Coupon details thus;
Include Shipping False
Include tax False
Re-calculate Tax Standard
Here is an example of a total in a test cart with a tax rate of 5.92% and a discount coupon (56267) of 50%*
-$134.00 Discount Coupon: 56267 :
$7.91 Avery City Tax:
$5.00 Flat Rate (Best Way):
The tax calc seems to be off a penny and round down, but generally it is a good fix in this situation. I was looking at Configuration/My Store and Tax Decimal Places for possible help with the tax rounding. If I find a solution for it I will post it here.
By mrkrinkle in forum Currencies & Sales Taxes, VAT, GST, etc.
Last Post: 5 Apr 2007, 12:16 PM
By mrplants in forum Currencies & Sales Taxes, VAT, GST, etc.
Last Post: 11 Jan 2007, 03:54 PM
By swguy in forum Bug Reports
Last Post: 12 Dec 2006, 06:36 AM
By tj1 in forum Creating Discounts/Coupons, Gift Certificates, Newsletters
Last Post: 27 Oct 2006, 12:16 AM
Content and Graphics Copyright (c) 2003 - 2013 Zen Ventures, LLC - all rights reserved
Zen Cart® is a Registered Trademark of Zen Ventures, LLC