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:
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