Magento Layered Navigation

I am trying to figure out a problem with layered navigation using the magento shopping cart.

What I want to do is use one of my attributes in the layered navigation on the HOMEPAGE.

I can get the layered navigation to work AFTER I select a category, but I want my chosen attribute to be available for navigation on the homepage.

How can I do this?
Who is Participating?
Well I hope this helps a little. This will get you a layered navigation block onto your homepage, but you will still need to add a product list like the category pages or edit the layered navigation filter links so that they point to a page that will display a product list.  This will use the root category's settings. You will probably want to set another catalog by using the code at the top of the snippet attached.
     //Load selected category by Id
     $category = Mage::getModel('catalog/category')->load(14);
     Mage::register('current_category, $category);

   echo $this->getLayout()->createBlock('catalog/layer_view')

Open in new window

As I understand, the layered navigation is suppose to be used from with in a category. When you place the layered nav block on the homepage you may need to set the top most category(root category) as active. This would mean setting it in the registry. "Mage:register('current_category', 1)" I believe current category is what it looks for, but I might be wrong. And you would need to replace 1 with the id of your root catalog.
P.S. If that dosn't work it might want the category object. so instead of 1 you would want to pass the object. You could get it by:
$category = Mage::getModel('catalog/category')->load($categoryId);

Open in new window

polscifreakAuthor Commented:

Thank you for your comment! I didn't even think of that.

Do you happen to know where this might be in the files?

I've been looking around and I can't seem to find it.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.