Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Getting custom attribute options
 
Core
Member
 
Total Posts:  68
Joined:  2008-03-09
 

Hello,

How do I get a list of all available values for an attribute?
I’m trying to create a vertical navigation bar that displays a list of brands.  I’ve created a custom attribute named “Brand” and added various brand options to it.  Now I want it to list all those options (brands) in my vertical navigator.

How would I modify the below phtml to achieve this?

<div class="vertical-nav-container">
<div class="vertical-nav">
<h4 class="no-display"><?php echo $this->__('Category Navigation:') ?></h4>
<ul id="nav_vert">
<?php foreach ($this->getStoreCategories() as $_category): ?>
<?php echo $this->drawItem($_category) ?>
<?php endforeach ?>
</ul>
</div>
<?php echo $this->getChildHtml('topLeftLinks') ?>
</div>

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top