修改flow.php文件的什么地方能把商品简介调出来?

2016-07-07 16:17 来源:www.chinab4c.com 作者:ecshop专家



楼下果然是高手啊

回答:


这个有点麻烦,
修改lib_order.php文件的get_cart_goods()函数部分
  1. $goods_thumb = $GLOBALS['db']->getOne("SELECT `goods_thumb` FROM " . $GLOBALS['ecs']->table('goods') . " WHERE `goods_id`='{$row['goods_id']}'");
  2. $row['goods_thumb'] = get_image_path($row['goods_id'], $goods_thumb, true);
复制代码
修改为
  1. $goods_thumb = $GLOBALS['db']->getRow("SELECT `goods_thumb`,`goods_brief` FROM " . $GLOBALS['ecs']->table('goods') . " WHERE `goods_id`='{$row['goods_id']}'");
  2. $row['goods_thumb'] = get_image_path($row['goods_id'], $goods_thumb['goods_thumb'], true);
  3. $row['goods_brief']=$goods_thumb['goods_brief'];
复制代码


模板中调用:
{$goods.goods_brief}