Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / [1.3.9 fixed] When a coupon is entered, the payment is completely skipped v1.3.7

[1.3.9 fixed] When a coupon is entered, the payment is completely skipped v1.3.7

Locked

Started by cnasal on 8 Aug 2008, 8:46 PM · Views: 2,603

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
8 Aug 2008, 8:46 PM
#1
cnasal avatar

cnasal

New Zenner

Join Date:
Aug 2008
Posts:
2
Plugin Contributions:
0

Post #1 by cnasal

The bug causes a person that uses a coupon code and has several items in his/her shopping cart to be allowed to checkout without paying for the amount they owe - it completely skips the payment processor, even if a credit card is entered.

This appears to be the same issue that is discussed here: http://www.zen-cart.com/forum/showthread.php?t=44876

We are using Zen Cart 1.3.7.

You can reproduce it on this site:

https://cart.urbantastes.com/

If you buy 5 or more different items and enter the coupon code "6e79ec1f19" and don't enter any payment information, it will let you check out even though you owe money. If you do a test, please make sure you use a name such as "TEST" so that it is obvious your order is a test.

I am a PHP programmer and have looked at the code. I was able to track down the issue to includes/languages/english/modules/order_total/ot_coupon.php, method calculate_deductions, in the "case 'Standard':" area. This line "$od_amount['tax'] += $od_amount[$tax_desc];" seems to be run many times so that the total amount in the $od_amount['tax'] field covers the whole order, therefore skipping the payment screen.

However, I don't understand Zen Cart well enough to fix this issue, but I hope a Zen Cart programmer can quickly be able to provide a fix. It sounds like a lot of people are having this problem, and its a huge issue because people can purchase items and get them for free without payment. Please provide a patch as soon as possible.

I will be happy to answer any additional questions to help solve this issue.

Thank you,
Carl

8 Aug 2008, 8:55 PM
#2
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,950
Plugin Contributions:
3

Post #2 by wilt

hi,

There were a number of calculation issues that were addressed in the 1.3.8 release.

I will test on 1.3.8 and let you know. It might be possible to easily backport these to 1.3.7

11 Aug 2008, 1:41 PM
#3
cnasal avatar

cnasal

New Zenner

Join Date:
Aug 2008
Posts:
2
Plugin Contributions:
0

Post #3 by cnasal

Thanks - I'll look into the code in 1.3.8 to see if that fixes it.

Also, I gave the wrong file name of where to look for the problem. It should be includes/modules/order_total/ot_coupon.php.

Thanks!
Carl

14 Aug 2008, 8:16 PM
#4
g2929 avatar

g2929

New Zenner

Join Date:
Jun 2008
Posts:
1
Plugin Contributions:
0

Post #4 by g2929

This is what I know so far about this issue.

We are using 1.3.6
the customer is in the same state as the store.

The order came through with no state tax charged.
The payment method is was Gift Certificate/Coupon

can someone verify that this does not happen in 1.3.8?

Thanks,
G

2 Dec 2008, 10:55 AM
#5
mon3 avatar

mon3

New Zenner

Join Date:
Apr 2008
Posts:
50
Plugin Contributions:
0

Post #5 by mon3

I am usind 1.3.8 and have just had this problem!

25 Jan 2010, 11:46 PM
#6
oneworldstudios avatar

oneworldstudios

New Zenner

Join Date:
May 2007
Posts:
47
Plugin Contributions:
0

Post #6 by oneworldstudios

I was having this problem and then changed the "re-calculate tax" setting to "none" in the coupon under order totals category. problem has not appeared again.

Zack Coffman
Producer/Director of Choppertown and Brittown