Link to home
Start Free TrialLog in
Avatar of polscifreak
polscifreakFlag for United States of America

asked on

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?
Avatar of miked2004
miked2004
Flag of United States of America image

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

Avatar of polscifreak

ASKER

miked2004,

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.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of miked2004
miked2004
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial