请教如何实现付款后更改为确认收货状态

2016-07-07 14:55 来源:www.chinab4c.com 作者:ecshop专家

请问各位高手,如何实现实现付款后更改为确认收货状态(产品为虚拟服务产品,不需要确认收货),需要更改哪个页面的哪些内容,急盼回访,谢谢!

回答:
虚拟产品充值成功后应该有回执信息,得到正确地回执后,可以更改为确认收货状态

找到includes/lib_payment.php文件里的order_paid()函数,把函数内的所有

找到
  1. /* 修改订单状态为已付款 */
  2. $sql = 'UPDATE ' . $GLOBALS['ecs']->table('order_info') .
  3. " SET order_status = '" . OS_CONFIRMED . "', " .
  4. " confirm_time = '" . gmtime() . "', " .
  5. " pay_status = '$pay_status', " .
  6. " pay_time = '".gmtime()."', " .
  7. " money_paid = order_amount," .
  8. " order_amount = 0 ".
  9. "WHERE order_id = '$order_id'";
  10. $GLOBALS['db']->query($sql);
复制代码
改成
  1. /* 修改订单状态为已付款 */
  2. $sql = 'UPDATE ' . $GLOBALS['ecs']->table('order_info') .
  3. " SET order_status = '" . OS_CONFIRMED . "', shipping_status='" . SS_RECEIVED . "', " .
  4. " confirm_time = '" . gmtime() . "', " .
  5. " pay_status = '$pay_status', " .
  6. " pay_time = '".gmtime()."', " .
  7. " money_paid = order_amount," .
  8. " order_amount = 0 ".
  9. "WHERE order_id = '$order_id'";
  10. $GLOBALS['db']->query($sql);
复制代码