I want to remove the Brand from the Product Name where Brand is in the Product Name and the Brand field. I tried %BRAND% in search & replace but to no avail, I assume this functionality does not work on that filter, if not, Is there any other way of doing it?
Thanks
David
Hi David,
Worth trying...! It's not coded to work like that in the distribution but it's an easy mod. In includes/filter.php, find this function, which executes the search and replace filter:
function filter_searchReplaceExec($filter_data,$text)
{
return trim(str_replace($filter_data["search"],$filter_data["replace"],$text));
}
...and change it to this:
function filter_searchReplaceExec($filter_data,$text)
{
$filter_data["search"] = filter_recordPlaceholders($filter_data["search"]);
return trim(str_replace($filter_data["search"],$filter_data["replace"],$text));
}
That should do the trick!
Cheers,
David.