標題:
[求助]
商品詳情頁會員評論刪除
[打印本頁]
作者:
ab79806359
時間:
2010-7-27 06:29
標題:
商品詳情頁會員評論刪除
EC V2.7.0 360 版形:
商品詳情頁"會員評論",後台無法編輯打開/關閉.
從那裡可以刪除或是不顯示出來..... 3Q
[attach]235[/attach]
作者:
hivenus
時間:
2010-7-27 15:48
1、先修改article.php
在 $smarty->assign('comment_type', 1);
下面增加代碼 $smarty->assign('topcatid',array_pop($catlist));
2、修改 library/comments.lbi
在 {insert_scripts files='transport.js,utils.js'}
前面增加 {if $topcatid neq 1}
再在此文件所有代碼最後加 {/if}
作者:
ab79806359
時間:
2010-7-28 14:32
依照 2樓的方法修改如下:
article.php
$smarty->assign('type', '1');
$smarty->assign('promotion_info', get_promotion_info());
comments.lbi
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">{/if}
{if $topcatid neq 1}{/if}{insert_scripts files='transport.js,utils.js'}{/if}
<div id="ECS_COMMENT">{/if} {* ECSHOP 提醒您:動態載入comments_list.lbi,顯示評論列表和評論表單 *}{/if}{insert name='comments' type=$type id=$id}</div>{/if}
修改完後,前台 商品詳情頁"會員評論"是不見了,但商品詳情頁面上有幾個地方出現錯誤代碼,整個頁面也移位.
不知道是那裡改錯了!!
作者:
hivenus
時間:
2010-7-28 17:06
我用的是lativ2.72版,是不是comments.lbi不一樣?不得而知.
但article.php應該都一樣,除非有修改過
要不把你的原始檔都上來瞧瞧
或是你的website address
作者:
ab79806359
時間:
2010-7-30 06:07
[官方模板] 360 for ecshop 2.7.0 並無修改過.
再研究看看!!
作者:
ab79806359
時間:
2010-8-31 00:41
已解決 方法如下:
模版/goods.DWT
295行 <!--用戶評論 start-->
296行 <!-- #BeginLibraryItem "/library/comments.lbi" --><!-- #EndLibraryItem -->
297行 <!--用戶評論 end-->
298行 </div>
刪除 295行到298行
作者:
terryhsieh8
時間:
2010-11-28 03:17
本帖最後由 terryhsieh8 於 2010-11-28 03:29 編輯
2#
hivenus
我是lativ 2.6.2
試了你的方法, 網路上也爬文也跟你說的一樣
但我還是沒改變, 也沒發生錯誤碼
我是想把article.php的文章列表頁面的會員評論給去掉,
刪了goods.dtw的碼, 是商品詳述的頁面評論不見,
有其他方法嗎??
作者:
terryhsieh8
時間:
2010-11-28 03:36
解決了
模板/article.dwt裡
<!-- TemplateBeginEditable name="主區域中間" -->
{insert_scripts files='transport.js,utils.js'}
<div class="globalTitle">用戶評論</div>
<div id="ECS_COMMENT" class="content"> {* ECSHOP 提醒您:動態載入comments_list.lbi,顯示評論列表和評論表單 *}{insert name='comments' type=$type id=$id}</div>
<!-- TemplateEndEditable --> </div>
刪除這段
歡迎光臨 ECSHOP 交流討論區 (http://ecshop.tw/bbs/)
Powered by Discuz! 7.0.0