ecshop团购商品调用商品的原价及详细信息

  • 橘子浪人
  • 2012-11-2 09:27
  • lij2960
  • 阅读(3716)
  • 评论(0)
  • 摘要: 找到文件:/includes/lib_goods.php 找到函数:
    找到文件:/includes/lib_goods.php

    找到函数:

    [代码]php代码:

    function group_buy_info($group_buy_id, $current_num = 0)

    再函数的结尾处看到这样一段话:

    [代码]php代码:

    $group_buy['start_time'] = $group_buy['formated_start_date'];
        $group_buy['end_time'] = $group_buy['formated_end_date'];

    再起下方加入这样一段话:
        

    [代码]php代码:

        //调用团购商品原价
        $group_buy['shop_price'] = $GLOBALS['db']->getOne("select shop_price from ecs_goods where goods_id=".$group_buy['goods_id']);
        
        //调用商品的详细信息
        $group_buy['goods_desc'] = $GLOBALS['db']->getOne("select goods_desc from ecs_goods where goods_id=".$group_buy['goods_id']);

    找到模板文件:group_buy_goods.dwt

    通过这样调用原价:{$group_buy.shop_price}

    通过这样调用商品的描述:{$group_buy.goods_desc}

    PHP技术交流QQ群:422137578

    除非注明,文章均为 PHP二次开发 原创,转载请注明本文地址:http://www.php2.cc/article-280-1.html

    相关阅读

    最新评论

    用户名:  *

    邮 箱:  *

    网 址: 注意加上“http://”哦!