今天小编给大家介绍一篇文章,叫ecshop商品详情页显示所属品牌LOGO,分享给大家供大家参考。具体如下:
1 找includes/lib_goods.php把b.brand_logo加上.
/**
* 获得商品的详细信息
*
* @access public
* @param integer $goods_id
* @return void
*/
function get_goods_info($goods_id)
{
$time = gmtime();
$sql = 'SELECT g.*, c.measure_unit, b.brand_id, b.brand_logo, b.brand_name AS goods_brand,
2 good.dwt 页面调用图片地址用<img src="/data/brandlogo/{$goods.brand_logo}">
希望本文所述对大家设计有所帮助
新闻热点
疑难解答