You may be better off creating a category to hold the products, include in Menu set to false. You can also set the category to not available and use getChildrenCategoriesWithInactive
, and assign all your "search" based non category products to search over only this category.
You'll want to look over the Layer Filter Category, possibly overriding getCategory()
or apply()
within: app/code/core/Mage/Catalog/Model/Layer/Filter/Category.php
For example:
/**
* Get selected category object
*
* @return Mage_Catalog_Model_Category
*/
public function getCategory()
{
$rootCat = 4; // <- your new category ID
$this->_categoryId = $rootCat;
$category = Mage::getModel('catalog/category')->load($rootCat);
Mage::register('current_category_filter', $category, true);
return $category;
}
Related Stackoverflow question:
Also, if you do go this route, don't edit the core file but make a module version or at the very least an app/code/local/Mage/
copy.