ecshop2.71修改全部品牌爲去掉過濾不用加brand.php?=這個條件

 

修改 includes/lib_common.php 文件的 get_brands()函數部分 將 $sql = "SELECT b.brand_id, b.brand_name, b.brand_logo, b.brand_desc, COUNT(*) AS goods_num, IF(b.brand_logo > '', '1', '0') AS tag ".             "FROM " . $GLOBALS['ecs']->table('brand') . "AS b, ".                 $GLOBALS['ecs']->table('goods') . " AS g ".             "WHERE g.brand_id = b.brand_id $children AND is_show = 1 " .             " AND g.is_on_sale = 1 AND g.is_alone_sale = 1 AND g.is_delete = 0 ".             "GROUP BY b.brand_id HAVING goods_num > 0 ORDER BY tag DESC, b.sort_order ASC"; 修改成 $sql="select brand_id,brand_name,brand_logo, brand_desc,IF(brand_logo > '', '1', '0') AS tag FROM " . $GLOBALS['ecs']->table('brand');
相關文章
相關標籤/搜索