A5下载文章资讯

分类分类

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

2015-09-10 15:50作者:fang

今天小编给大家介绍一篇文章,叫做修改ecshop让调用的浏览历史修改成只图或者其他,分享给大家供大家参考。具体如下:

ecshop程序目录下 includeslib_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>';

希望本文所述对大家的ecshop程序设计有所帮助

展开全部

相关

说两句网友评论
    我要跟贴
    取消