ECSHOP首页的精品/新品/热销里显示商家备注

 

ECSHOP首页的精品/新品/热销里显示商家备注,如图

 

1、修改 /includes/lib_goods.php 查找

"promote_start_date, promote_end_date, g.goods_brief, g.goods_thumb, g.goods_img, RAND() AS rnd " .

修改为

"promote_start_date, promote_end_date, g.goods_brief, g.goods_thumb, g.goods_img,g.seller_note, RAND() AS rnd " .

 

 

继续查找

if (in_array($row['goods_id'], $type_array['best']))

在上面添加代码

$goods[$idx]['seller_note']          = $row['seller_note'];

 

 

二、下面修改ECSHOP模板文件,以官方默认模板为例(其他模板同理)

打开 /themes/default/library/recommend_best.lbi  查找

<p><a href="{$goods.url}" title="{$goods.name|escape:html}">{$goods.short_style_name}</a></p>

在下面添加代码

<p>{$goods.seller_note}</p>

 

/themes/default/library/recommend_hot.lbi 文件

/themes/default/library/recommend_new.lbi 文件

 

修改方法同上

 

 

posted on 2012-10-17 19:42  ECshop商城二次开发博客  阅读(673)  评论(0编辑  收藏  举报

导航