You are here:  » Show category and brand name

Support Forum



Show category and brand name

Submitted by Leo on Wed, 2008-05-28 16:05 in

Hi David,

Could not find anything useful in the forum for this.

Is it possible for the searchresult page where you have Product search results for: “category name” to show after that the brand name to if brand name is used? And get that in the browser title to.
I use the brandFilter so when I click on a category I get the category name when I use the dropdownmenu for the brand filter it should be good to show the category name and the brand name in Product search results for:

I have used the code under wich work great for the browser title on the products page now I should want that you get the same idea for: Price search results for: category name and brand name.

$header["title"] = htmlentities($q,ENT_QUOTES,$config_charset)." :: ".htmlentities($product["products"][0]["category"],ENT_QUOTES,$config_charset);

I have try self view things but its not working.

Thanks Leo

Submitted by support on Thu, 2008-05-29 04:37

Hi Leo,

Sure - you should just be able to use whatever variable the brand is coming in as in the brand filter (probably $_GET["brandFilter"]) within the text, currently generated by the following code (line 118 in the distribution):

$banner["h2"] = translate("Product search results for")." <strong>".htmlentities($q,ENT_QUOTES,$config_charset)."</strong>&nbsp;";

...and changing this as follows:

$banner["h2"] = translate("Product search results for")." <strong>".htmlentities($q,ENT_QUOTES,$config_charset)." ".$_GET["brandFilter"]."</strong>&nbsp;";

Cheers,
David.