xgnic 发表于 2017-6-13 11:36:07

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。


页: [1]
查看完整版本: ECSHOP商品浏览历史模板样式修改方法