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, b.brand_name , g.goods_name_style, g.market_price, g.is_new, g.is_best, g.is_hot, g.shop_price AS org_price, ' .
Ecshop分类页面的品牌筛选默认不显示该品牌下商品数量,如果需要显示,可能通过一下方法进行修改。
首先打开category.php,搜索函数$brands,大约438行,在对应位置添加下面红色代码。
foreach ($brands AS $key => $val)
{
$temp_key = $key + 1;
苗景云的博客
<< 向左走,向右走 >>
<< 向左走,向右走 >>