2011-02-07 17 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') ?> 

進一步回落,你看到相同的行刪除它。這避免了重複。