今天小編給大家介紹一篇文章,叫做修改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程序設計有所幫助
新聞熱點
疑難解答