西部数码主机 | 阿里云主机| 虚拟主机 | 服务器 | 返回乐道官网
当前位置: 主页 > php教程 > ecshop教程 >

ecshop商品详情相册顺序调整

时间:2016-01-05 11:51来源:未知 作者:好模板 点击:
更改ecshop相册顺序为根据id升序: 找到/include/lib_goods.php 821行: 修改为: $sql = SELECT img_id, img_url, thumb_url, img_desc . FROM . $GLOBALS[ecs]-table(goods_gallery) . WHERE goods_id = $goods_id order by img_id asc

更改ecshop相册顺序为根据id升序:

 

找到/include/lib_goods.php 821行:

修改为:

$sql = 'SELECT img_id, img_url, thumb_url, img_desc' .
        ' FROM ' . $GLOBALS['ecs']->table('goods_gallery') .
        " WHERE goods_id = '$goods_id' order by img_id asc LIMIT" . $GLOBALS['_CFG']['goods_gallery_number']; $row = $GLOBALS['db']->getAll($sql);

(红字为新增)

(责任编辑:好模板)
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------