优惠全部云服务器首月 8 折,优惠码 CLOUD去领取

ecshop商品详情相册顺序调整

· 阅读约 1 分钟

更改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);

(红字为新增)

相关文章

更多「网站和优化」文章服务器使用指南