Lyndia or another ZC guru can you look at something for me.
**also don't get mad at me for doing this... client wants it :) **
Coupons cannot be combined with other offers in this clients store so I am going to stop the use of coupons for Specials and Salemaker. I have Specials working but Salemaker is being difficult.
Can you look at my code and tell me if you see anything obvious? This is around line 800 if functions_general.php
Code:
// vf deny if product is on sale Working well
$specials = $db->Execute("select specials_new_products_price
from " . TABLE_SPECIALS . " where products_id = '". (int)$product_id ."' and status = '1'");
if ($specials->RecordCount() > 0 ) {
return false;
}
// vf end deny if on sale ///////////////////////
// vf add deny if salemaker not working well
$productCatPath = zen_get_product_path($product_id);
$catPathArray = array_reverse(explode('_', $productCatPath));
foreach ($catPathArray as $catPath) {
$sql2 = $db->Execute("select sale_specials_condition from " . TABLE_SALEMAKER_SALES . " where sale_categories_all like '%," . (int)$catPath . ",%'");
$salemaker = $db->execute($sql2);
if ($salemaker->recordCount() > 0) {
return false;
}
} // vf end deny if salemaker ///////////////////////
Thanks
Bookmarks