Advertisement
Guest User

Untitled

a guest
Jan 12th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  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();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement