Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / SOLVED: 100% coupon on download still keeps order pending

SOLVED: 100% coupon on download still keeps order pending

Started by swguy on 4 Apr 2011, 7:11 AM · Views: 3,998

Results 1 to 3 of 3
4 Apr 2011, 7:11 AM
#1
swguy avatar

swguy

Administrator

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

SOLVED: 100% coupon on download still keeps order pending

If you have set configuration->GV Coupons->Default Order Status For Zero Balance Orders to Processing, but your download orders still stay at Pending, this may help:

In 1.3.8 and 1.3.9, orders with sales tax which are reduced to 0 through a coupon still have a tiny non-zero value in their order total, so the following check in includes/classes/order.php fails:

if ($this->info['total'] == 0) {

this is on line 568 in 1.3.9h and line 554 in 1.3.8a.

change this to

if ($this->info['total'] < 0.01) {

and it will work.

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 Apr 2011, 8:04 AM
#2
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: SOLVED: 100% coupon on download still keeps order pending

Thanks for posting details of fix.
:smile:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

14 Jan 2013, 4:34 PM
#3
simondale123 avatar

simondale123

New Zenner

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

Re: SOLVED: 100% coupon on download still keeps order pending

I have the opposite problem. My Zen Cart is set to set the status to Pending but it comes through as Processing.

Might this fix also fix this symptom by any chance?