您现在的位置是:首页 > 教程 > ecshop商城教程ecshop商城教程

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

芷蕊2023-11-25 21:18:51ecshop商城教程已有人查阅

导读1、这里说的商品简单描述,不是商品的详细信息,而是后台编辑商品时在“其他信息”标签栏填写的那个“商品简单描述”,即goods_brief字段

1、这里说的商品简单描述,不是商品的详细信息,而是后台编辑商品时在“其他信息”标签栏填写的那个“商品简单描述”,即goods_brief字段
2、修改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'];
3、在模板文件(flow.dwt)合适位置调用即可:
{$goods.goods_brief}

本文标签:

很赞哦! ()

留言与评论 (共有 条评论)
验证码:

本栏推荐

相关标签