/** * Retrieve additional searchable data from type instance * Using based on product id and store_id data * * @param Mage_Catalog_Model_Product $product * @return array */ public function getSearchableData($product = null) { $searchData = parent::getSearchableData($product); $product = $this->getProduct($product); $linkSearchData = Mage::getSingleton('downloadable/link')->getSearchableData($product->getId(), $product->getStoreId()); if ($linkSearchData) { $searchData = array_merge($searchData, $linkSearchData); } $sampleSearchData = Mage::getSingleton('downloadable/sample')->getSearchableData($product->getId(), $product->getStoreId()); if ($sampleSearchData) { $searchData = array_merge($searchData, $sampleSearchData); } return $searchData; }
/** * Retrieve additional searchable data from type instance * Using based on product id and store_id data * * @param Mage_Catalog_Model_Product $product * @return array */ public function getSearchableData($product) { $searchData = parent::getSearchableData($product); $linkSearchData = Mage::getSingleton('Mage_Downloadable_Model_Link')->getSearchableData($product->getId(), $product->getStoreId()); if ($linkSearchData) { $searchData = array_merge($searchData, $linkSearchData); } $sampleSearchData = Mage::getSingleton('Mage_Downloadable_Model_Sample')->getSearchableData($product->getId(), $product->getStoreId()); if ($sampleSearchData) { $searchData = array_merge($searchData, $sampleSearchData); } return $searchData; }