© 2002-2018 最模板 zuimoban.com 版权所有,并保留所有权利。
ecshop模板网,专注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']; |
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 文件,修改方法同上