Zen Cart Logo
Forums / Setting Up Specials and SaleMaker / how to prevent disc couon from applying items on special?

how to prevent disc couon from applying items on special?

Locked

Views: 1,151

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
4 Dec 2010, 1:06 AM
#1
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

how to prevent disc couon from applying items on special?

hi all,

how do you set the restriction on discount coupons to prevent a disc from applying to items that are on special?

thanks.

4 Dec 2010, 8:05 PM
#2
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

Re: how to prevent disc couon from applying items on special?

found in another thread - thanks to tj1 and ajeh

Add the following code just before the line that reads
// modified to manage restrictions better - leave commented for now
PHP Code:
//check for specials
$specials_query = "SELECT * FROM " . TABLE_SPECIALS . "
WHERE products_id = '"
. (int)$product_id . "'";

$specials = $db->Execute($specials_query);

if ($specials->fields['status'] == 1) {
  return false;
}    

//end specials check

:bigups: