php专区

 首页 > php专区 > PHP应用 > CMS建站 > ECSHOP列表页中显示商品货号的方法 - ecshop

ECSHOP列表页中显示商品货号的方法 - ecshop

分享到:
【字体:
导读:
          首先打开ecshop系统文件 /category.php 文件找到:$sql = #39;SELECT g.goods_id, g.goods_name,g.goods_name_style,g.market_price,g.is_new,g.is_best,g.is_hot,g.shop_price AS org_pri......

ECSHOP列表页中显示商品货号的方法

首先打开ecshop系统文件  /category.php 文件

找到:$sql = 'SELECT g.goods_id, g.goods_name,g.goods_name_style,g.market_price,g.is_new,g.is_best,g.is_hot,g.shop_price AS org_price,' .

修改为:$sql = 'SELECT g.goods_id, g.goods_name,g.goods_sn, g.goods_name_style, g.market_price, g.is_new, g.is_best, g.is_hot, g.shop_price AS org_price, ' .

继续往下找,找到:

$arr[$row['goods_id']]['name'] = $row['goods_name'];

在它下面添加:

$arr[$row['goods_id']]['goods_sn']  = $row['goods_sn'];//开源软件:phpfensi.com

然后就可以在ecshop模板文件中调用商品货号了,打开模板文件 /themes/default/library/goods_list.lbi,

调用方法如下:{$lang.goods_sn}{$goods.goods_sn}

分享到:
在ecshop库文件里面调用另外的库文件 - e...
在ecshop库文件里面调用另外的库文件 大家在做ecshop二次开发的时候,肯定会需要用到这样的功能,就是在库文件里面调用其他的库文件,这里的库文件指的是ecshop模板目录下面library目录下的.lbi的文件,那怎么调用呢? 方法一: 在库文件里面增加php代码来调用,按下面格式把里面的文件目录和名...
ecshop如何把编辑器FCKeditor更换成Kinde...
ecshop如何把编辑器FCKeditor更换成Kindeditor ecshop如何把编辑器FCKeditor更换成Kindeditor,kindeditor是个不错的编辑器. 1、首先下载kindeitor最新版放到includes目录 2、删除 admin/goods.php 大约107行: include_once(ROOT_PATH . 'includes/fckeditor/fckeditor.php'); /...
  •         php迷,一个php技术的分享社区,专属您自己的技术摘抄本、收藏夹。
  • 在这里……