/** * Prepare to html * Check has compared products * * @return string */ protected function _toHtml() { if (!$this->getCount()) { return ''; } $this->setRecentlyComparedProducts($this->getItemsCollection()); return parent::_toHtml(); }
/** * Prepare to html * check has viewed products * * @return string */ protected function _toHtml() { $this->setRecentlyViewedProducts($this->getItemsCollection()); return parent::_toHtml(); }