ECSHOP在商品列表页增加品牌

ECSHOP教程 来源: ECSHOP教程网www.ecshop119.com 时间:2012-04-12 ECSHOP教程分类:其他ECSHOP教程

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, ' .

"ON mp.goods_id = g.goods_id AND mp.user_rank = '$_SESSION[user_rank]' " .
下增加一行
" LEFT JOIN  ". $GLOBALS['ecs']->table('brand') . " AS b on b.brand_id = g.brand_id " .


$arr[$row['goods_id']]['name']             = $row['goods_name'];
下增加一行
$arr[$row['goods_id']]['brand_name']             = $row['brand_name'];

2、修改 themes/default/library/goods_list.lbi
在你想要显示品牌的地方加入 {$goods.brand_name}

本文模板屋原创地址: https://www.ecshop119.com/ecshopjc-374.html
模板屋版权所有 © 转载时必须以链接形式注明出处!

ECSHOP模板屋
ecshop开发团队 ecshop开发中心 ecshop模板制作 ecshop模板屋
ECSHOP
ecshop下载 ecshop安装教程 ecshop在线演示 ecshop后台测试
ECSHOP二次开发手册
ecshop教程 ecshop二次开发 ecshop模板教程 ecshop微信配置
ECSHOP商城网站建设
ecshop空间域名 ecshop商城建设 ecshop模板修改 ecshop开发定制
服务支持:7X24小时 151 059 55077
ECShop二次开发
ecshop搭建
qqtelcodeback_top
温馨提示

确定取消
温馨提示

关闭