Zen Cart Logo

Coupon codes not working

Locked

Views: 5,670

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
5 Sep 2008, 1:54 AM
#1
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
Location:
Ohio
Posts:
196
Plugin Contributions:
0

Coupon codes not working

All of the sudden a lot of my coupon codes stopped working. I get a message "This coupon code is not valid for any product currently in your cart."

I did some tests, and I discovered that if I add a product restriction WITH a category restriction, the code does not work no matter what. I even added "allow all" at the end of the category restriction.

If the restriction is only on a product or only for a category, then it works fine. :huh:

I normally deny Gift Certificate category on all my coupons and deny a specific product, so majority of them aren't working...

Everything was fine up until 8/22 - that's when someone used a coupon code last with category and product restrictions. Since then, the changes I made are:

Authorized.net fix
http://www.zen-cart.com/forum/showthread.php?t=105924

SQL Injection patch
http://www.zen-cart.com/forum/showthread.php?t=106701

Any advice? TIA!

5 Sep 2008, 2:07 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Coupon codes not working

What are the exact settings you have on the restrictions?

Do you use Linked Products?

5 Sep 2008, 2:12 AM
#3
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
Location:
Ohio
Posts:
196
Plugin Contributions:
0

Re: Coupon codes not working

Restriction for my test coupon code that doesn't work:

Deny Category "Gift Certificates"
Deny Product "6-Piece Mineral Makeup Starter Sample Kit"

That's it. Here's the coupon setting:

Coupon Name :: test
Coupon Amount :: 10.0000%
Start Date :: 09/04/2008
End Date :: 09/04/2009
Uses per Coupon :: Unlimited
Uses per Customer :: Unlimited
Valid Product List :: Restrictions Apply
Valid Categories List :: Restrictions Apply
Date Created :: 09/04/2008
Date Modified :: 09/04/2008
Coupon Zone Restriction: :: 0

I do have linked products, but they're not part of the coupon restriction. Plus they have been there for a very long time...

5 Sep 2008, 2:21 AM
#4
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
Location:
Ohio
Posts:
196
Plugin Contributions:
0

Re: Coupon codes not working

The plot thickens... If I add more than 1 category to be denied to the category restriction, the code doesn't work. I even added "allow all" again... :wacko:

Oh, BTW, I'm on 1.3.8a with all recent patches applied.

5 Sep 2008, 3:52 AM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Coupon codes not working

Could you set 1 more restriction on:
Category Top Deny

Does this get things working again for you?

5 Sep 2008, 3:55 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Coupon codes not working

NOTE: Gift Certificates, when setup correctly, are automatically excluded from Discount Coupons ...

5 Sep 2008, 5:43 PM
#7
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
Location:
Ohio
Posts:
196
Plugin Contributions:
0

Re: Coupon codes not working

Ajeh:

Could you set 1 more restriction on:
Category Top Deny

Does this get things working again for you?
Nope.

Thanks for the tip about GCs and coupons. That one tested fine.

I still have issues with other coupons with multiple categories and cat/product combo though.

What is the file that handles this logic? I'm going to compare mine against the default to see if something got accidentally changed...

6 Sep 2008, 7:26 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Coupon codes not working

There is an existing problem with Discount Coupons on Linked Products when the Allowed Category has a higher categories_id than one of the other categories_id for the Categories that the Product is Linked to ...

I do not have a simple solution to this, other than to define the Products separately ...

We are working on a fix for this ...

8 Sep 2008, 1:43 AM
#9
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
Location:
Ohio
Posts:
196
Plugin Contributions:
0

Re: Coupon codes not working

I deleted the linked product because it was disabled anyway, but it's still not working. Any other ideas?

8 Sep 2008, 2:04 AM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Coupon codes not working

What are the settings set to now on the Discount Coupon?

What are your restrictions set to now on the Discount Coupon?

Make sure you do NOT have both:
Free Shipping
Amount/Percentage

set on the Discount Coupon ... you cannot do both ...

8 Sep 2008, 3:07 AM
#11
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
Location:
Ohio
Posts:
196
Plugin Contributions:
0

Re: Coupon codes not working

Ajeh:

What are the settings set to now on the Discount Coupon?

What are your restrictions set to now on the Discount Coupon?

Make sure you do NOT have both:
Free Shipping
Amount/Percentage

set on the Discount Coupon ... you cannot do both ...
I'm testing with different settings. I don't do both free shipping and amount/%.

It's still the same problem as before: coupons with multiple category restrictions, and category/product combo restrictions (hope that made sense).

8 Sep 2008, 4:25 AM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Coupon codes not working

I make a Discount Coupon for 10% off ...

I set my first restriction ...

Category Top DENY ...

Now I set the rest of my restrictions ...

Do you have that Top Category set to DENY?

8 Sep 2008, 4:27 AM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Coupon codes not working

Also what date range are you using?

For a September 10th coupon, I would use:
Start 09/10/2008
End 09/11/2008

That starts at Midnight September 10th and ends at Midnight September 11th ...

21 Jun 2009, 10:11 PM
#14
batsnafu avatar

batsnafu

New Zenner

Join Date:
Jan 2009
Location:
Canada
Posts:
1
Plugin Contributions:
0

Re: Coupon codes not working

Ajeh:

NOTE: Gift Certificates, when setup correctly, are automatically excluded from Discount Coupons ...

OK, so Gift Certificates are automatically excluded what is one to do if they want Discount Coupons applied to Gift Certificates too ?

I have tried creating an ALLOW Restriction for this Category, Certificates, but that does not seem to over ride the automatic exclusion.

Is there a way to over ride this automatic exclusion ? :dontgetit

19 May 2010, 5:04 PM
#15
weekend_racer avatar

weekend_racer

New Zenner

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

Re: Coupon codes not working

Ajeh:

There is an existing problem with Discount Coupons on Linked Products when the Allowed Category has a higher categories_id than one of the other categories_id for the Categories that the Product is Linked to ...

I do not have a simple solution to this, other than to define the Products separately ...

We are working on a fix for this ...

Is there a simple fix for this yet ??

19 May 2010, 7:38 PM
#16
ajeh avatar

ajeh

Oba-san

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

Re: Coupon codes not working

Look at the Known Bug Fixes for v1.3.8 ...

And it is a good time to check that you have all of the Security Patches and Updates ...

Or, upgrade to v1.3.9c ... this has all of the Security Patches and Updates as well as the Known Bug Fixes and a bit more ...