Zen Cart Logo
Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Where is the file/code to validate a coupon?

Where is the file/code to validate a coupon?

Locked

Views: 1,810

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
28 Feb 2008, 11:38 PM
#1
marcio avatar

marcio

New Zenner

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

Where is the file/code to validate a coupon?

I need to have a coupon only work if 2 specific products are in the cart. Right now, using restrictions, if I deny top and allow 2 products, the coupon still works if I add one product or the other. I need the coupon to be valid only if both products are in the cart.

But I can't seem to find the validation code that I need to change. Can someone point me in the right direction? Or better yet, if someone has already done something similar, can you tell me what I need to change?

Thanks.

29 Feb 2008, 7:03 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Where is the file/code to validate a coupon?

see the collect_posts() function in the ot_coupon.php module
and possibly, but not likely needed, the is_product_valid() function in functions_general.php

29 Feb 2008, 9:15 AM
#3
marcio avatar

marcio

New Zenner

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

Re: Where is the file/code to validate a coupon?

Thanks. I found it.