Ecshop商品浏览历史样式修改方法

想要修改ECSHOP的浏览历史样式,发现 history.lbi 中不能修改。


需要修改的文件:includes\lib_insert.php,找到函数:function insert_history(),下面的代码:

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


上面的代码就是所对应的样式代码,修改即可。

另外,调用的模板文件:history.lbi,中的:

<div id=’history_list’>
  {insert name=’history’}
</div>

其中,id=”history_list”是“清空”操作的ID。

from: Internet

posted @ 2017-05-15 11:40  ec04  阅读(359)  评论(0编辑  收藏  举报