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

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