} else { $indata['type'] = 'member'; } $member->update($indata); } } } //--刪除 if ($_GET["del"] && $_GET["del"] != '') { if ($shopping_car->car_remove($_GET["del"])) { linkto('?list=1'); } } //--付款 if ($_GET["payorder"]) { $pay_bill = $shopping_car->getorder(" where id='" . $_GET["payorder"] . "'"); if ($pay_bill["pay_status"] != '1') { $temp = $shopping_car->esun_pay_send($pay_bill, '回傳路由'); } else { alert('此筆交易已經成功付款了,無需再次付款!!', -1); exit; } } //--商品退貨 if ($_GET["back_item"]) { if ($shopping_car->back_item($_GET["back_item"])) { $temp_str = '商品退貨申請成功!!'; } else { $temp_str = $shopping_car->erromsg; } if ($_GET["ajax"]) {
A03 超商取貨新訂單,使用 輕鬆袋或迷你袋 (不回覆sn_id,不需在ezShip上確認訂單 ,需登錄編號) A04 超商取貨新訂單,使用 輕鬆袋或迷你袋 (不回覆sn_id,需在ezShip上確認訂單, 需登錄編號) A05 宅配新訂單,不需在ezShip上確認訂單,可直接印單 (回覆sn_id,10碼數字) */ $temp_str .= '<input type="hidden" name="order_status" value="A05">'; //1 取貨付款 3 取貨不付款 $temp_str .= '<input type="hidden" name="order_type" value="1">'; //1 取貨付款 3 取貨不付款 $temp_str .= '<input type="hidden" name="su_id" value="' . $this->account . '">'; $temp_str = '<form id="form1" method="get" action="' . $this->sale_url . '">' . $temp_str . '</form><script>document.forms.form1.submit();</script>'; echo iconv("UTF-8", "Big5", $temp_str); } } $sale = new ezship(account); $sale->isshop(); //$sale->istake(); if ($_REQUEST["stCode"]) { //--紀錄商店資訊 $shopping_car = new order($conn, PREFIX . "shopping_car", PREFIX . "shopping_car_list", PREFIX . "products"); $order = $shopping_car->getorder(" where order_no='" . $_REQUEST['processID'] . "'"); $indata['memo'] = '店面資訊:' . $_REQUEST['stCate'] . ' ' . $_REQUEST['stCode'] . ' ' . $_REQUEST['stName'] . ' ' . $_REQUEST['stTel'] . ' ' . $_REQUEST['stAddr'] . ' '; $shopping_car->update($indata, $order['id']); $sale->data_send($_REQUEST); exit; } if ($_POST) { $sale->data_send($_POST); exit; }
<?php $temp_nowurl = explode('includes', __FILE__); include_once $temp_nowurl[0] . "includes/main_inc.php"; if ($_GET['sn_id'] !== '00000000') { if (strlen($_GET['sn_id']) > 8) { //-判斷是否取貨付款 $shopping_car = new order($conn, PREFIX . "shopping_car", PREFIX . "shopping_car_list", PREFIX . "products"); $shopping_car->paycheck($_GET['order_id']); alert('訂單 ' . $_GET['order_id'] . ' 已完成取貨付款申請!!', ''); } else { //--超商取貨 $shopping_car = new order($conn, PREFIX . "shopping_car", PREFIX . "shopping_car_list", PREFIX . "products"); $order = $shopping_car->getorder(" where order_no='" . $_GET['order_id'] . "'"); $indata['MerchantNumber'] = '1'; $shopping_car->update($indata, $order['id']); //$shopping_car->paycheck($_GET['order_id']); alert('訂單' . $_GET['order_id'] . '已完成超商取貨申請!!\\r\\n 到店編號 [ ' . $_GET['sn_id'] . ' ]', '/'); } }