在关联商品、买过还买过商品等标签调用消息描述,高人来看看我错在哪里为什么无法实现
2016-07-07 16:13 来源:www.chinab4c.com 作者:ecshop专家
首先修改goods.php 在SQL查询中添加g.goods_desc $sql = 'SELECT g.goods_id, g.goods_name, g.goods_desc, g.goods_thumb, g.goods_img, g.shop_price AS org_price, ' . 下面再添加$arr[$row['goods_id']]['goods_desc']= $row['goods_desc']; $arr[$row['goods_id']]['goods_id']= $row['goods_id']; $arr[$row['goods_id']]['goods_desc']= $row['goods_desc']; $arr[$row['goods_id']]['short_name']= $GLOBALS['_CFG']['goods_name_length'] > 0 ? sub_str($row['goods_name'], $GLOBALS['_CFG']['goods_name_length']) : $row['goods_name']; $arr[$row['goods_id']]['goods_thumb']= get_image_path($row['goods_id'], $row['goods_thumb'], true); $arr[$row['goods_id']]['goods_img'] = get_image_path($row['goods_id'], $row['goods_img']); $arr[$row['goods_id']]['market_price'] = price_format($row['market_price']); $arr[$row['goods_id']]['shop_price']= price_format($row['shop_price']); 然后在goods_attrlinked.lbi插入{$linked_goods_.goods_desc|escape:html} 为什么就是调不出来呢?高人们告诉我到底哪部做错了..... |
回答:
我也不懂这个,看见这样的代码,晕了。 |
1# Emre1983 goods.php 是對的~ 只是你放錯模板檔案了... 請用下面的檔名查找 goods.dwt ,就能知道分頁的調用順序了... EX: 關聯商品: goods_related.lbi {$releated_goods_data.goods_desc|escape:html} 買過還買過商品: bought_goods.lbi{$bought_goods_data.goods_desc|escape:html} |
1# Emre1983 大哥,可是我bought_goods也一样调用不出来,应该还是方法错误 |
最近更新
常用插件
- ecshop订单聚合插件
ecshop订单聚合插件,主要是为了方便ecshop中订单产品到货情况的分析和...
- ecshop没登陆情况下订单查
ecshop没登陆情况下订单查询插件,主要是针对ecshop在没有登陆的情况下...
- ecshop注册审核插件
ecshop插件介绍:ecshop会员注册审核插件,主要是在前台提供给注册的时候...
- ecshop的oss插件
ecshop的oss插件免费共享了,oss,ecshoposs...
- ecshop虚拟发货插件
ecshop虚拟发货插件介绍: ecshop虚拟发货插件,主要为了通过后台手动录...
ecshop热门问答
ecshop热门资料
ecshop409
ecshop下拉
ecshop市场
ecshopopening
ecshop会员注册送红包
ecshop空白处
ecshop购物流程显示重量
ecshop使用心得
ecshopsport
ecshopECMALL一键登录
ecshop图片错位
ecshopifelse
ecshopsecond
ecshopExplorer
ecshop龌龊
ecshopRCPT
ecshop字段
ecshop油画
ecshop什么
ecshop请示
ecshop不方便
ecshop消费者
ecshop模板空白
ecshop身份证号码
ecshop说明性
ecshopdwt
ecshop每行
ecshopEChome
ecshop引荐
ecshop电机