Zen Cart Logo
Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Created discount coupon but status is empty

Created discount coupon but status is empty

Views: 2,149

Results 1 to 13 of 13
2 May 2012, 10:54 AM
#1
cfcs98 avatar

cfcs98

New Zenner

Join Date:
May 2012
Posts:
1
Plugin Contributions:
0

Created discount coupon but status is empty

Hi,

i have created discount coupon but status shows empty, why has this happened? what can i do now?:no:

16 Dec 2014, 5:49 PM
#2
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Created discount coupon but status is empty

I TRULY hate to bump such an old post but the title is EXACTLY the issue my client has reported, and I cannot seem to find ANY other thread reporting a similar issue.. I am stumped because coupons have ALWAYS worked on his site..

Anyone got a HINT of what I might be looking for??

16 Dec 2014, 6:00 PM
#3
swguy avatar

swguy

Administrator

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

Re: Created discount coupon but status is empty

i don't really understand the issue - can you explain in greater detail and provide screenshots?

16 Dec 2014, 6:04 PM
#4
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Created discount coupon but status is empty

Honestly it's exactly as the title states.. I create a coupon, save it, and there is NO STATUS for the new coupon.. Not "Y" not "N".. The status is completely empty.. I'll look to get screen shots, but that is the heart of the issue..

16 Dec 2014, 6:10 PM
#5
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Created discount coupon but status is empty

Screenprints (click to see):

Coupon details
Attachment 14795

Coupons list.. Note there is NO status, and I have to use the "All Coupons" filter to see these coupons..
Attachment 14796

17 Dec 2014, 1:34 PM
#6
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Created discount coupon but status is empty

Anyone have ANY idea what the issue MIGHT be?? Right now I have to MANUALLY set the status of coupons for my client..

17 Dec 2014, 1:47 PM
#7
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,085
Plugin Contributions:
56

Re: Created discount coupon but status is empty

I just successfully created a coupon using the information you posted on my ZC1.5.3 test site (i.e. it showed 'Y' upon creation). What version of ZC is installed on your client's site? Any debug-log files?

17 Dec 2014, 3:43 PM
#8
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Created discount coupon but status is empty

lat9:

I just successfully created a coupon using the information you posted on my ZC1.5.3 test site (i.e. it showed 'Y' upon creation). What version of ZC is installed on your client's site? Any debug-log files?

The client is currently running v1.5.1. What's maddening is that there are NO debug log files.. At least then I'd have a HINT.. :laugh:

17 Dec 2014, 4:43 PM
#9
swguy avatar

swguy

Administrator

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

Re: Created discount coupon but status is empty

Have you compared the file admin/coupon_admin.php to a fresh download of 1.5.1?

17 Dec 2014, 4:49 PM
#10
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,085
Plugin Contributions:
56

Re: Created discount coupon but status is empty

Tried it on my v1.5.1 test site, same results (i.e. coupon shows 'Y' in the status column). Let's try a couple of questions:

  • Upgrade or fresh install?
  • PHP version?
  • Database collation and display CHARSET?
  • /YOUR_ADMIN/coupon_admin.php unmodified?

You might try installing my Report All Errors (http://www.zen-cart.com/downloads.php?do=file&id=1792) plugin, enabling it for admin and retrying the coupon process just to see if there are "lurking" errors causing your issue.

17 Dec 2014, 6:31 PM
#11
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Created discount coupon but status is empty

lat9:

Tried it on my v1.5.1 test site, same results (i.e. coupon shows 'Y' in the status column). Let's try a couple of questions:

  • Upgrade or fresh install?
  • PHP version?
  • Database collation and display CHARSET?
  • /YOUR_ADMIN/coupon_admin.php unmodified?

You might try installing my Report All Errors (http://www.zen-cart.com/downloads.php?do=file&id=1792) plugin, enabling it for admin and retrying the coupon process just to see if there are "lurking" errors causing your issue.

  • Upgrade or fresh install? Neither.. This is an existing site.. We just did a cosmetic upgrade to the LOOK of the site, but nothing else..
  • PHP version? - PHP Version: 5.4.22 (Zend: 2.4.0)
  • Database collation and display CHARSET? - UTF-8 (converted tables and data 2 years ago)
  • /YOUR_ADMIN/coupon_admin.php unmodified? - Can't post here (code too long) using the one from v1.5.3 -- it made NO DIFFERENCE
17 Dec 2014, 8:23 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Created discount coupon but status is empty

What's the schema for the "coupons" table in the database?

By default the "coupon_active" field has the following definition:```
coupon_active char(1) NOT NULL default 'Y',


I'm guessing yours has no "default" for some reason? Perhaps a result of doing some manual manipulation of that database table's structure? Or using 3rd party tools to manipulate coupons?
17 Dec 2014, 9:56 PM
#13
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Created discount coupon but status is empty

DrByte:

What's the schema for the "coupons" table in the database?

By default the "coupon_active" field has the following definition:```
coupon_active char(1) NOT NULL default 'Y',

THAT WAS IT!!!! Thank you!!! 

but now that I know it was kinda of an obvious answer huh?? :laugh: Anyway.. thanks.. this is a great case for why your sometimes need to get another set of eyes on an issue..:laugh:

> **DrByte:**
>
> I'm guessing yours has no "default" for some reason? Perhaps a result of doing some manual manipulation of that database table's structure? Or using 3rd party tools to manipulate coupons?

Nope.. Not a change I would have EVER made.. No.. this is the result of inheriting a site from another developer who preferred to modify the Zen Cart defaults (including the DB defaults apparently) to implement features for clients. (usually unnecessarily) I've been managing this site two years.. I had removed most of the most agregious of these hacks, and finally the client allowed me to give the site a makeover which effectively got rid of the rest of her "non-standard" hacks.. The client hadn't created any new coupons until now.. which is why I'm JUST NOW discovering this latest "gotcha".. :ohmy: