Magento Forum

   
How to display drop-down attribute on home page? 
 
webarton
Member
 
Total Posts:  45
Joined:  2011-02-03
 

Hello, I’d like to show a certain product’s attribute on home page. The attribute was selected by a dropdown or a multiple selection.

I could show a value by text field (textbox or textarea) like this;

<?php echo $_helper->productAttribute($_product$_product->getColor(), 'color'?>

But I don’t know how to show drop-down attribute on home page.
Could anyone give me some advice?

Thanks in advance.

Maganto version : 1.4.2.0

 
Magento Community Magento Community
Magento Community
Magento Community
 
webarton
Member
 
Total Posts:  45
Joined:  2011-02-03
 

I could solve with this code;

<?php echo $_product->getResource()->getAttribute('color')->getFrontend()->getValue($_product?>

I saw this thread
http://www.magentocommerce.com/boards/viewthread/63009/

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