Zen Cart Logo
Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / coupons expired not showing inactive

coupons expired not showing inactive

Views: 34,536

Results 1 to 20 of 42
21 Aug 2006, 2:48 AM
#1
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

coupons expired not showing inactive

I have expired coupons that are staying in the active list. I checked the DB and they are listed as "Y" under coupon active. :huh:

21 Aug 2006, 3:11 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: coupons expired not showing inactive

Which database table are you looking at?

21 Aug 2006, 3:49 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: coupons expired not showing inactive

This is a little confusing ...

If you have a coupon that expires ... while the table says it is active as in coupon_active = Y ...

That is for you to be able to edit, etc. as once coupon_active = N it cannot be edited ...

However, if I try to use that coupon ... it is evaluated on the date and will not be accepted and the customer will be told that it is expired ...

21 Aug 2006, 4:18 AM
#4
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: coupons expired not showing inactive

linda I believe you have had too much coffee because I read your reply many times and I am not sure what your are saying. Does a coupon expire on the experation date and set coupon_active to "N" on its own, when I check the coupon list in the admin or does someone have to try and use that coupon after it has expired and is denied to get the coupon_active to change from Y to N.

21 Aug 2006, 4:24 AM
#5
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: coupons expired not showing inactive

After reading your post again it appears that you are stating that if coupon_active=N then I shouldn't be able to edit it. Wrong, in my case, the one coupon that I have that does show as inactive in the admin and is also listed as coupon_active=N in the DB is still able to be edited.
I assume it is still able to be edited so that I could change the dates and use it again if I wanted.

21 Aug 2006, 4:45 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: coupons expired not showing inactive

coupon_active becomes N only when you "delete" a coupon.

otherwise, expiration dates rule its usability by customers

21 Aug 2006, 4:53 AM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: coupons expired not showing inactive

NOTE: once you Delete the coupon to Inactive or N ...

You can hit Edit ... but never return it to Active or Y ...

Does that make more sense?

21 Aug 2006, 4:56 AM
#8
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: coupons expired not showing inactive

coupon_status? I thought we were talking about coupon_active.:huh:
Wouldn't "deleting" the coupon make it disappear, not just move to inactive. The coupon that shows in my inactive list in the admin went there all by itself I didn't move it, couldn't if I wanted to from the admin, and I know I wasn't in the DB playin' around.
So the question is - When a coupon expires on the date that I set does it become "inactive" and then does it show on the inactive list?
If the answer to that question is yes to both parts then the next question is - How come coupons that I have that have expired are not in the inactive list, they are still in the active list (I do realize that if someone tried to use them they would be denied based on ther expiration date).

21 Aug 2006, 5:01 AM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: coupons expired not showing inactive

coupon_active long night ...

Deleting just masks or hides the Discount Coupon ...

What if you made a coupon 2 months ago that expired a month ago and a customer complaining etc. you need a way to see, read etc.

For record keeping, Discount Coupons expire but they are not physically deleted or really removed for future reference ...

So you don't need to see them, you can Delete or set to Inactive ...

21 Aug 2006, 5:04 AM
#10
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: coupons expired not showing inactive

ok, thanks Linda got it now. Missed your post while I was typing. I now uderstand how it works. I see that inactive coupons is more of an archive of old coupons to be used as a history of coupon activity

21 Aug 2006, 5:06 AM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: coupons expired not showing inactive

There you go ... that is a good summary ... glad you have a better understanding of this now and so does everyone else ... thanks! :smile:

21 Aug 2006, 5:10 AM
#12
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: coupons expired not showing inactive

see what happens I keep typing and missing your posts:blush:
Thank to you guys for the thorough explanation. I suppose what was confusing was that all options are still available for the inactive coupons (email, edit, delete...etc)

22 Aug 2006, 5:43 AM
#13
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: coupons expired not showing inactive

I will have to look into that for a future release to protect you from yourself ... :cool:

23 Aug 2006, 6:05 PM
#14
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,841
Plugin Contributions:
0

Re: coupons expired not showing inactive

protect me from myself! I think you should be trying to figure out how to protect yourself from all my typing.:lol: Now that I got myself a laptop I can ask questions anytime the mood strikes me:yes: So off I go to come up with some more :lamo:

30 Dec 2006, 12:49 AM
#15
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Re: coupons expired not showing inactive

Sorry to drudge this up... but I am confused.

I get what you are saying, with how it is SUPPOSED to work... but I'm confused with what actually happens.

See... I have NEVER "deleted" a coupon - never. Never hit that button once. Yet, I have 12 "inactive" coupons.

I also have 22 "active" coupons - most of which are expired and/or fully used.

So when does it automatically move them to inactive?

  • Steven
30 Dec 2006, 12:55 AM
#16
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Re: coupons expired not showing inactive

Also - entering in an "inactive" coupon code into the discount_coupon page still shows all the info for that coupon. What exactly is the difference between active and inactive then?

To me, and I think others would agree, "inactive" should be any coupon that can't currently be used - either because the admin set it to inactive, or it has expired. I also suggest that any coupon should be able to be active again simply by changing the dates and/or setting its status back to "active".

Just suggestions.

  • Steven
8 Jun 2010, 3:51 PM
#17
neparker avatar

neparker

New Zenner

Join Date:
Apr 2009
Posts:
79
Plugin Contributions:
0

Re: coupons expired not showing inactive

We have been using coupon codes fine, but now we want to delete or clean up some of our super old ones so we can use them again - the same name for the code. Is this possible?

Simply deleting them doesn't really remove them.

8 Jun 2010, 4:02 PM
#18
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: coupons expired not showing inactive

You would need to do this in phpMyAdmin and look at the table:
coupons

You will find the Discount Coupons from the:
coupon_code

and you will see them marked as:
coupon_active

where N is the ones that are marked "deleted" or "expired" ...

8 Jun 2010, 4:04 PM
#19
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: coupons expired not showing inactive

NOTE: if you are deleting them in phpMyAdmin then you need to remove them from the:
coupons_description
coupon_restrict

before you do this ...

If you change the coupon_active to Y you can then change them via the Zen Cart Admin ...

24 Feb 2011, 4:46 PM
#20
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: coupons expired not showing inactive

Ajeh,

I tried today to delete a coupon on the Admin side and it basically just changed the status to inactive instead of deleting it from the database. Any ideas?

Thanks!