求教如何修改lib_insert使得历史记录可以调用某自定义属性?

2016-07-07 15:03 来源:www.chinab4c.com 作者:ecshop专家

http://bbs.ecshop.com/viewthread.php?tid=43215&highlight=%CA%F4%D0%D4
根据这个帖子我学会了在列表页调用产品的一个自定义属性,程序是
  • $properties = get_goods_properties($row['goods_id']);
  • $arr[$row['goods_id']]['propertie'] = $properties['pro'];
但是在历史记录中,都是这种写法
$goods['goods_id'] = $row['goods_id'];
$goods['goods_name'] = $row['goods_name'];
$goods['short_name'] = $GLOBALS['_CFG']['goods_name_length'] > 0 ? sub_str($row['goods_name'], $GLOBALS['_CFG']['goods_name_length']) : $row['goods_name'];
$goods['goods_thumb'] = get_image_path($row['goods_id'], $row['goods_thumb'], true);
$goods['shop_price'] = price_format($row['shop_price']);
$goods['url'] = build_uri('goods', array('gid'=>$row['goods_id']), $row['goods_name']);

请问各位大虾应该怎么写才能在历史记录中调用某自定义属性?

回答:
你根据属性的ID.调用对应的信息

你根据属性的ID.调用对应的信息
netaxcess 发表于 2010-4-7 14:16

大哥能写个语句参考下么....小弟我不懂PHP