Zen Cart Logo

Coupon restriction logic

Locked

Views: 3,464

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
28 Jun 2006, 3:13 PM
#1
dbrewster avatar

dbrewster

Zen Follower

Join Date:
Jul 2005
Location:
Charlottesville, VA
Posts:
376
Plugin Contributions:
0

Coupon restriction logic

Hello,

I just successfully installed 1.3.0.2 in my "sandbox" store, to check it out before applying the update to my main site.

I have a coupon that is restricted to 1 category. The category is also duplicated inside another category, but there are no other sub-categories inside it. Both of those categories the coupon is "allowed" [green light.]

On checkout, if the coupon is used, the discount is applied to all items in the sale, not only the "allowed" items.

In my main store, the workaround I had to do was to deliberately EXCLUDE all other categories, to get it to work correctly.

I had assumed (I thought, reasonably) that "what is not permitted is forbidden" would hold for coupon creation, but it appears that the reverse is the case. If a restriction is not denied, it is, by default, allowed.

Is there a fix for this that I can apply separately?

Is there a file I should double- and triple-check in my 1.3.0.2 update that should have fixed this issue?

Or, is this how coupon creation is meant to work, end of story?

It does make an ugly discount lookup for the customer, if they plug in a coupon code, they not only see what categories it applies to, but they also see all the other categories, monotonously repeated, as not applying. Try coupon code 04CKTH06 in my online bookstore to see.

Other than that, I'm happy with the update. :thumbsup:

---Diana

1 Jul 2006, 6:50 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Coupon restriction logic

Mark the Top as Deny ...

Mark the Cat you want as Allow ...

3 Jul 2006, 1:35 PM
#3
dbrewster avatar

dbrewster

Zen Follower

Join Date:
Jul 2005
Location:
Charlottesville, VA
Posts:
376
Plugin Contributions:
0

Re: Coupon restriction logic

Aaaaah....

thank you, Ajeh-san!

I didn't realize this is how to structure the coupon. I never thought about what "top" meant in the categories list.

Suggestion for next release: include brief instructions on coupon admin screen.

---Diana

3 Jul 2006, 5:42 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Coupon restriction logic

There you go wanting simple instructions for the 27,000 things that you can do with Zen Cart ... :rolleyes:

One of these days we will get a book out that goes beyond the FAQs and WIKI and Forum posts ...

But then ... will anyone read that if we cannot get them to read what is already here? :cry: