Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Populate title from Advanced Search
 
redpen
Sr. Member
 
Total Posts:  254
Joined:  2008-01-23
 

The advanced search is currently the only way I can list by brand on our live site, and is quite limited.  I really need to push the title of the brand being listed to the html title for SEO purposes.

This is about as far as I got, editing catalogsearch/block/advanced/result.php

$searchCriterias=$this->getSearchCriterias();
//print_r ($searchCriterias[’left’]);
foreach($searchCriterias[’left’] as $criteria):
if ( ($criteria[’name’]) == “Manufacturer” )
{

$title = $this->__("’%s‘“, ($criteria[’value’]));
$this->getLayout()->getBlock(’head’)->setTitle($title);

}

Etc.  Sadly, it doesn’t work.  I know that $searchCriterias is getting populated, but the array seems overly complicated.  Any ideas, anyone?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top