g4를 g5로 변경
This commit is contained in:
@ -11,24 +11,24 @@ else {
|
||||
}
|
||||
|
||||
if (get_cart_count($tmp_cart_id) == 0)
|
||||
alert('장바구니가 비어 있습니다.', G4_SHOP_URL.'/cart.php');
|
||||
alert('장바구니가 비어 있습니다.', G5_SHOP_URL.'/cart.php');
|
||||
|
||||
$g4['title'] = '주문서 작성';
|
||||
$g5['title'] = '주문서 작성';
|
||||
|
||||
include_once(G4_MSHOP_PATH.'/_head.php');
|
||||
include_once(G5_MSHOP_PATH.'/_head.php');
|
||||
|
||||
// 새로운 주문번호 생성
|
||||
$od_id = get_uniqid();
|
||||
set_session('ss_order_id', $od_id);
|
||||
|
||||
$s_cart_id = $tmp_cart_id;
|
||||
$order_action_url = G4_HTTPS_MSHOP_URL.'/orderformupdate.php';
|
||||
$order_action_url = G5_HTTPS_MSHOP_URL.'/orderformupdate.php';
|
||||
if (file_exists('./settle_'.$default['de_card_pg'].'.inc.php')) {
|
||||
include './settle_'.$default['de_card_pg'].'.inc.php';
|
||||
}
|
||||
|
||||
// 결제등록 요청시 사용할 입금마감일
|
||||
$ipgm_date = date("Ymd", (G4_SERVER_TIME + 86400 * 5));
|
||||
$ipgm_date = date("Ymd", (G5_SERVER_TIME + 86400 * 5));
|
||||
$tablet_size = "1.0"; // 화면 사이즈 조정 - 기기화면에 맞게 수정(갤럭시탭,아이패드 - 1.85, 스마트폰 - 1.0)
|
||||
?>
|
||||
|
||||
@ -70,11 +70,11 @@ ob_start();
|
||||
b.ca_id2,
|
||||
b.ca_id3,
|
||||
b.it_notax
|
||||
from {$g4['shop_cart_table']} a left join {$g4['shop_item_table']} b on ( a.it_id = b.it_id )
|
||||
from {$g5['shop_cart_table']} a left join {$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']) {
|
||||
$ctime = date('Y-m-d H:i:s', G4_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
|
||||
$ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - ($default['de_cart_keep_term'] * 86400));
|
||||
$sql .= " and a.ct_time > '$ctime' ";
|
||||
}
|
||||
$sql .= " group by a.it_id ";
|
||||
@ -95,7 +95,7 @@ ob_start();
|
||||
$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 {$g4['shop_cart_table']}
|
||||
from {$g5['shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
and od_id = '$s_cart_id' ";
|
||||
$sum = sql_fetch($sql);
|
||||
@ -148,10 +148,10 @@ ob_start();
|
||||
$cp_count = 0;
|
||||
|
||||
$sql = " select cp_id
|
||||
from {$g4['shop_coupon_table']}
|
||||
from {$g5['shop_coupon_table']}
|
||||
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||
and cp_start <= '".G4_TIME_YMD."'
|
||||
and cp_end >= '".G4_TIME_YMD."'
|
||||
and cp_start <= '".G5_TIME_YMD."'
|
||||
and cp_end >= '".G5_TIME_YMD."'
|
||||
and cp_minimum <= '$sell_price'
|
||||
and (
|
||||
( cp_method = '0' and cp_target = '{$row['it_id']}' )
|
||||
@ -199,7 +199,7 @@ ob_start();
|
||||
|
||||
if ($i == 0) {
|
||||
//echo '<tr><td colspan="'.$colspan.'" class="empty_table">장바구니에 담긴 상품이 없습니다.</td></tr>';
|
||||
alert('장바구니가 비어 있습니다.', G4_SHOP_URL.'/cart.php');
|
||||
alert('장바구니가 비어 있습니다.', G5_SHOP_URL.'/cart.php');
|
||||
} else {
|
||||
// 배송비 계산
|
||||
$send_cost = get_sendcost($tot_sell_price, $s_cart_id);
|
||||
@ -238,9 +238,9 @@ ob_end_clean();
|
||||
?>
|
||||
|
||||
<!-- 거래등록 하는 kcp 서버와 통신을 위한 스크립트-->
|
||||
<script src="<?php echo G4_MSHOP_URL; ?>/kcp/approval_key.js"></script>
|
||||
<script src="<?php echo G5_MSHOP_URL; ?>/kcp/approval_key.js"></script>
|
||||
|
||||
<form name="sm_form" method="POST" action="<?php echo G4_MSHOP_URL; ?>/kcp/order_approval_form.php">
|
||||
<form name="sm_form" method="POST" action="<?php echo G5_MSHOP_URL; ?>/kcp/order_approval_form.php">
|
||||
<input type="hidden" name="good_name" value="<?php echo $goods; ?>">
|
||||
<input type="hidden" name="good_mny" value="<?php echo $tot_price ?>" >
|
||||
<input type="hidden" name="buyr_name" value="">
|
||||
@ -363,7 +363,7 @@ ob_end_clean();
|
||||
<th scope="row"><label for="od_hp">핸드폰</label></th>
|
||||
<td><input type="text" name="od_hp" value="<?php echo $member['mb_hp']; ?>" id="od_hp" class="frm_input" maxlength="20"></td>
|
||||
</tr>
|
||||
<?php $zip_href = G4_BBS_URL.'/zip.php?frm_name=forderform&frm_zip1=od_zip1&frm_zip2=od_zip2&frm_addr1=od_addr1&frm_addr2=od_addr2'; ?>
|
||||
<?php $zip_href = G5_BBS_URL.'/zip.php?frm_name=forderform&frm_zip1=od_zip1&frm_zip2=od_zip2&frm_addr1=od_addr1&frm_addr2=od_addr2'; ?>
|
||||
<tr>
|
||||
<th scope="row">주소</th>
|
||||
<td>
|
||||
@ -428,7 +428,7 @@ ob_end_clean();
|
||||
$sep = chr(30);
|
||||
// 기본배송지
|
||||
$sql = " select *
|
||||
from {$g4['shop_order_address_table']}
|
||||
from {$g5['shop_order_address_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
and ad_default = '1' ";
|
||||
$row = sql_fetch($sql);
|
||||
@ -440,7 +440,7 @@ ob_end_clean();
|
||||
|
||||
// 최근배송지
|
||||
$sql = " select *
|
||||
from {$g4['shop_order_address_table']}
|
||||
from {$g5['shop_order_address_table']}
|
||||
where mb_id = '{$member['mb_id']}'
|
||||
order by ad_id desc
|
||||
limit 2 ";
|
||||
@ -458,7 +458,7 @@ ob_end_clean();
|
||||
<th scope="row">배송지선택</th>
|
||||
<td>
|
||||
<?php echo $addr_list; ?>
|
||||
<a href="<?php echo G4_SHOP_URL; ?>/orderaddress.php" id="order_address" class="btn_frmline">배송지목록</a>
|
||||
<a href="<?php echo G5_SHOP_URL; ?>/orderaddress.php" id="order_address" class="btn_frmline">배송지목록</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -480,7 +480,7 @@ ob_end_clean();
|
||||
<th scope="row"><label for="od_b_hp">핸드폰</label></th>
|
||||
<td><input type="text" name="od_b_hp" id="od_b_hp" class="frm_input" maxlength="20"></td>
|
||||
</tr>
|
||||
<?php $zip_href = G4_BBS_URL.'/zip.php?frm_name=forderform&frm_zip1=od_b_zip1&frm_zip2=od_b_zip2&frm_addr1=od_b_addr1&frm_addr2=od_b_addr2'; ?>
|
||||
<?php $zip_href = G5_BBS_URL.'/zip.php?frm_name=forderform&frm_zip1=od_b_zip1&frm_zip2=od_b_zip2&frm_addr1=od_b_addr1&frm_addr2=od_b_addr2'; ?>
|
||||
<tr>
|
||||
<th scope="row">주소</th>
|
||||
<td id="sod_frm_addr">
|
||||
@ -525,11 +525,11 @@ ob_end_clean();
|
||||
if($is_member) {
|
||||
// 주문쿠폰
|
||||
$sql = " select cp_id
|
||||
from {$g4['shop_coupon_table']}
|
||||
from {$g5['shop_coupon_table']}
|
||||
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||
and cp_method = '2'
|
||||
and cp_start <= '".G4_TIM_YMD."'
|
||||
and cp_end >= '".G4_TIME_YMD."' ";
|
||||
and cp_start <= '".G5_TIM_YMD."'
|
||||
and cp_end >= '".G5_TIME_YMD."' ";
|
||||
$res = sql_query($sql);
|
||||
|
||||
for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
@ -542,11 +542,11 @@ ob_end_clean();
|
||||
if($send_cost > 0) {
|
||||
// 배송비쿠폰
|
||||
$sql = " select cp_id
|
||||
from {$g4['shop_coupon_table']}
|
||||
from {$g5['shop_coupon_table']}
|
||||
where mb_id IN ( '{$member['mb_id']}', '전체회원' )
|
||||
and cp_method = '3'
|
||||
and cp_start <= '".G4_TIM_YMD."'
|
||||
and cp_end >= '".G4_TIME_YMD."' ";
|
||||
and cp_start <= '".G5_TIM_YMD."'
|
||||
and cp_end >= '".G5_TIME_YMD."' ";
|
||||
$res = sql_query($sql);
|
||||
|
||||
for($k=0; $cp=sql_fetch_array($res); $k++) {
|
||||
@ -759,7 +759,7 @@ ob_end_clean();
|
||||
<input type="hidden" name="site_cd" value="SR<?php echo $default['de_kcp_mid']; ?>">
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align='center'><img src="<?php echo G4_SHOP_URL; ?>/img/marks_escrow/escrow_foot.gif" width="290" height="92" border="0" usemap="#Map"></td>
|
||||
<td align='center'><img src="<?php echo G5_SHOP_URL; ?>/img/marks_escrow/escrow_foot.gif" width="290" height="92" border="0" usemap="#Map"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style='line-height:150%;'>
|
||||
@ -1485,5 +1485,5 @@ $(function(){
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G4_MSHOP_PATH.'/_tail.php');
|
||||
include_once(G5_MSHOP_PATH.'/_tail.php');
|
||||
?>
|
||||
Reference in New Issue
Block a user