ecshop购物车页面显示商品简单描述

1、修改lib_order.php文件的get_cart_goods()函数部分将

$goods_thumb = $GLOBALS[‘db’]->getOne("SELECT `goods_thumb` FROM " . $GLOBALS[‘ecs’]->table(‘goods’) . " WHERE `goods_id`='{$row[‘goods_id’]}’");$row[‘goods_thumb’] = get_image_path($row[‘goods_id’], $goods_thumb, true);

修改为

$goods_thumb = $GLOBALS[‘db’]->getRow("SELECT `goods_thumb`,`goods_brief` FROM " . $GLOBALS[‘ecs’]->table(‘goods’) . " WHERE `goods_id`='{$row[‘goods_id’]}’");$row[‘goods_thumb’] = get_image_path($row[‘goods_id’], $goods_thumb[‘goods_thumb’], true);$row[‘goods_brief’]=$goods_thumb[‘goods_brief’];

2、在ECSHOP模板文件(flow.dwt)合适的位置调用就可以啦:{$goods.goods_brief}

,这些那些,我们是多么的了然于心,却依然,没有任何办法。

ecshop购物车页面显示商品简单描述

相关文章:

你感兴趣的文章:

标签云: