Magento 调出TopSearch关键字



$_collection = Mage::getModel('catalogsearch/query')->getResourceCollection()
    ->setPopularQueryFilter($storeid)
        ->setPageSize($count)
    ->load(true);
 
foreach ($this->$_collection->getItems() as $item):
        echo $item->getQueryText()
endforeach;
 
Mage::getUrl('catalogsearch/result')."?q=". $_item->getName()

你可能感兴趣的:(search)