기타 추적되지 않는 파일들..
This commit is contained in:
@ -130,13 +130,13 @@
|
||||
</wsdl:binding>
|
||||
<wsdl:service name="PayService">
|
||||
<wsdl:port name="PayServiceHttpSoap11Endpoint" binding="ns:PayServiceSoap11Binding">
|
||||
<soap:address location="https://testsmpay.kcp.co.kr/services/KCPPaymentService"/>
|
||||
<soap:address location="https://devpggw.kcp.co.kr:8100/services/KCPPaymentService"/>
|
||||
</wsdl:port>
|
||||
<wsdl:port name="PayServiceHttpSoap12Endpoint" binding="ns:PayServiceSoap12Binding">
|
||||
<soap12:address location="https://testsmpay.kcp.co.kr/services/KCPPaymentService"/>
|
||||
<soap12:address location="https://devpggw.kcp.co.kr:8100/services/KCPPaymentService"/>
|
||||
</wsdl:port>
|
||||
<wsdl:port name="PayServiceHttpEndpoint" binding="ns:PayServiceHttpBinding">
|
||||
<http:address location="https://testsmpay.kcp.co.kr/services/KCPPaymentService"/>
|
||||
<http:address location="https://devpggw.kcp.co.kr:8100/services/KCPPaymentService"/>
|
||||
</wsdl:port>
|
||||
</wsdl:service>
|
||||
</wsdl:definitions>
|
||||
|
||||
@ -54,8 +54,8 @@ echo '<form name="forderform" method="post" action="'.$order_action_url.'" autoc
|
||||
|
||||
echo make_order_field($data, $exclude);
|
||||
|
||||
echo '<input type="hidden" name="res_cd" value="'.get_text($LGD_RESPCODE).'">'.PHP_EOL;
|
||||
echo '<input type="hidden" name="LGD_PAYKEY" value="'.get_text($LGD_PAYKEY).'">'.PHP_EOL;
|
||||
echo '<input type="hidden" name="res_cd" value="'.$LGD_RESPCODE.'">'.PHP_EOL;
|
||||
echo '<input type="hidden" name="LGD_PAYKEY" value="'.$LGD_PAYKEY.'">'.PHP_EOL;
|
||||
|
||||
echo '</form>'.PHP_EOL;
|
||||
?>
|
||||
|
||||
@ -167,7 +167,7 @@ function getFormObject() {
|
||||
<form method="post" name="LGD_PAYINFO" id="LGD_PAYINFO" action="">
|
||||
<?php
|
||||
foreach ($payReqMap as $key => $value) {
|
||||
echo'"<input type="hidden" name="'.get_text($key).'" id="'.get_text($key).'" value="'.get_text($value).'">';
|
||||
echo'"<input type="hidden" name="'.$key.'" id="'.$key.'" value="'.$value.'">';
|
||||
}
|
||||
?>
|
||||
</form>
|
||||
|
||||
@ -1,16 +1,6 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
// 테마에 list.php 있으면 include
|
||||
if(defined('G5_THEME_MSHOP_PATH')) {
|
||||
$theme_list_file = G5_THEME_MSHOP_PATH.'/list.php';
|
||||
if(is_file($theme_list_file)) {
|
||||
include_once($theme_list_file);
|
||||
return;
|
||||
}
|
||||
unset($theme_list_file);
|
||||
}
|
||||
|
||||
// 상품 리스트에서 다른 필드로 정렬을 하려면 아래의 배열 코드에서 해당 필드를 추가하세요.
|
||||
if( isset($sort) && ! in_array($sort, array('it_name', 'it_sum_qty', 'it_price', 'it_use_avg', 'it_use_cnt', 'it_update_time')) ){
|
||||
$sort='';
|
||||
|
||||
@ -64,13 +64,28 @@ ob_start();
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
|
||||
// 예약 관련
|
||||
if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
|
||||
$resv = sql_fetch("SELECT * FROM {$g5['g5_shop_cart_table']} WHERE ct_id = '{$row['ct_id']}' ");
|
||||
}
|
||||
|
||||
// 합계금액 계산 (예약상품일 경우 합계방식 변경)
|
||||
$price_calc = "((ct_price + io_price) * ct_qty)";
|
||||
if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1 && isset($resv['ct_types']) && $resv['ct_types'] == 1) {
|
||||
$price_calc = "((ct_price + io_price) * ct_qty * ct_date_d +
|
||||
(COALESCE(ct_user_pri1, 0) * COALESCE(ct_user_qty1, 0)) +
|
||||
(COALESCE(ct_user_pri2, 0) * COALESCE(ct_user_qty2, 0)) +
|
||||
(COALESCE(ct_user_pri3, 0) * COALESCE(ct_user_qty3, 0)))";
|
||||
}
|
||||
|
||||
// 합계금액 계산
|
||||
$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['g5_shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
and od_id = '$s_cart_id' ";
|
||||
$sql = "SELECT SUM(IF(io_type = 1, (io_price * ct_qty), $price_calc)) AS price,
|
||||
SUM(ct_point * ct_qty) AS point,
|
||||
SUM(ct_qty) AS qty
|
||||
FROM {$g5['g5_shop_cart_table']}
|
||||
WHERE it_id = '{$row['it_id']}'
|
||||
AND od_id = '$s_cart_id'";
|
||||
$sum = sql_fetch($sql);
|
||||
|
||||
if (!$goods)
|
||||
@ -95,9 +110,9 @@ ob_start();
|
||||
|
||||
$a1 = '<strong>';
|
||||
$a2 = '</strong>';
|
||||
$image_width = 80;
|
||||
$image_height = 80;
|
||||
$image = get_it_image($row['it_id'], $image_width, $image_height);
|
||||
$image_width = 60;
|
||||
$image_height = 60;
|
||||
$image = rb_it_image($row['it_id'], $image_width, $image_height);
|
||||
|
||||
$it_name = $a1 . stripslashes($row['it_name']) . $a2;
|
||||
$it_options = print_item_options($row['it_id'], $s_cart_id);
|
||||
@ -185,12 +200,23 @@ ob_start();
|
||||
<span class="total_img"><?php echo $image; ?></span>
|
||||
<div class="sod_opt"><?php echo $it_options; ?></div>
|
||||
<div class="li_mod" ><?php echo $cp_button; ?></div>
|
||||
|
||||
<?php
|
||||
//예약정보 로드
|
||||
if(isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
|
||||
if(isset($resv['ct_types']) && $resv['ct_types'] == 1) {
|
||||
include (G5_PATH.'/rb/rb.mod/reservation/info.inc.php');
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="li_prqty">
|
||||
<span class="prqty_price li_prqty_sp"><span>판매가 </span><?php echo number_format($row['ct_price']); ?></span>
|
||||
<span class="prqty_qty li_prqty_sp"><span>수량 </span><?php echo number_format($sum['qty']); ?></span>
|
||||
<?php if ((!isset($rb_item_res['res_is'])) || $rb_item_res['res_is'] != 1) { ?>
|
||||
<span class="prqty_sc li_prqty_sp"><span>배송비 </span><?php echo $ct_send_cost; ?></span>
|
||||
<?php } ?>
|
||||
<span class="total_point li_prqty_sp"><span>적립포인트 </span><strong><?php echo number_format($sum['point']); ?></strong></span>
|
||||
|
||||
</div>
|
||||
@ -231,11 +257,13 @@ ob_start();
|
||||
<dt class="sod_bsk_coupon">쿠폰</dt>
|
||||
<dd class="sod_bsk_coupon"><strong id="ct_tot_coupon">0 원</strong></dd>
|
||||
<?php } ?>
|
||||
<?php if ((!isset($rb_item_res['res_is'])) || $rb_item_res['res_is'] != 1) { ?>
|
||||
<dt class="sod_bsk_dvr">배송비</dt>
|
||||
<dd class="sod_bsk_dvr"><strong><?php echo number_format($send_cost); ?> 원</strong></dd>
|
||||
<?php } ?>
|
||||
|
||||
<dt class="sod_bsk_point">포인트</dt>
|
||||
<dd class="sod_bsk_point"><strong><?php echo number_format($tot_point); ?> 점</strong></dd>
|
||||
<dd class="sod_bsk_point"><strong><?php echo number_format($tot_point); ?> P</strong></dd>
|
||||
<dt class="sod_bsk_cnt">총계</dt>
|
||||
<dd class="sod_bsk_cnt">
|
||||
<?php $tot_price = $tot_sell_price + $send_cost; // 총계 = 주문상품금액합계 + 배송비 ?>
|
||||
@ -282,7 +310,7 @@ if($is_kakaopay_use) {
|
||||
<?php echo $content; ?>
|
||||
|
||||
<section id="sod_frm_orderer" >
|
||||
<h2>주문하시는 분</h2>
|
||||
<h2>주문자 정보</h2>
|
||||
|
||||
<div class="odf_list">
|
||||
<ul>
|
||||
@ -303,30 +331,30 @@ if($is_kakaopay_use) {
|
||||
|
||||
<li>
|
||||
<label for="od_tel">전화번호<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="od_tel" value="<?php echo get_text($member['mb_tel']); ?>" id="od_tel" required class="frm_input required" maxlength="20">
|
||||
<input type="text" name="od_tel" value="<?php echo get_text($member['mb_tel']); ?>" id="od_tel" class="frm_input" maxlength="20">
|
||||
</li>
|
||||
<li>
|
||||
<label for="od_hp">핸드폰</label>
|
||||
<input type="text" name="od_hp" value="<?php echo get_text($member['mb_hp']); ?>" id="od_hp" class="frm_input" maxlength="20">
|
||||
<label for="od_hp">휴대전화</label>
|
||||
<input type="text" name="od_hp" value="<?php echo get_text($member['mb_hp']); ?>" id="od_hp" required class="frm_input required" maxlength="20">
|
||||
</li>
|
||||
<li>
|
||||
<strong>주소</strong>
|
||||
<label for="od_b_addr">주소<strong class="sound_only"> 필수</strong></label>
|
||||
|
||||
<span class="add_num"><label for="od_zip" class="sound_only">우편번호<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="od_zip" value="<?php echo $member['mb_zip1'].$member['mb_zip2']; ?>" id="od_zip" required class="frm_input required" size="5" maxlength="6">
|
||||
<input type="text" name="od_zip" value="<?php echo $member['mb_zip1'].$member['mb_zip2']; ?>" id="od_zip" required class="frm_input required" size="5" maxlength="6" placeholder="우편번호">
|
||||
<button type="button" class="btn_frmline btn_addsch" onclick="win_zip('forderform', 'od_zip', 'od_addr1', 'od_addr2', 'od_addr3', 'od_addr_jibeon');">주소검색</button></span>
|
||||
<label for="od_addr1" class="sound_only">기본주소<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="od_addr1" value="<?php echo get_text($member['mb_addr1']) ?>" id="od_addr1" required class="frm_input frm_address required">
|
||||
<input type="text" name="od_addr1" value="<?php echo get_text($member['mb_addr1']) ?>" id="od_addr1" required class="frm_input frm_address required" placeholder="기본주소">
|
||||
<label for="od_addr2" class="sound_only">상세주소</label>
|
||||
<input type="text" name="od_addr2" value="<?php echo get_text($member['mb_addr2']) ?>" id="od_addr2" class="frm_input frm_address">
|
||||
<input type="text" name="od_addr2" value="<?php echo get_text($member['mb_addr2']) ?>" id="od_addr2" class="frm_input frm_address" placeholder="상세주소">
|
||||
<label for="od_addr3" class="sound_only">참고항목</label>
|
||||
<input type="text" name="od_addr3" value="<?php echo get_text($member['mb_addr3']) ?>" id="od_addr3" class="frm_input frm_address" readonly="readonly">
|
||||
<input type="text" name="od_addr3" value="<?php echo get_text($member['mb_addr3']) ?>" id="od_addr3" class="frm_input frm_address" readonly="readonly" placeholder="참고항목">
|
||||
<input type="hidden" name="od_addr_jibeon" value="<?php echo get_text($member['mb_addr_jibeon']); ?>"><br>
|
||||
|
||||
</li>
|
||||
<li>
|
||||
<label for="od_email">E-mail<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="email" name="od_email" value="<?php echo $member['mb_email']; ?>" id="od_email" required class="frm_input required" maxlength="100">
|
||||
<input type="text" name="od_email" value="<?php echo $member['mb_email']; ?>" id="od_email" required class="frm_input required" maxlength="100">
|
||||
</li>
|
||||
|
||||
<?php if ($default['de_hope_date_use']) { // 배송희망일 사용 ?>
|
||||
@ -350,7 +378,7 @@ if($is_kakaopay_use) {
|
||||
</section>
|
||||
|
||||
<section id="sod_frm_taker">
|
||||
<h2>받으시는 분</h2>
|
||||
<h2>사용자(수령자) 정보</h2>
|
||||
|
||||
<div class="odf_list">
|
||||
<ul>
|
||||
@ -373,7 +401,7 @@ if($is_kakaopay_use) {
|
||||
if(isset($row['ad_id']) && $row['ad_id']) {
|
||||
$val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_addr3'].$sep.$row['ad_jibeon'].$sep.$row['ad_subject'];
|
||||
$addr_list .= '<br><input type="radio" name="ad_sel_addr" value="'.get_text($val1).'" id="ad_sel_addr_def">'.PHP_EOL;
|
||||
$addr_list .= '<label for="ad_sel_addr_def">기본배송지</label>'.PHP_EOL;
|
||||
$addr_list .= '<label for="ad_sel_addr_def">기본</label>'.PHP_EOL;
|
||||
}
|
||||
|
||||
// 최근배송지
|
||||
@ -386,14 +414,14 @@ if($is_kakaopay_use) {
|
||||
$result = sql_query($sql);
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$val1 = $row['ad_name'].$sep.$row['ad_tel'].$sep.$row['ad_hp'].$sep.$row['ad_zip1'].$sep.$row['ad_zip2'].$sep.$row['ad_addr1'].$sep.$row['ad_addr2'].$sep.$row['ad_addr3'].$sep.$row['ad_jibeon'].$sep.$row['ad_subject'];
|
||||
$val2 = '<label for="ad_sel_addr_'.($i+1).'">최근배송지('.($row['ad_subject'] ? get_text($row['ad_subject']) : get_text($row['ad_name'])).')</label>';
|
||||
$val2 = '<label for="ad_sel_addr_'.($i+1).'">최근('.($row['ad_subject'] ? get_text($row['ad_subject']) : get_text($row['ad_name'])).')</label>';
|
||||
$addr_list .= '<br><input type="radio" name="ad_sel_addr" value="'.get_text($val1).'" id="ad_sel_addr_'.($i+1).'"> '.PHP_EOL.$val2.PHP_EOL;
|
||||
}
|
||||
|
||||
$addr_list .= '<br><input type="radio" name="ad_sel_addr" value="new" id="od_sel_addr_new">'.PHP_EOL;
|
||||
$addr_list .= '<label for="od_sel_addr_new">신규배송지</label>'.PHP_EOL;
|
||||
$addr_list .= '<label for="od_sel_addr_new">신규</label>'.PHP_EOL;
|
||||
|
||||
$addr_list .='<a href="'.G5_SHOP_URL.'/orderaddress.php" id="order_address">배송지목록</a>';
|
||||
$addr_list .='<a href="'.G5_SHOP_URL.'/orderaddress.php" id="order_address">주소지목록</a>';
|
||||
} else {
|
||||
// 주문자와 동일
|
||||
$addr_list .= '<input type="checkbox" name="ad_sel_addr" value="same" id="ad_sel_addr_same">'.PHP_EOL;
|
||||
@ -409,7 +437,7 @@ if($is_kakaopay_use) {
|
||||
<label for="ad_subject">배송지명</label>
|
||||
<input type="text" name="ad_subject" id="ad_subject" class="frm_input" maxlength="20">
|
||||
<input type="checkbox" name="ad_default" id="ad_default" value="1">
|
||||
<label for="ad_default" class="ad_default">기본배송지로 설정</label>
|
||||
<label for="ad_default" class="ad_default">기본주소지로 설정</label>
|
||||
|
||||
</li>
|
||||
<?php
|
||||
@ -421,14 +449,14 @@ if($is_kakaopay_use) {
|
||||
</li>
|
||||
<li>
|
||||
<label for="od_b_tel">전화번호<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="od_b_tel" id="od_b_tel" required class="frm_input required" maxlength="20">
|
||||
<input type="text" name="od_b_tel" id="od_b_tel" class="frm_input" maxlength="20">
|
||||
</li>
|
||||
<li>
|
||||
<label for="od_b_hp">핸드폰</label>
|
||||
<input type="text" name="od_b_hp" id="od_b_hp" class="frm_input" maxlength="20">
|
||||
<label for="od_b_hp">휴대전화</label>
|
||||
<input type="text" name="od_b_hp" id="od_b_hp" class="frm_input required" required maxlength="20">
|
||||
</li>
|
||||
<li>
|
||||
<strong>주소</strong>
|
||||
<label for="od_b_addr">주소<strong class="sound_only"> 필수</strong></label>
|
||||
<label for="od_b_zip" class="sound_only">우편번호<strong class="sound_only"> 필수</strong></label>
|
||||
<span class="add_num"><input type="text" name="od_b_zip" id="od_b_zip" required class="frm_input required" size="5" maxlength="6">
|
||||
<button type="button" class="btn_frmline btn_addsch" onclick="win_zip('forderform', 'od_b_zip', 'od_b_addr1', 'od_b_addr2', 'od_b_addr3', 'od_b_addr_jibeon');">주소 검색</button></span>
|
||||
@ -447,6 +475,31 @@ if($is_kakaopay_use) {
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php
|
||||
if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) {
|
||||
$resv = sql_fetch("SELECT ct_user_qty1 FROM {$g5['g5_shop_cart_table']} WHERE od_id = '$s_cart_id' AND ct_select = '1' LIMIT 1");
|
||||
$ct_user_qty1 = (int)$resv['ct_user_qty1'];
|
||||
if(isset($ct_user_qty1) && $ct_user_qty1 > 0) {
|
||||
?>
|
||||
|
||||
<section id="sod_frm_taker">
|
||||
<h2>추가사용자 정보</h2>
|
||||
|
||||
<div class="odf_list">
|
||||
<ul>
|
||||
<?php for($i = 1; $i <= $ct_user_qty1; $i++) { ?>
|
||||
<li>
|
||||
<label for="od_b_name">사용자 <?php echo $i; ?><strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="od_names[]" required class="frm_input required" required style="width:25%;" placeholder="이름">
|
||||
<input type="text" name="od_hps[]" class="frm_input required" required style="width:50%;" placeholder="연락처">
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
@ -529,10 +582,12 @@ if($is_kakaopay_use) {
|
||||
<th>총 주문금액</th>
|
||||
<td><span id="od_tot_price"><?php echo number_format($tot_price); ?></span>원</td>
|
||||
</tr>
|
||||
<?php if ((!isset($rb_item_res['res_is'])) || $rb_item_res['res_is'] != 1) { ?>
|
||||
<tr>
|
||||
<th>추가배송비</th>
|
||||
<td><span id="od_send_cost2">0</span>원 (지역에 따라 추가되는 도선료 등의 배송비입니다.)</td>
|
||||
<td><span id="od_send_cost2">0</span>원</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@ -1558,9 +1613,47 @@ function pay_approval()
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
<?php if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) { ?>
|
||||
function make_additional_user_data() {
|
||||
var names = [];
|
||||
var hps = [];
|
||||
|
||||
$("input[name='od_names[]']").each(function() {
|
||||
names.push($(this).val().trim());
|
||||
});
|
||||
|
||||
$("input[name='od_hps[]']").each(function() {
|
||||
hps.push($(this).val().trim());
|
||||
});
|
||||
|
||||
// 기존 숨은 필드 제거
|
||||
$("input[name='od_names_final'], input[name='od_hps_final']").remove();
|
||||
|
||||
// 숨은 필드로 추가
|
||||
$("<input>", {
|
||||
type: "hidden",
|
||||
name: "od_names_final",
|
||||
value: names.join('|')
|
||||
}).appendTo("#forderform");
|
||||
|
||||
$("<input>", {
|
||||
type: "hidden",
|
||||
name: "od_hps_final",
|
||||
value: hps.join('|')
|
||||
}).appendTo("#forderform");
|
||||
}
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
function forderform_check()
|
||||
{
|
||||
<?php if (isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) { ?>
|
||||
make_additional_user_data();
|
||||
<?php } ?>
|
||||
|
||||
// 무통장만 여기에처 처리한다.
|
||||
// 재고체크
|
||||
var stock_msg = order_stock_check();
|
||||
@ -1606,7 +1699,7 @@ function orderfield_check(f)
|
||||
if( (f.od_pwd.value.length<3) || (f.od_pwd.value.search(/([^A-Za-z0-9]+)/)!=-1) )
|
||||
error_field(f.od_pwd, "회원이 아니신 경우 주문서 조회시 필요한 비밀번호를 3자리 이상 입력해 주십시오.");
|
||||
}
|
||||
check_field(f.od_tel, "주문하시는 분 전화번호를 입력하십시오.");
|
||||
check_field(f.od_hp, "주문하시는 분 휴대전화 번호를 입력하십시오.");
|
||||
check_field(f.od_addr1, "주소검색을 이용하여 주문하시는 분 주소를 입력하십시오.");
|
||||
//check_field(f.od_addr2, " 주문하시는 분의 상세주소를 입력하십시오.");
|
||||
check_field(f.od_zip, "");
|
||||
@ -1623,7 +1716,7 @@ function orderfield_check(f)
|
||||
}
|
||||
|
||||
check_field(f.od_b_name, "받으시는 분 이름을 입력하십시오.");
|
||||
check_field(f.od_b_tel, "받으시는 분 전화번호를 입력하십시오.");
|
||||
check_field(f.od_b_hp, "받으시는 분 휴대전화 번호를 입력하십시오.");
|
||||
check_field(f.od_b_addr1, "주소검색을 이용하여 받으시는 분 주소를 입력하십시오.");
|
||||
//check_field(f.od_b_addr2, "받으시는 분의 상세주소를 입력하십시오.");
|
||||
check_field(f.od_b_zip, "");
|
||||
|
||||
@ -117,9 +117,31 @@ $i_temp_point = isset($_POST['od_temp_point']) ? (int) $_POST['od_temp_point'] :
|
||||
|
||||
|
||||
// 주문금액이 상이함
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as od_price,
|
||||
COUNT(distinct it_id) as cart_count
|
||||
if(isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) { //예약상품일 경우 합계방식을 변경함
|
||||
|
||||
$od_names = isset($_POST['od_names_final']) ? $_POST['od_names_final'] : '';
|
||||
$od_hps = isset($_POST['od_hps_final']) ? $_POST['od_hps_final'] : '';
|
||||
|
||||
$sql = " SELECT
|
||||
SUM(
|
||||
IF(io_type = 1,
|
||||
(COALESCE(io_price, 0) * COALESCE(ct_qty, 1)),
|
||||
((COALESCE(ct_price, 0) + COALESCE(io_price, 0)) * COALESCE(ct_qty, 1) * COALESCE(NULLIF(ct_date_d, 0), 1))
|
||||
+ (COALESCE(ct_user_pri1, 0) * COALESCE(ct_user_qty1, 0))
|
||||
+ (COALESCE(ct_user_pri2, 0) * COALESCE(ct_user_qty2, 0))
|
||||
+ (COALESCE(ct_user_pri3, 0) * COALESCE(ct_user_qty3, 0))
|
||||
)
|
||||
) AS od_price,
|
||||
COUNT(DISTINCT it_id) AS cart_count
|
||||
FROM {$g5['g5_shop_cart_table']}
|
||||
WHERE od_id = '$tmp_cart_id'
|
||||
AND ct_select = '1' ";
|
||||
} else {
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as od_price,
|
||||
COUNT(distinct it_id) as cart_count
|
||||
from {$g5['g5_shop_cart_table']} where od_id = '$tmp_cart_id' and ct_select = '1' ";
|
||||
}
|
||||
|
||||
$row = sql_fetch($sql);
|
||||
$tot_ct_price = $row['od_price'];
|
||||
$cart_count = $row['cart_count'];
|
||||
@ -233,9 +255,13 @@ if($is_member) {
|
||||
$tot_cp_price = $tot_it_cp_price + $tot_od_cp_price;
|
||||
}
|
||||
|
||||
if ((int)($row['od_price'] - $tot_cp_price) !== $i_price) {
|
||||
if(function_exists('add_order_post_log')) add_order_post_log('쿠폰금액 최종 계산 Error.');
|
||||
die("Error.");
|
||||
if(isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) { //예약이라면 통과
|
||||
|
||||
} else {
|
||||
if ((int)($row['od_price'] - $tot_cp_price) !== $i_price) {
|
||||
if(function_exists('add_order_post_log')) add_order_post_log('쿠폰금액 최종 계산 Error.');
|
||||
die("Error.");
|
||||
}
|
||||
}
|
||||
|
||||
// 배송비가 상이함
|
||||
@ -626,6 +652,8 @@ $sql = " insert {$g5['g5_shop_order_table']}
|
||||
od_email = '$od_email',
|
||||
od_tel = '$od_tel',
|
||||
od_hp = '$od_hp',
|
||||
od_names = '$od_names',
|
||||
od_hps = '$od_hps',
|
||||
od_zip1 = '$od_zip1',
|
||||
od_zip2 = '$od_zip2',
|
||||
od_addr1 = '$od_addr1',
|
||||
|
||||
@ -12,14 +12,33 @@ $tablet_size = "1.0"; // 화면 사이즈 조정 - 기기화면에 맞게 수정
|
||||
require_once(G5_MSHOP_PATH.'/'.$default['de_pg_service'].'/orderform.1.php');
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div id="m_pv_sod_frm">
|
||||
<style>
|
||||
#sod_frm_paysel input[type="radio"] + label:before {opacity: 1;}
|
||||
#sod_frm_paysel input[type="radio"] + label:after {opacity: 1;}
|
||||
.tbl_frm01 th {padding: 10px 10px;}
|
||||
.btn_cancel {
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
line-height: 45px;
|
||||
font-size: 1.25em;
|
||||
margin: 5px 0;
|
||||
border: 1px solid #ccd1d9;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.sod_right h2 {
|
||||
background: #fff;
|
||||
border-bottom: 1px solid #e2e4e7;
|
||||
font-size: 1.167em;
|
||||
padding: 20px 0px 20px 0px;
|
||||
}
|
||||
</style>
|
||||
<div id="m_pv_sod_frm" class="personal_pay_wrap">
|
||||
<form name="forderform" method="post" action="<?php echo $order_action_url; ?>" autocomplete="off">
|
||||
<input type="hidden" name="pp_id" value="<?php echo $pp['pp_id']; ?>">
|
||||
<section id="m_sod_frm_orderer">
|
||||
<section id="m_sod_frm_orderer" class="pesonal sod_left mb-0">
|
||||
<h2>개인결제정보</h2>
|
||||
|
||||
<div class="odf_tbl">
|
||||
<div class="odf_tbl tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<tbody>
|
||||
<?php if(trim($pp['pp_content'])) { ?>
|
||||
@ -47,6 +66,10 @@ $tablet_size = "1.0"; // 화면 사이즈 조정 - 기기화면에 맞게 수정
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="sod_right">
|
||||
<h2>결제수단</h2>
|
||||
|
||||
<?php
|
||||
$multi_settle = 0;
|
||||
@ -60,34 +83,34 @@ $tablet_size = "1.0"; // 화면 사이즈 조정 - 기기화면에 맞게 수정
|
||||
if ($default['de_vbank_use'] || $default['de_iche_use'] || $default['de_card_use'] || $default['de_hp_use']) {
|
||||
echo '<fieldset id="sod_frm_paysel">';
|
||||
echo '<legend>결제방법 선택</legend>';
|
||||
echo '<ul class="pay_way chk_box">';
|
||||
echo '<ul class="pay_way">';
|
||||
}
|
||||
|
||||
// 가상계좌 사용
|
||||
if ($default['de_vbank_use']) {
|
||||
$multi_settle++;
|
||||
echo '<li><input type="radio" id="pp_settle_vbank" name="pp_settle_case" value="가상계좌" '.$checked.'> <label for="pp_settle_vbank"><span></span>'.$escrow_title.'가상계좌</label></li>'.PHP_EOL;
|
||||
echo '<li><input type="radio" id="pp_settle_vbank" name="pp_settle_case" value="가상계좌" '.$checked.'> <label for="pp_settle_vbank" class="lb_icon"><span></span>'.$escrow_title.'가상계좌</label></li>'.PHP_EOL;
|
||||
$checked = '';
|
||||
}
|
||||
|
||||
// 계좌이체 사용
|
||||
if ($default['de_iche_use']) {
|
||||
$multi_settle++;
|
||||
echo '<li><input type="radio" id="pp_settle_iche" name="pp_settle_case" value="계좌이체" '.$checked.'> <label for="pp_settle_iche"><span></span>'.$escrow_title.'계좌이체</label></li>'.PHP_EOL;
|
||||
echo '<li><input type="radio" id="pp_settle_iche" name="pp_settle_case" value="계좌이체" '.$checked.'> <label for="pp_settle_iche">'.$escrow_title.'계좌이체</label></li>'.PHP_EOL;
|
||||
$checked = '';
|
||||
}
|
||||
|
||||
// 휴대폰 사용
|
||||
if ($default['de_hp_use']) {
|
||||
$multi_settle++;
|
||||
echo '<li><input type="radio" id="pp_settle_hp" name="pp_settle_case" value="휴대폰" '.$checked.'> <label for="pp_settle_hp"><span></span>휴대폰</label></li>'.PHP_EOL;
|
||||
echo '<li><input type="radio" id="pp_settle_hp" name="pp_settle_case" value="휴대폰" '.$checked.'> <label for="pp_settle_hp">휴대폰</label></li>'.PHP_EOL;
|
||||
$checked = '';
|
||||
}
|
||||
|
||||
// 신용카드 사용
|
||||
if ($default['de_card_use']) {
|
||||
$multi_settle++;
|
||||
echo '<li><input type="radio" id="pp_settle_card" name="pp_settle_case" value="신용카드" '.$checked.'> <label for="pp_settle_card"><span></span>신용카드</label></li>'.PHP_EOL;
|
||||
echo '<li><input type="radio" id="pp_settle_card" name="pp_settle_case" value="신용카드" '.$checked.'> <label for="pp_settle_card">신용카드</label></li>'.PHP_EOL;
|
||||
$checked = '';
|
||||
}
|
||||
|
||||
@ -102,7 +125,7 @@ $tablet_size = "1.0"; // 화면 사이즈 조정 - 기기화면에 맞게 수정
|
||||
if ($multi_settle == 0)
|
||||
echo '<p>결제할 방법이 없습니다.<br>운영자에게 알려주시면 감사하겠습니다.</p>';
|
||||
?>
|
||||
</section>
|
||||
|
||||
|
||||
<?php
|
||||
// 결제대행사별 코드 include (결제대행사 정보 필드 및 주분버튼)
|
||||
@ -113,6 +136,8 @@ $tablet_size = "1.0"; // 화면 사이즈 조정 - 기기화면에 맞게 수정
|
||||
<img src="<?php echo G5_MOBILE_URL; ?>/shop/img/loading.gif" alt="">
|
||||
<span>결제진행 중입니다. 잠시만 기다려 주십시오.</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cb"></div>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
@ -121,6 +146,8 @@ $tablet_size = "1.0"; // 화면 사이즈 조정 - 기기화면에 맞게 수정
|
||||
require_once(G5_MSHOP_PATH.'/'.$default['de_pg_service'].'/orderform.3.php');
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user