2017-04-11 68 views
0

我試圖在我的產品頁面上啓用默認評分審查表單。我面臨的問題是「成爲第一個審查產品」的問題正在出現,但該鏈接無法正常工作。 This is my product page 當我第一次點擊鏈接時,鏈接會重定向到另一個頁面(URL:localhost/Magento/review/product/list/id/28 /#review-form)。 this is my second page and again when I clicked on the link nothing happens如何在產品頁面中啓用默認「產品評分審查」表單,在Megento 1.9中

需要的改變,我並

在管理面板,使產品rating.And「目錄 - >評級和審查 - >管理評價」在那裏,我給了排序順序,以「價值,普利卡和quakity「。

IN BACKEND

<div class="product-collateral toggle-content tabs"> 
    <?php if ($detailedInfoGroup = $this->getChildGroup('detailed_info', 'getChildHtml')):?> 
     <dl id="collateral-tabs" class="collateral-tabs"> 
      <?php foreach ($detailedInfoGroup as $alias => $html):?> 
       <dt class="tab"><span class="nav nav-tab "><?php echo $this->escapeHtml($this->getChildData($alias, 'title')) ?></span></dt> 
       <dd class="tab-container"> 
        <div class="tab-content"><?php echo $html ?></div> 
       </dd> 
      <?php endforeach;?> 
     </dl> 
    <?php endif; ?> 
</div> 

誰能請幫助解決這個問題。謝謝!

+0

您是否檢查過您的網站索引?這通常是我第一次去,如果鏈接不按預期工作 – PhilS

+0

是的,我檢查了問題不是從那裏。 –

回答

0

依照下列指示:

第一步: -進入APP->設計 - > frontend->您的包名(基本/ RWD) - >你的主題(默認值...) - >佈局 - > review.xml

第2步: -將以下代碼粘貼到review.xml並刷新產品視圖頁。去標籤,現在你可以看到審查表格。

<catalog_product_view> 
     <reference name="product.info"> 
      <block type="review/product_view_list" name="product.reviews" as="reviews" template="review/product/view/list.phtml" after="additional"> 
       <action method="addToParentGroup"><group>detailed_info</group></action> 
       <action method="setTitle" translate="value"><value>Reviews</value></action> 
       <block type="review/form" name="product.review.form" as="review_form" /> 
      </block> 
     </reference> 
    </catalog_product_view> 
+0

它的工作原理是,評論表單現在顯示在鏈接下面(是第一個評論此產品),並在提交重定向到購物車頁面和評論後甚至不提交,我檢查管理面板。 –

+0

但重定向認爲沒問題。我可以改變,但事情是我想點擊鏈接後的審查表格。 –

+0

其實,我很困惑,我不知道爲什麼這個鏈接重定向到這個頁面(URL:localhost/Magento/review/product/list/id/28 /#review-form)。 你能否告訴我我應該寫什麼

相關問題