I thought it would be a good idea to use Product descriptions in my search results - but to limit the text using Normans description patch.
I hacked at the code and simply swapped in the search product description
but the site won't upload - I get the attached image error box. Any ideas?
I hacked at the code and simply swapped in the search product description
Code:
$sShort = "";
$nCount = 0;
$sOriginal = '<actinic:variable name="SearchResultFullDescription" />';
foreach(explode(" ", $sOriginal) as $sWord)
{
if ($nCount > 14)
{
$sShort .= "... ";
break;
}
$sShort .= $sWord . " ";
$nCount++;
}
echo $sShort;
Comment