2012-12-25 16:46
If one uses the feature "save fullDescriptionToTextFile" so the search function doesn't look into these files.To extend the search in this case add in /core/products.php in function generateProductsSearchListArray over the lines:
<?phpif( $iFound == $iCount ){ $aProducts[] = $iProduct;}?>
following code:
<?phpelse{ if(isset($GLOBALS['config']['products_full_description_to_file'])&&$GLOBALS['config']['products_full_des cription_to_file']===true){ $iFound=0; $sSearchData=getFullDescription(DIR_DATABASE_PRODUCTS,$iProduct); for($i=0;$i<$iCount;$i++) if(preg_match('/'.$aWords[$i].'/ui',$sSearchData)) $iFound++; if($iFound==$iCount) $aProducts[]=$iProduct; }}?>