二维码防伪系统

新闻中心

各种活动实时推动

怎么在ECSHOP商品详情页显示品牌LOGO

发布时间:2025-01-30 点击次数:140

怎么在ECSHOP商品详情页显示品牌LOGO呢?ecshop商品详细页面的商品品牌默认是以文字形式显示的,能否改成以LOGO形式显示。 的小编告诉大家,当然可以,下面看解决方法。 注:本教程以 ECSHOP2.7.2 + 官方默认模板 为例。

1)、首先需要修改 /includes/lib_goods.php , 用EditPlus或Dreamweaver打开该文件,

找到 $sql = 'SELECT g.*, c.measure_unit, b.brand_id, b.brand_name AS goods_brand, m.type_money AS bonus_money, ' .

修改为 $sql = 'SELECT g.*, c.measure_unit, b.brand_id,b.brand_logo, b.brand_name AS goods_brand, m.type_money AS bonus_money, ' .

2)、 接着修改 /themes/default/goods.dwt

将 {$goods.goods_brand}

修改为 {if  $goods.brand_logo}{else}{$goods.goods_brand}{/if} 文章编辑:   网址:   如有转载,请注明出处,谢谢。

 

copy © 2025 星澜网络 All Rights Reserved

备案号:鲁ICP备2023015769号