If I'm following you, I think I want the OPPOSITE.
I have this:
Hidden Category (id 31)
---> Non-hidden product (id 200)
This category is restricted from discounts with my coupon, where I set it to DENY discounts on Hidden Category (id 31).
If I try to use my coupon on the product as you see it above, everything works fine. It will NOT DISCOUNT which is perfect. The problem is that from a shoppers perspective, this item will only show up in our store if they search by name. They cannot browse it in a category because I have the category HIDDEN. So what I do is I LINK IT to a visible category, like "DVDS" so that when they click the DVD category, they will see the item.
However, while some DVD's are discountable, I don't want to discount anything that has a Master Category ID for my Hidden Category (id 31).
The way the code is working now, if I were to LINK my item above (id 200) to a category that is ALLOWED by the coupon, then it's giving me the discount when I don't want it to.
Bottom line: I would like to customize the code so that if a product is in a master category that is RESTRICTED from discount coupons, then it should never apply the discount on that item EVEN IF THE MASTER CATEGORY IS HIDDEN/DISABLED.
Let me know if I can clear that up any more.
Basically, I need this to happen:
Hidden Category (id 31) <--------- [Nothing in here should be discounted]
---> Non-hidden product (id 200) <-------[This item should never be discounted]
Visible Category (id 32) <----------[Items in here can be discounted]
---> LINKED product (id 200) <----[I don't want this to be discounted because it's Master Category is restricted]
Right now, it IS applying the discount in the above example, either because its linked to a discountable category, or because the master category is HIDDEN and therefore, not being factored into the logic behind the coupon restrictions.
Make sense?



