ecshop左侧浏览历史按照浏览先后进行排序方法
2016-09-02 16:28 来源:www.chinab4c.com 作者:ecshop专家
打开 includes/lib_insert.php,找到如下代码: $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); 将代码改为如下 $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 order by INSTR(\'\".$_COOKIE[\'ECS\'][\'history\'].\"\', goods_id)\"; $query = $GLOBALS[\'db\']->query($sql);
最近更新
常用插件
- ecshop2.7.2生成虚拟订单2.
以前我们开发过ecshop下的虚拟订单,就是客户在访问的时候,会自动生...
- ecshop二次开发商品购买增
图片1香...
- ecshop最小购买数量控制插
ecshop最小购买数量控制插件,这个插件主要是为我们提供一个十分方便...
- ecshop没登陆情况下订单查
ecshop没登陆情况下订单查询插件,主要是针对ecshop在没有登陆的情况下...
- ecshop2.7.1邮件发送插件
ecshop2.7.1邮件发送插件:该插件主要的开发思想是源于ecshop短信发送系统...