在关联商品、买过还买过商品等标签调用消息描述,高人来看看我错在哪里为什么无法实现

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

goods.php 是對的~ 只是你放錯模板檔案了... 請用下面的檔名查找 goods.dwt ,就能知道分頁的調用順序了...

EX:
關聯商品: goods_related.lbi
{$releated_goods_data.goods_desc|escape:html} ...
denise 发表于 2010-4-8 19:59


大哥,可是我bought_goods也一样调用不出来,应该还是方法错误