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

@ -7,7 +7,7 @@ if($is_guest)
// 상품정보
$it_id = $_POST['it_id'];
$sw_direct = $_POST['sw_direct'];
$sql = " select it_id, ca_id, ca_id2, ca_id3 from {$g5['shop_item_table']} where it_id = '$it_id' ";
$sql = " select it_id, ca_id, ca_id2, ca_id3 from {$g5['g5_shop_item_table']} where it_id = '$it_id' ";
$it = sql_fetch($sql);
// 상품 총 금액
@ -17,7 +17,7 @@ else
$cart_id = get_session('ss_cart_id');
$sql = " select SUM( IF(io_type = '1', io_price * ct_qty, (ct_price + io_price) * ct_qty)) as sum_price
from {$g5['shop_cart_table']}
from {$g5['g5_shop_cart_table']}
where od_id = '$cart_id'
and it_id = '$it_id' ";
$ct = sql_fetch($sql);
@ -25,7 +25,7 @@ $item_price = $ct['sum_price'];
// 쿠폰정보
$sql = " select *
from {$g5['shop_coupon_table']}
from {$g5['g5_shop_coupon_table']}
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
and cp_start <= '".G5_TIME_YMD."'
and cp_end >= '".G5_TIME_YMD."'