cancel
Showing results for 
Search instead for 
Did you mean: 

Load layered navigation

Load layered navigation

I'm currently attempting to build a view "outside" of the normal view structure. Here is what I'm currnetly running:

 

 

$device = $this->getRequest()->getParam('device');

$category = Mage::getModel('catalog/category')->load($device);


$layout = Mage::app()->getLayout();

$list_block = $layout->createBlock('catalog/product_list');
$toolbar = $layout->createBlock('catalog/product_list_toolbar');
$list_block->setCategoryId($device)->setTemplate('catalog/product/vendorlist.phtml');

$list_block->setChild('toolbar', $toolbar);

$collection = $list_block->getLoadedProductCollection();

 

 

This is pulling the collection correctly and giving me the vendorlist.phtml file correctly, but I cannot figure out how to get the layered navigation loaded to show the filtering options for the current collection.

 

Thanks!

1 REPLY 1

Re: Load layered navigation

@streamco

 

Make sure you are creating page using the Magento standard way using XML.

There are multiple ways to add layer navigation if you follow create pages using XML.

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now