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

it2022-05-06  4

 

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 文件

 

修改方法同上

 

 

转载于:https://www.cnblogs.com/wangblognet/archive/2012/10/17/2728295.html


最新回复(0)