shop 테이블명 g5_shop 으로 변경
This commit is contained in:
@ -160,7 +160,7 @@ function get_intall_file()
|
||||
b.ca_id2,
|
||||
b.ca_id3,
|
||||
b.it_notax
|
||||
from {$g5['shop_cart_table']} a left join {$g5['shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
where a.od_id = '$s_cart_id'
|
||||
and a.ct_select = '1' ";
|
||||
if($default['de_cart_keep_term']) {
|
||||
@ -185,7 +185,7 @@ function get_intall_file()
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
||||
SUM(ct_point * ct_qty) as point,
|
||||
SUM(ct_qty) as qty
|
||||
from {$g5['shop_cart_table']}
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
and od_id = '$s_cart_id' ";
|
||||
$sum = sql_fetch($sql);
|
||||
@ -236,7 +236,7 @@ function get_intall_file()
|
||||
$cp_count = 0;
|
||||
|
||||
$sql = " select cp_id
|
||||
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."'
|
||||
@ -664,7 +664,7 @@ function get_intall_file()
|
||||
$sep = chr(30);
|
||||
// 기본배송지
|
||||
$sql = " select *
|
||||
from {$g5['shop_order_address_table']}
|
||||
from {$g5['g5_shop_order_address_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
and ad_default = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
@ -676,7 +676,7 @@ function get_intall_file()
|
||||
|
||||
// 최근배송지
|
||||
$sql = " select *
|
||||
from {$g5['shop_order_address_table']}
|
||||
from {$g5['g5_shop_order_address_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
order by ad_id desc
|
||||
limit 2 ";
|
||||
@ -763,7 +763,7 @@ function get_intall_file()
|
||||
if($is_member) {
|
||||
// 주문쿠폰
|
||||
$sql = " select cp_id
|
||||
from {$g5['shop_coupon_table']}
|
||||
from {$g5['g5_shop_coupon_table']}
|
||||
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||
and cp_method = '2'
|
||||
and cp_start <= '".G5_TIM_YMD."'
|
||||
@ -780,7 +780,7 @@ function get_intall_file()
|
||||
if($send_cost > 0) {
|
||||
// 배송비쿠폰
|
||||
$sql = " select cp_id
|
||||
from {$g5['shop_coupon_table']}
|
||||
from {$g5['g5_shop_coupon_table']}
|
||||
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||
and cp_method = '3'
|
||||
and cp_start <= '".G5_TIM_YMD."'
|
||||
|
||||
Reference in New Issue
Block a user