首页建站经验 增加ecshop商品列表商品对应的评论管理功能

增加ecshop商品列表商品对应的评论管理功能

admin/template/goods_list.htm中找到{if $add_handler}|{foreach from=$add_handler item=handler}{/foreach}{/if}它的下面加入修改admin/comment_manage.php找到$where =…

增加ecshop商品列表商品对应的评论管理功能

admin/template/goods_list.htm中找到

{if $add_handler}

|

{foreach from=$add_handler item=handler}

{/foreach}

{/if}

它的下面加入

评论管理

修改admin/comment_manage.php

找到

$where = (!empty($filter['keywords'])) ? " AND content LIKE '%" . mysql_like_quote($filter['keywords']) . "%' " : '';

它的下面加入

/** by neo **/

$filter['goods_id'] = (is_numeric($_REQUEST['goods_id']) && $_REQUEST['goods_id'] > 0) ? intval($_REQUEST['goods_id']) : 0;

if($filter['goods_id'] > 0) {

$goods_id = intval($_REQUEST['goods_id']);

$where .= " AND id_value = '$goods_id' ";

}

/** by zuimoban **/

另外为了删除后跳转回当前商品的评论

修改模板 admin/templates/comment_list.htm

找到

它的下面加入

修改admin/comment_manage.php 2处

$link[] = array('text' => $_LANG['back_list'], 'href' => 'comment_manage.php?act=list'

修改成

$link[] = array('text' => $_LANG['back_list'], 'href' => 'comment_manage.php?act=list'.'&goods_id='.$_REQUEST['goods_id']);//by neo

本文来自网络,不代表1号站长-站长学院|资讯交流平台立场。转载请注明出处: https://www.1cn.cc/jianzhan/jingyan/17778.html
上一篇购买ecshop网站商品提示Select_spe未定义解决方法
下一篇 ecshop商店名称传入支付宝
admin

作者: admin

这里可以再内容模板定义一些文字和说明,也可以调用对应作者的简介!或者做一些网站的描述之类的文字或者HTML!

为您推荐

评论列表()

    联系我们

    联系我们

    0898-88888888

    在线咨询: QQ交谈

    邮箱: email@wangzhan.com

    工作时间:周一至周五,9:00-17:30,节假日休息

    关注微信
    微信扫一扫关注我们

    微信扫一扫关注我们

    关注微博
    返回顶部