首页 > 网站 > 建站经验 > 正文

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

2024-04-25 20:41:48
字体:
来源:转载
供稿:网友

今天小编给大家介绍一篇文章,叫做修改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>';

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

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表