FWQ
ecshop商品详情页单独调用某一项商品属性值
ecshop商品详情页是统一调用显示所有的属性值的,我们希望单独调用某一项属性值。 第一步: 打开 goods.php 文件, 在最后面插入以下代码: function get_attr_value($goods_id,$attr_id) { $sql="select attr_value from ".$GLOBALS['ecs']->table('goods_attr')." where goods_id='$goods_id' and attr_id='$attr_id'"; $re= $GLOBALS['db']->getOne($sql); if(!empty($re)) { return $re; } else { return false;…