shop 테이블명 g5_shop 으로 변경

This commit is contained in:
chicpro
2013-09-13 16:23:29 +09:00
parent fbe71caa80
commit 90ee89b4f5
217 changed files with 933 additions and 1624 deletions

View File

@ -9,7 +9,7 @@ if ($token && get_session("ss_token") == $token) {
alert_close("토큰 에러");
}
$od = sql_fetch(" select * from {$g5['shop_order_table']} where od_id = '$od_id' and mb_id = '{$member['mb_id']}' ");
$od = sql_fetch(" select * from {$g5['g5_shop_order_table']} where od_id = '$od_id' and mb_id = '{$member['mb_id']}' ");
if (!$od['od_id']) {
alert("존재하는 주문이 아닙니다.");
@ -18,7 +18,7 @@ if (!$od['od_id']) {
// 주문상품의 상태가 주문인지 체크
$sql = " select SUM(IF(ct_status = '주문', 1, 0)) as od_count2,
COUNT(*) as od_count1
from {$g5['shop_cart_table']}
from {$g5['g5_shop_cart_table']}
where od_id = '$od_id' ";
$ct = sql_fetch($sql);
@ -60,13 +60,13 @@ if($od['od_tno']) {
}
// 장바구니 자료 취소
sql_query(" update {$g5['shop_cart_table']} set ct_status = '취소' where od_id = '$od_id' ");
sql_query(" update {$g5['g5_shop_cart_table']} set ct_status = '취소' where od_id = '$od_id' ");
// 주문 취소
$cancel_memo = addslashes($cancel_memo);
$cancel_price = $od['od_misu'];
$sql = " update {$g5['shop_order_table']}
$sql = " update {$g5['g5_shop_order_table']}
set od_send_cost = '0',
od_send_cost2 = '0',
od_receipt_price = '0',