1. 程式人生 > >Ecshop商品瀏覽歷史樣式修改方法

Ecshop商品瀏覽歷史樣式修改方法

int includes 需要 url 找到 list itl tle blank

想要修改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

Ecshop商品瀏覽歷史樣式修改方法