Guest User

Untitled

a guest
Jan 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. echo $this->getLayout()->createBlock('cms/block')->setBlockId("$categoryBlock")->toHtml();
  2.  
  3. public function getCmsBlockHtml()
  4. {
  5. if (!$this->getData('cms_block_html')) {
  6. $html = $this->getLayout()->createBlock(
  7. 'MagentoCmsBlockBlock'
  8. )->setBlockId(
  9. $this->getCurrentCategory()->getLandingPage()
  10. )->setCacheLifetime(null)->toHtml();
  11. $this->setData('cms_block_html', $html);
  12. }
  13. return $this->getData('cms_block_html');
  14. }
Add Comment
Please, Sign In to add comment