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

using getAllowAttributes() in the product list
 
xil
Jr. Member
 
Total Posts:  7
Joined:  2008-03-16
 

Hi there,

I asked a while back but got no responces close to what I wanted to try to do so I’ve had a little go myself.

I’m attempting to add the attribute dropdown on the catalog pages (list.phtml).

So far I’ve got everything working apart from when I add the following code:

<div class="product-attributes">
<
table cellspacing="0">
<?foreach($this->getAllowAttributes() as $_attribute):?>
<tr>
<
td class="label"><?=$_attribute->getLabel()?>:</td>
<
td>
<
select name="super_attribute[<?=$_attribute->getAttributeId()?>]" id="attribute<?=$_attribute->getAttributeId()?>" class="required-entry super-attribute select super-attribute-select">
<
option><?=$this->__('Choose an Option...')?></option>
</
select>
</
td>
</
tr>
<?endforeach;?>

Is there an easy way to fix this or something I need to add into the xml layout files? Any help would be greatly appriciated.

Cheers,

Ben.

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