magento additional & details 分解开来

<?php foreach ($this->getChildGroup('detailed_info', 'getChildHtml') as $alias => $html):?>
        <div class="box-collateral <?php echo "box-{$alias}"?>">
            <?php if ($title = $this->getChildData($alias, 'title')):?>
            <h2><?php echo $this->escapeHtml($title); ?></h2>
            <?php endif;?>
            <?php echo $html; ?>
        </div>
<?php endforeach;?>

To

<?php if ($_description = $this->getChildHtml('description')):?>
        <div class="collateral-box">
            <div class="box-collateral box-description">
                <h2><?php echo $this->__('Product Description') ?></h2>
            </div>
            <?php echo $_description ?>
        </div>
    <?php endif;?>

and

        <?php if ($_additional = $this->getChildHtml('additional')):?>
        <div class="box-collateral box-additional">
            <h2><?php echo $this->__('Additional Information') ?></h2>
            <?php echo $_additional ?>
        </div>
        <?php endif;?>
原文地址:https://www.cnblogs.com/focai/p/4484814.html