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

Page 2 of 2
Can’t hide custom attribute titles, when value is null
 
GoodKaarma
Member
 
Total Posts:  31
Joined:  2009-09-05
Estonia
 

Beautiful. Thanks. I had to make a couple of small changes for N/A and label-additional, like this:

<tbody>
        
<?php foreach ($_additional as $_data): ?>
            <?php 
if(($_data['value']) != 'N/A'): ?>
            
<tr>
                <
th class="label-additional"><?php echo $this->htmlEscape($this->__($_data['label'])) ?></th>
                <
td class="data"><?php echo $_helper->productAttribute($_product$_data['value']$_data['code']?></td>
            </
tr>
           
<?php endif; ?>
        <?php 
endforeach; ?>
        
</tbody>
attributes.phtml is located here: app/design/frontend/yourtheme/default/template/catalog/product/view
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 2 of 2