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