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