public function _toHtml() { if (!$this->getConfig('show')) { return; } $pretext = $this->getConfig('productlist_pretext'); $cms_block_id = $this->getConfig('cmsblock'); $cms = ""; if ($cms_block_id) { $cms = Mage::getSingleton('core/layout')->createBlock('cms/block')->setBlockId($cms_block_id)->toHtml(); } if ($cms) { $this->assign('productlist_pretext', $cms); } elseif ($pretext) { $pretext = html_entity_decode(base64_decode($pretext)); $this->setData('productlist_pretext', $pretext); } return parent::_toHtml(); }
/** * Prepare collection with new products * * @return Mage_Core_Block_Abstract */ protected function _beforeToHtml() { $this->setProductCollection($this->_getProductCollection()); return parent::_beforeToHtml(); }
public function _toHtml() { if (!$this->getConfig('show')) { return; } return parent::_toHtml(); }