Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

Coupon Restriction Issue

Locked

Started by disciple on 16 Jun 2008, 5:46 AM · Views: 7,414

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
16 Jun 2008, 5:46 AM
#1
disciple avatar

disciple

Totally Zenned

Join Date:
Aug 2004
Posts:
278
Plugin Contributions:
0

Post #1 by disciple

Hi,

We have a consignment store and have set up a hidden category in which all of our designers have their own category. Each of these designer categories is the master category for their products.

The restriction issue we are having is this:
A designer creates a coupon. They go to the restriction screen and under category restrictions they select their own category and allow all. Then under product restrictions they choose the product(s) to deny.

When setup this way the customer gets a message that says:
This coupon code is not valid for any product currently in your cart. couponname

As far as I know we do not have any issues with coupons set up any other way.

Any ideas?

Thanks

Rick

17 Jun 2008, 2:16 PM
#2
ajeh avatar

ajeh

Oba-san

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

Post #2 by ajeh

Have they added a Categories Top Deny to the Discount Coupons?

There is a flakey bug on Discount Coupons and linked categories that occures from time to time ...

If the Category exists in multiple categories and the master_categories_id is a category with the categories_id being higher than the other categories_id, example the master_categories_id is 27 and the Product is in categories_id 27, 32, 10 then it can fail the test ... :cry:

I do not have a solution to this quirky bug at this time other than to work at altering the categories_id around to change the order ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 Jun 2008, 3:46 PM
#3
disciple avatar

disciple

Totally Zenned

Join Date:
Aug 2004
Posts:
278
Plugin Contributions:
0

Post #3 by disciple

Hi Linda,

Have they added a Categories Top Deny to the Discount Coupons?No, the only restriction is an allow to the master category #238

If the Category exists in multiple categories and the master_categories_id is a category with the categories_id being higher than the other categories_id, example the master_categories_id is 27 and the Product is in categories_id 27, 32, 10 then it can fail the test ...In this case the master category id is 238 and the only other category it is linked to is 66. This would not appear to match the bug you spoke of.

Thanks

Rick

17 Jun 2008, 4:03 PM
#4
ajeh avatar

ajeh

Oba-san

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

Post #4 by ajeh

When setting up a Discount Coupon, always add a Deny Top Category ...

See if that helps ... otherwise, you found the quirky little bug ... :blink:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 Jun 2008, 4:04 PM
#5
ajeh avatar

ajeh

Oba-san

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

Post #5 by ajeh

NOTE: 66 is less than 238 ... 66 is not allowed, pop goes the weasel ... :oops:

Let us know the result ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

20 Jun 2008, 4:39 AM
#6
disciple avatar

disciple

Totally Zenned

Join Date:
Aug 2004
Posts:
278
Plugin Contributions:
0

Post #6 by disciple

Hi Linda,

I have not been able to do anything with this and although I don't believe that I have made any code changes it would appear that I can't use any coupons.

Everything I try gives me the error:
This coupon code is not valid for any product currently in your cart. couponname

What do you think I did to cause this :blush:

My problems do coincide with a recent USPS shipping addition to our shipping options but I don't see how that would have any effect.

Rick

20 Jun 2008, 5:40 PM
#7
ajeh avatar

ajeh

Oba-san

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

Post #7 by ajeh

I'd have to see your Admin to play with this, but I am pretty sure it is the issue of multiple categories where the master_categories_id is a higher numerical value than the Linked categories_id and it tests the Linked categories and flags it as failed ...

Without actually seeing the raw data on everything and your Admin, this is hard to say for sure on this one ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Jan 2009, 6:26 PM
#8
hollys avatar

hollys

New Zenner

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

Post #8 by hollys

I have encountered the same issue as described when starting this thread. Ajeh, what do you mean by Category Top Deny?

8 Jan 2009, 6:43 PM
#9
ajeh avatar

ajeh

Oba-san

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

Post #9 by ajeh

There are Restriction settings ...

Set the Category ... Top ... to Deny ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Nov 2009, 10:26 AM
#10
rasidul_hasan avatar

rasidul_hasan

New Zenner

Join Date:
Oct 2009
Posts:
4
Plugin Contributions:
0

Post #10 by rasidul_hasan

Hei Linda

why Coupon is not forking for a Product which is assign to multiple Category. I set top Category to Deny and category "A" to allow. So in that case those products in cart will got Discount which are belongs to "A" Category. Now suppose, a product is assign to Multiple Category like Category "A" and Category "B". in that case is there any problem in Coupon Restriction.? i am getting Problem. Can you tell me how to solve..? :dontgetit

Please make a note, One category may have a number o Sub Category, Like Category "A" have two Subcategory which are "B" & "C".. and in that case ParentID/Master Category id which is "A" is lower then its Subcategory. Because We create Category 1st and Subcategory last. In that case is a product Have multiple Category/Subcategory. Dose Coupon work properly..?? I am also getting Error in this Case. Could you at least tell me where to Change or modify...??? :huh:

Since Coupon Module is belong to Zen Cart core Module, Its Tuff separate for modification.

Its become a vital Issue for most of the Client..

Please Advise...

Regards
Hasan.

18 Nov 2009, 5:02 PM
#11
ajeh avatar

ajeh

Oba-san

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

Post #11 by ajeh

Make sure that you have applied the Known Bug Fixes for v1.3.8:
http://www.zen-cart.com/forum/showthread.php?t=82619

When you build a Discount Coupon that includes Linked Products, the master_categories_id must belong to the Allowed Category or you must add the Product(s) Separately ...

In v1.3.9, there is a method for adding/deleting a whole Category of Products to make this configuration easier ...

For now, you may need to add the Products 1 by 1 if they do not belong to the Category that you have set for the Discount Coupon ...

NOTE: if the Products do use this Category as their master_categories_id and the Discount Coupon is not working ... this is a good sign that you need to apply the Known Bug Fixes ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

26 Sep 2010, 5:56 AM
#12
jwidjaja avatar

jwidjaja

New Zenner

Join Date:
Nov 2007
Posts:
14
Plugin Contributions:
0

Post #12 by jwidjaja

Hello Zen users,

I got a problem with my "Coupon Restriction". Everytime I go to the Restriction menu in Coupon Admin area. The system gives the following message:

"Catchable fatal error: Object of class queryFactoryResult could not be converted to string in /home/public_html/eshop/rawatsgi/includes/functions/html_output.php on line 334"

I am currently using:
Zen Cart 1.3.7.1
Database Patch Level: 1.3.7.1

Does anyone have a clue that is wrong with this? Appreciate some feedback to resolve this problem. Thank you.

Kind regards,
Jim