Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Coupon Subtracting wrong

Locked

Started by n8pbm on 20 Jun 2006, 6:57 PM · Views: 3,078

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
20 Jun 2006, 6:57 PM
#1
n8pbm avatar

n8pbm

Zen Follower

Join Date:
Mar 2005
Posts:
146
Plugin Contributions:
0

Coupon Subtracting wrong

I have a coupon that gives 10% off any order (excluding shipping). It works fine except when sales tax is applied. Here is an example:

Currently:

Product: $80.50
Discount: -$8.53
Tax 6%: $4.35
Shipping: $8.05
Total $84.37

The discount should be $8.05 ($80.50 * .1 = $8.05) but instead it takes the total, applies tax to it and then gives the discount. ($80.50 * 1.06 = $85.33) (85.33 * .1 = $8.53).

Then it takes the sales tax from the discount and gets the amount shown in the sales tax ($4.35).

So the customer gets a bigger discount because it includes the sales tax. The correct numbers should be:

Product: $80.50
Discount: -$8.05
Tax 6%: $4.35
Shipping: $8.05
Total $84.85

Anyone have any ideas how to fix this?

Thanks

20 Jun 2006, 7:44 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,742
Plugin Contributions:
0

Re: Coupon Subtracting wrong

Check your settings and make sure you do not have the coupon set to discount the sales tax.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

24 Jun 2006, 5:14 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Coupon Subtracting wrong

These settings would be in the Admin->MOdules->Order Totals .... ot_coupon

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.