关于新品热销推荐里显示后台设置的备注内容

2016-09-11 20:39 来源:www.chinab4c.com 作者: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'];


2、

下面修改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>


3、
然后打开 /themes/default/library/recommend_hot.lbi 文件,修改方法同上

4、
然后打开 /themes/default/library/recommend_new.lbi 文件,修改方法同上