最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
ECSHOP中销售排行显示会员价格方法
时间:2022-06-25 16:22:46 编辑:袖梨 来源:一聚教程网
修改方法:
打开 includes/lib_goods.php文件找到
$arr[$i]['price'] = price_format($arr[$i]['shop_price']);
把它修改为下面代码即可
代码如下 | 复制代码 |
$arr[$i]['price'] = price_format($GLOBALS['db']->getOne("select if NULL(mp.user_price, d.shop_price * '$_SESSION[discount]') as price from ".$GLOBALS['ecs']->table['goods']."as d left join".$GLOBALS['ecs']->table('member_price')." as mp on mp.goods_id = d.goods_id and mp.user_rank = '$_SESSION[user_rank]' where d.goods_id = ".$arr[$i]['goods_id'])); |
相关文章
- 创造与魔法希腊恋人服装怎么获取 04-30
- 奇迹暖暖第二卷的3-2怎么过攻略 04-30
- 蛋仔派对潮玩大作战派对手册如何 04-30
- 奥比岛手游怎么改名字攻略 04-30
- 明日之后黑珍珠区蓝潮探索隐藏宝箱攻略 04-30
- 逆水寒手游人生八苦奇遇达成方法解析 04-30