2011-02-07 38 views
-2

我需要删除简短说明在view.phtml与attribute.phtml标签替换...怎么办呢?谢谢。Magento的移动attributes.phtml

+3

你应该发布之前阅读你的问题,并尝试想象其他人会如何理解它,如果他们真的知道在哪里,什么,为什么你view.phtml存在,同样违背attribute.phtml。提供你想要完成的东西的提示也是一个好主意。目前没有人能够理解它,这导致了一个事实,没有人能劝你还是回答这个问题。 – 2011-02-07 09:40:54

回答

2

编辑你的主题template/catalog/product/view.phtml(不是基本主题的,是可以被覆盖)和替换这样的:

<?php if ($_product->getShortDescription()):?> 
    <div class="short-description"> 
     <h2><?php echo $this->__('Quick Overview') ?></h2> 
     <div class="std"><?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), 'short_description') ?></div> 
    </div> 
<?php endif;?> 

与此:

<?php echo $this->getChildHtml('additional') ?> 

进一步回落,你看到相同的行删除它。这避免了重复。