求ECSHOP 2.7.2商品点击数修改!

2016-07-07 15:13 来源:www.chinab4c.com 作者:ecshop专家

请知道的帮帮忙,我看网上发的代码,复制到admin中的goods.php中以后,在后台点“添加新商品”时就无法显示了!求2.7.2版的添加代码!
现在我把我的代码贴出来,请知道的,指导下,要修改哪里!
  1. /* 入库 */
  2. if ($is_insert)
  3. {
  4. if ($code == '')
  5. {
  6. $sql = "INSERT INTO " . $ecs->table('goods') . " (goods_name, goods_name_style, goods_sn, " .
  7. "cat_id, brand_id, shop_price, market_price, is_promote, promote_price, " .
  8. "promote_start_date, promote_end_date, goods_img, goods_thumb, original_img, keywords, goods_brief, " .
  9. "seller_note, goods_weight, goods_number, warn_number, integral, give_integral, is_best, is_new, is_hot, " .
  10. "is_on_sale, is_alone_sale, is_shipping, goods_desc, add_time, last_update, goods_type, rank_integral, suppliers_id)" .
  11. "VALUES ('$_POST[goods_name]', '$goods_name_style', '$goods_sn', '$catgory_id', " .
  12. "'$brand_id', '$shop_price', '$market_price', '$is_promote','$promote_price', ".
  13. "'$promote_start_date', '$promote_end_date', '$goods_img', '$goods_thumb', '$original_img', ".
  14. "'$_POST[keywords]', '$_POST[goods_brief]', '$_POST[seller_note]', '$goods_weight', '$goods_number',".
  15. " '$warn_number', '$_POST[integral]', '$give_integral', '$is_best', '$is_new', '$is_hot', '$is_on_sale', '$is_alone_sale', $is_shipping, ".
  16. " '$_POST[goods_desc]', '" . gmtime() . "', '". gmtime() ."', '$goods_type', '$rank_integral', '$suppliers_id')";
  17. }
  18. else
  19. {
  20. $sql = "INSERT INTO " . $ecs->table('goods') . " (goods_name, goods_name_style, goods_sn, " .
  21. "cat_id, brand_id, shop_price, market_price, is_promote, promote_price, " .
  22. "promote_start_date, promote_end_date, goods_img, goods_thumb, original_img, keywords, goods_brief, " .
  23. "seller_note, goods_weight, goods_number, warn_number, integral, give_integral, is_best, is_new, is_hot, is_real, " .
  24. "is_on_sale, is_alone_sale, is_shipping, goods_desc, add_time, last_update, goods_type, extension_code, rank_integral)" .
  25. "VALUES ('$_POST[goods_name]', '$goods_name_style', '$goods_sn', '$catgory_id', " .
  26. "'$brand_id', '$shop_price', '$market_price', '$is_promote','$promote_price', ".
  27. "'$promote_start_date', '$promote_end_date', '$goods_img', '$goods_thumb', '$original_img', ".
  28. "'$_POST[keywords]', '$_POST[goods_brief]', '$_POST[seller_note]', '$goods_weight', '$goods_number',".
  29. " '$warn_number', '$_POST[integral]', '$give_integral', '$is_best', '$is_new', '$is_hot', 0, '$is_on_sale', '$is_alone_sale', $is_shipping, ".
  30. " '$_POST[goods_desc]', '" . gmtime() . "', '". gmtime() ."', '$goods_type', '$code', '$rank_integral')";
  31. }
  32. }
复制代码

回答:
看不明白。这个是要增加可以自动修改点击数吗?像这个不经常需要修改的数据,你可以用数据库软件来修改的,为了个不常用的功能去做二次开发,不值得。

这个可以直接做到列表里面去实现。

没有搞明白




怎么在列表中实现???