경로 및 전체테이블명 변경
This commit is contained in:
@ -9,7 +9,7 @@ if ($token && get_session("ss_token") == $token) {
|
||||
alert_close("토큰 에러");
|
||||
}
|
||||
|
||||
$od = sql_fetch(" select * from $g4[yc4_order_table] where od_id = '$od_id' and on_uid = '$on_uid' and mb_id = '$member[mb_id]' ");
|
||||
$od = sql_fetch(" select * from $g4[shop_order_table] where od_id = '$od_id' and on_uid = '$on_uid' and mb_id = '$member[mb_id]' ");
|
||||
|
||||
if (!$od[od_id]) {
|
||||
alert("존재하는 주문이 아닙니다.");
|
||||
@ -23,12 +23,12 @@ if (($od[od_temp_bank] > 0 && $od[od_receipt_bank] == 0) ||
|
||||
}
|
||||
|
||||
// 장바구니 자료 취소
|
||||
sql_query(" update $g4[yc4_cart_table] set ct_status = '취소' where on_uid = '$on_uid' ");
|
||||
sql_query(" update $g4[shop_cart_table] set ct_status = '취소' where on_uid = '$on_uid' ");
|
||||
|
||||
// 주문 취소
|
||||
$cancel_memo = addslashes($cancel_memo);
|
||||
//sql_query(" update $g4[yc4_order_table] set od_temp_point = '0', od_receipt_point = '0', od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - {$g4['time_ymdhis']} (취소이유 : {$cancel_memo})\") where on_uid = '$on_uid' ");
|
||||
sql_query(" update $g4[yc4_order_table] set od_send_cost = '0', od_temp_point = '0', od_receipt_point = '0', od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - {$g4['time_ymdhis']} (취소이유 : {$cancel_memo})\") where on_uid = '$on_uid' ");
|
||||
//sql_query(" update $g4[shop_order_table] set od_temp_point = '0', od_receipt_point = '0', od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - {$g4['time_ymdhis']} (취소이유 : {$cancel_memo})\") where on_uid = '$on_uid' ");
|
||||
sql_query(" update $g4[shop_order_table] set od_send_cost = '0', od_temp_point = '0', od_receipt_point = '0', od_shop_memo = concat(od_shop_memo,\"\\n주문자 본인 직접 취소 - {$g4['time_ymdhis']} (취소이유 : {$cancel_memo})\") where on_uid = '$on_uid' ");
|
||||
|
||||
// 주문취소 회원의 포인트를 되돌려 줌
|
||||
if ($od[od_receipt_point] > 0) {
|
||||
|
||||
Reference in New Issue
Block a user