/** * Return loaded downloadable product instance * * @param int|string $productId (SKU or ID) * @param int|string $store * @param string $identifierType * @return Mage_Catalog_Model_Product */ protected function _getProduct($productId, $store = null, $identifierType = null) { $product = parent::_getProduct($productId, $store, $identifierType); if ($product->getTypeId() !== Mage_Downloadable_Model_Product_Type::TYPE_DOWNLOADABLE) { $this->_fault('product_not_downloadable'); } return $product; }
protected function _getStoreId($store = null) { $store = Mage::app()->getStore(Mage::getModel('magebridge/core')->getStore()); return parent::_getStoreId($store); }