Zen Cart Logo
Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Prevent discount coupons from being applied to attributes

Prevent discount coupons from being applied to attributes

Views: 1,555

Results 1 to 6 of 6
20 Mar 2011, 10:48 PM
#1
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Prevent discount coupons from being applied to attributes

Is there a configuration setting I can change so that discount coupons do not apply to attributes?

I have some products that have attributes, for example custom engraving, the attribute adds certain cost. I don't want the discount coupon to apply to the cost the attribute adds.

Thanks.

20 Mar 2011, 10:51 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Prevent discount coupons from being applied to attributes

Alas, there isn't a setting for this.

20 Mar 2011, 11:17 PM
#3
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Re: Prevent discount coupons from being applied to attributes

Thanks for confirming this. So now on to look for the code to do this...

I just saw there are some settings so that sale/specials do not apply, what is the file that controls this so I can take a look and maybe come up with a solution?

20 Mar 2011, 11:45 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Prevent discount coupons from being applied to attributes

includes > modules > order_total > ot_coupon.php

... but be warned, there's an awful lot of potential headaches lurking in that dusty corner.

21 Mar 2011, 1:46 AM
#5
tj1 avatar

tj1

Totally Zenned

Join Date:
Mar 2005
Location:
California
Posts:
628
Plugin Contributions:
0

Re: Prevent discount coupons from being applied to attributes

I meant the file that has the code for preventing sales/specials from applying to applying to attributes. That doesn't appear to be in the ot_coupon.php file.

21 Mar 2011, 9:31 AM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Prevent discount coupons from being applied to attributes

There isn't any code for doing this. You'll have to create it.

If you want the coupon to apply to the products, but exclude any uplifts from the attributes then you need to insert yourself where the coupon value is calculated and used, which is in the file I referred to above.