BigSale模板的浏览历史能不能改啊
2016-07-07 16:17 来源:www.chinab4c.com 作者:ecshop专家
我想把浏览历史模块里的销售价格改成别的,能不能改啊 |
回答:
1# dsx_2009 没人看啊,自己顶 |
我 不知道你再说什么不过顶你一下哈哈 |
当然可以改,改lib_insert.php 文件里的insert_history() 函数部分,不会就请人帮忙吧 |
D:\PHPnow\php\includes\lib_insert.php /** * 调用浏览历史 * * @accesspublic * @returnstring */ function insert_history() { $str = ''; if (!empty($_COOKIE['ECS']['history'])) { $where = db_create_in($_COOKIE['ECS']['history'], 'goods_id'); $sql= 'SELECT goods_id, goods_name, goods_thumb, shop_price FROM ' . $GLOBALS['ecs']->table('goods') . " WHERE $where AND is_on_sale = 1 AND is_alone_sale = 1 AND is_delete = 0"; $query = $GLOBALS['db']->query($sql); $res = array(); while ($row = $GLOBALS['db']->fetch_array($query)) { $goods['goods_id'] = $row['goods_id']; $goods['goods_name'] = $row['goods_name']; $goods['short_name'] = $GLOBALS['_CFG']['goods_name_length'] > 0 ? sub_str($row['goods_name'], $GLOBALS['_CFG']['goods_name_length']) : $row['goods_name']; $goods['goods_thumb'] = get_image_path($row['goods_id'], $row['goods_thumb'], true); $goods['shop_price'] = price_format($row['shop_price']); $goods['url'] = build_uri('goods', array('gid'=>$row['goods_id']), $row['goods_name']); $str.='<ul class="clearfix"><li class="goodsimg"><a href="'.$goods['url'].'" target="_blank"><img src="'.$goods['goods_thumb'].'" alt="'.$goods['goods_name'].'" class="B_blue" /></a></li><li><a href="'.$goods['url'].'" target="_blank" title="'.$goods['goods_name'].'">'.$goods['short_name'].'</a><br />'.$GLOBALS['_LANG']['shop_price'].'<font class="f1">'.$goods['shop_price'].'</font><br /></li></ul>'; } $str .= '<ul id="clear_history"><a>' . $GLOBALS['_LANG']['clear_history'] . '</a></ul>'; } return $str; } |
正确,建议官方把这块拿出来,不要放到php里面 |
遇到同类的问题,解决了,, |
最近更新
常用插件
- ecshop没登陆情况下订单查
ecshop没登陆情况下订单查询插件,主要是针对ecshop在没有登陆的情况下...
- ecshop的oss插件
ecshop的oss插件免费共享了,oss,ecshoposs...
- ecshop订单聚合插件
ecshop订单聚合插件,主要是为了方便ecshop中订单产品到货情况的分析和...
- ecshop注册审核插件
ecshop插件介绍:ecshop会员注册审核插件,主要是在前台提供给注册的时候...
- ecshop虚拟发货插件
ecshop虚拟发货插件介绍: ecshop虚拟发货插件,主要为了通过后台手动录...
ecshop热门问答
ecshop热门资料
ecshop非首页
ecshoppriv
ecshop商品分类问题
ecshop地图
ecshopapche
ecshop组合
ecshoplogo
ecshop茶文化
ecshop百团大战
ecshop修改
ecshop2.7.0版权
ecshop产品
ecshopCCSHOP
ecshop元素
ecshopmall
ecshoputf8
ecshop香港空间
ecshopSEO优化
ecshop微博登陆
ecshop添加购物车
ecshop后台运行
ecmall备注
ecshopecsop
ecshop商品名称
ecshop奔驰C级
ecshoppowerde
ecshop出版社
ecshop免验证码查询
ecshopfooter
ecshop支付方式类