Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / v1.3.5 Group Discount Total Wrong

v1.3.5 Group Discount Total Wrong

Locked

Views: 2,987

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
3 Oct 2006, 6:12 AM
#1
mrkrinkle avatar

mrkrinkle

New Zenner

Join Date:
Jun 2006
Posts:
27
Plugin Contributions:
0

v1.3.5 Group Discount Total Wrong

I have a brand new 1.3.5 installation with two products and one customer...

My Order Total ordering is as follows;

Sub-Total ot_subtotal 100
Shipping ot_shipping 200
Discount Coupon ot_coupon 280
Group Discount ot_group_pricing 290
Tax ot_tax 300
Gift Certificates ot_gv 840
Total ot_total 999

My Group Discount settings in Order Total are;

This module is installed
true
Sort Order
290
Include Shipping
false
Include Tax
false
Re-calculate Tax
Standard
Tax Class
--none--

Purchasing these products;

$10.00 Non Taxable Product
$4.00 Taxable Product (10%)

With a 50% Group Discount;

I get this;

$14.00 Subtotal
-$7.00 Group Disount (50%)
$6.70

??? Where did this come from. Assumedly it should be total=$7.00?

http://ecom.xceed.com.au/ if you want to test...

Can enybody help?? Aaarrrrggggghhh :cry:

3 Oct 2006, 9:23 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,727
Plugin Contributions:
56

Re: v1.3.5 Group Discount Total Wrong

What are your numbers with recalculate tax = none? Would you please post all your order totals so we can see the calculation?

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.

3 Oct 2006, 11:31 PM
#3
mrkrinkle avatar

mrkrinkle

New Zenner

Join Date:
Jun 2006
Posts:
27
Plugin Contributions:
0

Re: v1.3.5 Group Discount Total Wrong

The point is that I NEED to re-calculate tax... Otherwise the tax is incorrect.

With recalculate tax=none I get the following;

Sub-Total: $14.00
Group Discount: -$7.00
TAX: $0.40
Total: $7.40

This is correct. The recalculate tax works fine until the discount is larger than the value of the taxable item and then it seems to do something funny?

With recalculate tax=standard I get the following;

Sub-Total: $14.00
Group Discount: -$7.00
Total: $6.70

4 Oct 2006, 1:10 AM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,727
Plugin Contributions:
56

Re: v1.3.5 Group Discount Total Wrong

Group discounts assumes that your entire basket is taxable. The order total modules make
a bunch of assumptions to simplify the logic - and the assumptions are reasonable in most
cases; it just doesn't work well for cases like yours where there is a mix of taxable and non-taxable goods. I know it's hairy; I felt compelled to write a huge page on it as part of the Quantity Discounts documentation. I believe you have read this page

http://www.thatsoftwareguy.com/zencart_order_total_sales_tax.html

Bottom line: whether it's "wrong" or not to not recompute the tax is really subjective - many physical coupons (from newspapers, etc.) indicate that you are still responsible for the sales taxes. And doing this gives you the correct numbers.

The good news is that Dr. Byte has said that this area will be reworked in a future release.

http://www.zen-cart.com/forum/showthread.php?t=47132

This thread even contains an alternate tax calculation method which might be more to your liking.

Good luck,
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.

4 Oct 2006, 7:06 AM
#5
mrkrinkle avatar

mrkrinkle

New Zenner

Join Date:
Jun 2006
Posts:
27
Plugin Contributions:
0

Re: v1.3.5 Group Discount Total Wrong

swguy:

Group discounts assumes that your entire basket is taxable....

Thanks Scott... This is the answer that I have been looking for, even though it is not an ideal answer at least I can now work out where to go from here knowing roughly what Zen Cart is capable of.

I was tearing my hair out tring to work out what it was doing...

I think this would be an update that would help a lot of people... Surely other sellers have had this problem???

Cheers
Will