/** * Render block HTML * * @return string */ protected function _toHtml() { if (!$this->isMsgVisible()) { return ''; } return parent::_toHtml(); }
/** * Retrieve block cache tags * * @return array */ public function getCacheTags() { return array_merge(parent::getCacheTags(), $this->_getProduct()->getCacheIdTags()); }