前几日,接到一客户的ECSHOP二次开发项目,需要在商品搜索页显示商品的货号。
(1)、
打开 search.php 文件 (建议使用editplus 或 Dreamweaver )
找到
$sql = 'SELECT g.goods_id, g.goods_name, g.market_price, g.is_new, g.is_best, g.is_hot, g.shop_price AS org_price, '.
$sql = 'SELECT g.goods_id, g.goods_sn, g.goods_name, g.market_price, g.is_new, g.is_best, g.is_hot, g.shop_price AS org_price, '.
$arr[$row['goods_id']]['type'] = $row['goods_type'];
$arr[$row['goods_id']]['goods_sn'] = $row['goods_sn'];
去后台清空一下缓存,看是不是已经能够显示商品编号了。
(责任编辑:最模板)
联系客服