Code:
function getCatString($id) {
global $db, $cPath ;
$masterCat = zen_get_categories_name_from_product($id) ;
$catTxt = '';
$i = 0 ; $flag = 0 ;
if(isset($cPath)) {
$p = explode('_',$cPath) ;
while ($i < count($p)) {
$the_categories_name= $db->Execute("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id= '" . $p[$i] . "' and language_id= '" . $_SESSION['languages_id'] . "'");
if ($masterCat == $the_categories_name->fields['categories_name']) {$flag = 1 ;}
$i++ ;
}
$catTxt = substr($catTxt, 1);
}
return ($flag != 1 ) ? $masterCat:$catTxt;
// return $catTxt ;
}
this is in:
NEW FILES/includes/classes/observers/class.ec_analytics.php
$catTxt never gets changed to anything. seems like a bug to me.........
Bookmarks