setTemplate('productalert/stock.phtml'); } public function isShow() { if (!Mage::getStoreConfig('catalog/productalert/allow_stock')) { return false; } if (!$product = Mage::helper('productalert')->getProduct()) { return false; } /* @var $product Mage_Catalog_Model_Product */ return !$product->isSaleable(); } public function getUrl($route = '', $params = array()) { return Mage::helper('productalert')->getSaveUrl('stock'); } }