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