SHARE
TWEET

Untitled

a guest Jan 12th, 2017 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $this->loadLayout()
  2.     ->_initLayoutMessages('checkout/session')
  3.     ->_initLayoutMessages('catalog/session');
  4.  
  5.  $category = Mage::getModel('catalog/category')->load(11); //here 11 is category id
  6.  $block    = $this->getLayout()->createBlock('catalog/product_list')->setCategory($category)->setTemplate('catalog/product/list.phtml');
  7.  $this->getLayout()->getBlock('content')->append($block);
  8.  $this->renderLayout();
RAW Paste Data
Top