Hi,
I am successfully using Custom Brand Content as per below which is placed in searchresults.
// Custom brand content
if ($parts[0]=="brand")
{
$filename = "content/brand/".str_replace(' ','-',$parts[1]).".html";
if (file_exists($filename))
{
require($filename);
}
}
How would I get this to appear above the Banner on search results. I would like it to appear above the Brand A-Z, as I m looking at using an image similar to {link saved}
Thanks
Richard
Hi Richard,
Sure - firstly add support for a "custom" array value to html/atoz.php. Look for the following code at line 26:
<a href='<?php print $atoz_item["href"]; ?>'>
...and REPLACE with:
<?php if (isset($atoz_item["custom"])) print $atoz_item["custom"]; ?>
<a href='<?php print $atoz_item["href"]; ?>'>
And then in brands.php, look for the following code at line 16:
$item["name"] = $product["brand"];
...and REPLACE with:
$filename = "content/brand/".str_replace(' ','-',$product["brand"]).".html";
if (file_exists($filename))
{
$item["custom"] = file_get_contents($filename);
}
$item["name"] = $product["brand"];
Hope this helps!
Cheers,
David.
--
PriceTapestry.com