*/ class Mage_ProductAlert_Block_Email_Price extends Mage_ProductAlert_Block_Email_Abstract { /** * Constructor * */ public function __construct() { parent::__construct(); $this->setTemplate('email/productalert/price.phtml'); } /** * Retrive unsubscribe url for product * * @param int $productId * @return string */ public function getProductUnsubscribeUrl($productId) { $params = $this->_getUrlParams(); $params['product'] = $productId; return $this->getUrl('productalert/unsubscribe/price', $params); } /** * Retrieve unsubscribe url for all products * * @return string */ public function getUnsubscribeUrl() { return $this->getUrl('productalert/unsubscribe/priceAll', $this->_getUrlParams()); } }