Zen Cart Logo
Forums / General Questions / Coupon Code contradiction.

Coupon Code contradiction.

Views: 698

Results 1 to 7 of 7
1 Jul 2012, 12:55 AM
#1
xwielder avatar

xwielder

New Zenner

Join Date:
Jun 2012
Posts:
14
Plugin Contributions:
0

Coupon Code contradiction.

Hypothetical setup:

Category: Food

sub-category: Fruit

products: Apples, Pears, Oranges

sub-category: Dairy

products: Milk, Eggs, Cheese

sub-category: Meat

products: pork, beef, poultry

Category: Vehicles

sub-category: Domestic

products: Ford, Chevrolet, Saturn

sub-category: Foreign

products: Honda, Toyota, Volkswagen

Okay, I want a 10% off coupon for "Food" products ONLY.

I set up the coupon. (10PERCENTFOOD)

I now add the following restrictions on the coupon:

Category: TOP, DENY
Category: FOOD, ALLOW
Category: VEHICLES, DENY

Okay, now on my customer's main page, they click the link, "Discount Coupons" from within the "Information" box.

They look up the "10PERCENTFOOD" coupon, and this is what it says:

Discount Coupon Restrictions

Category Restrictions:
Food (Valid for this category)
Vehicles (Not allowed on this category)

Product Restrictions:
This coupon is valid for all products.

What? Why does it say, "This coupon is valid for all products"???? Clearly, it's not valid for ALL products. All FOOD products, yes, but not vehicle products.

Am I missing something or is this a bug?

Thanks!

1 Jul 2012, 1:36 AM
#2
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Coupon Code contradiction.

xwielder:

What? Why does it say, "This coupon is valid for all products"???? Clearly, it's not valid for ALL products. All FOOD products, yes, but not vehicle products.

Am I missing something or is this a bug?

Thanks!This coupon is valid for all products within the allowed categories

You haven't restricted any products within those categories

1 Jul 2012, 2:24 AM
#3
xwielder avatar

xwielder

New Zenner

Join Date:
Jun 2012
Posts:
14
Plugin Contributions:
0

Re: Coupon Code contradiction.

I see now where you're referring to. After adding the valid "products", everything looks fine. Thanks for the reply. However, I personally believe that if you "allow" ALL of one category, and "deny" all other existing categories, the message should say:

Discount Coupon Restrictions

Category Restrictions:
Food (Valid for this category)
Vehicles (Not allowed on this category)

without having to add every product within the category you wish to apply.

My opinion though. <shrugs>

1 Jul 2012, 12:58 PM
#4
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Coupon Code contradiction.

I had this issue but am still using v1.3.9h but sounds similar. The minor difference is my restriction was for a single product within the entire catalog, not a single category as your example.

http://www.zen-cart.com/showthread.php?196645-Discount-Category-TOP-Deny-problem

**The message of This coupon is valid for ALL categories was causing grumpy customer because the discount was only applied to a single product (as intended) and the customer expected the entire order to be discounted as indicated by the message.

**Product Restrictions: This coupon is valid for all products.

2 Jul 2012, 1:43 AM
#5
xwielder avatar

xwielder

New Zenner

Join Date:
Jun 2012
Posts:
14
Plugin Contributions:
0

Re: Coupon Code contradiction.

Exactly. The messaging certainly contradicts what's really set up. I would totally understand if the customer was upset.

2 Jul 2012, 1:55 AM
#6
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Coupon Code contradiction.

The steps that Ajeh gave me in the other thread resolved the issue. I don't know whether the same code will resolve the issue in V1.5 or not.

2 Jul 2012, 2:15 AM
#7
xwielder avatar

xwielder

New Zenner

Join Date:
Jun 2012
Posts:
14
Plugin Contributions:
0

Re: Coupon Code contradiction.

Yeah, just a brief overlook and I can see what's suggested. It'll work. Perhaps in 1.51 they'll make it the standard. Anyway, cheers and thanks for the link to your original post!