Friday, 19 July 2013

how to remove null data from additionali information table in product detail page in magento

By default if any value is not assigned to product data it retrive no in additionali information
check in chair dimension has no value

so go to \app\design\frontend\pro\weldingmart\template\catalog\product\view\attributes.phtml
add one if condition before <tr >starts like
  <?php if($_product[$_data['code']] != ""){?>
             <tr>
                <th class="label"><?php echo $this->htmlEscape($this->__($_data['label'])) ?></th>
                <td class="data"><?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></td>
            </tr>
            <?php }?>

No comments:

Post a Comment