/** * Returns the product ID for handling * the serialz for. * * @return integer The ID of the product */ protected function _getProductId() { return $this->_linkPurchased->getProductId(); }
/** * Create and return a hash for the download link. * * @return string The requested hash */ public function serialz() { // encrypt the hash for the download link return Mage::helper('core')->getEncryptor()->encrypt(microtime() . $this->_linkPurchased->getCustomerId() . $this->_linkPurchased->getProductId() . $this->_linkPurchased->getPurchasedId()); }