2011-02-07 9 views
-2

私はview.phtmlで短い説明を削除し、attribute.phtmlタブで置き換える必要があります...どのようにそれを行うには?ありがとう。Magento移動attributes.phtml

+3

投稿する前に質問を読んで、他の人がそれを理解する方法を視覚化してみてください。もしあなたのview.phtmlがどこに、何で、そして、なぜ、なぜ、なぜ、あなたが達成しようとしていることについてのヒントを与えることも良い考えです。現在誰もそれを理解することができず、誰もあなたにアドバイスしたり質問に答えることはできません。 –

答えて

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') ?> 

そして、あなたは同じ行が削除見るところのさらに下をそれ。これにより重複を避けることができます。