ecshop商品列表页左侧分类点击显示0怎么解决,看图 30
2个回答
展开全部
您可以尝试以下方法:
1、打开category.php 文件
将 $sql = 'SELECT g.goods_id, g.goods_name, g.goods_name_style, 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_name, g.goods_name_style, g.market_price, g.is_new, g.is_best, g.is_hot, g.shop_price AS org_price,g.goods_number, ' .
继续
在$arr[$row['goods_id']]['url'] = build_uri('goods', array('gid'=>$row['goods_id']), $row['goods_name']);
下面增加一行代码
$arr[$row['goods_id']]['goods_number'] = $row['goods_number'];
2、打开 themes/模版文件夹/library/goods_list.lbi 文件
在你想显示 库存的地方加入下面代码
加入:库存:{$goods.goods_number}<br />
1、打开category.php 文件
将 $sql = 'SELECT g.goods_id, g.goods_name, g.goods_name_style, 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_name, g.goods_name_style, g.market_price, g.is_new, g.is_best, g.is_hot, g.shop_price AS org_price,g.goods_number, ' .
继续
在$arr[$row['goods_id']]['url'] = build_uri('goods', array('gid'=>$row['goods_id']), $row['goods_name']);
下面增加一行代码
$arr[$row['goods_id']]['goods_number'] = $row['goods_number'];
2、打开 themes/模版文件夹/library/goods_list.lbi 文件
在你想显示 库存的地方加入下面代码
加入:库存:{$goods.goods_number}<br />
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询