网站开发 · 2025年4月24日

修改ecshop让调用的浏览历史修改成只图或者其他

 ecshop程序目录下 \includes\lib_insert.php  找到 调用浏览历史 这断函数,可以直接搜索下

核心代码:

 $str.='<ul class=”clearfix”><li class=”goodsimg”><a href=”‘.$goods[‘url’].'” target=”_blank”><img src=”‘.$goods[‘goods_thumb’].'” alt=”‘.$goods[‘goods_name’].'” class=”B_blue” /></a></li><li><a href=”‘.$goods[‘url’].'” target=”_blank” title=”‘.$goods[‘goods_name’].'”>’.$goods[‘short_name’].'</a><br />’.$GLOBALS[‘_LANG’][‘shop_price’].'<font class=”f1″>’.$goods[‘shop_price’].'</font><br /></li></ul>’;

 

比如只修改成有图,那么就是

 $str.='<ul class=”clearfix”><li class=”goodsimg”><a href=”‘.$goods[‘url’].'” target=”_blank”><img src=”‘.$goods[‘goods_thumb’].'” alt=”‘.$goods[‘goods_name’].'” class=”B_blue” /></a></li></ul>’;

比如只修改成有图有价格,不要标题,那么就是

 $str.='<ul class=”clearfix”><li class=”goodsimg”><a href=”‘.$goods[‘url’].'” target=”_blank”><img src=”‘.$goods[‘goods_thumb’].'” alt=”‘.$goods[‘goods_name’].'” class=”B_blue” /></a></li><br />’.$GLOBALS[‘_LANG’][‘shop_price’].'<font class=”f1″>’.$goods[‘shop_price’].'</font><br /></li></ul>’;

 

好模板提供,请勿转载