ecshop源码程序在购物车页面显示出商品的描述

By:Anna Scaret
1 min read2021-09-22 10:32:29

ecshop商城开源系统搭建的商城,当会员选中商品到购物车之后就看不到商品的描述了,一般在商品详情页才可以看到,可是现在会员一般购买商品都会对比之后才会下单,因此很多会员提出意见使用php空间搭建的商城最好是在购物车页面也有商品信息,这样会员可以在结算之前再次确认参数是否符合自己的要求,可是这款程序默认是没有这个功能的哦,要怎么去解决这个问题呢?高速度
主机小编经过分析调试总算解决了,下面来分享下方法吧。1:首先登陆高速度
主机会员中心找到主机管理--控制面板,如下图1:2:点击控制面板—进入文件管理,如下图2:
3:点击进入文件管理—找到public_html根目录。如下图3:
4:找到includes/lib_order.php文件如下图4:
点击进去找到以下文件:将
$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'];如下图:5:


本文地址:https://www.gaosudu.com/ecshop/27261.html