영카트 5.4 버전 내용 적용
This commit is contained in:
@ -57,9 +57,7 @@ if($od['od_pg'] == 'lg') {
|
||||
|
||||
<!-- 주문상세내역 시작 { -->
|
||||
<div id="sod_fin">
|
||||
|
||||
<div id="sod_fin_no">주문번호 <strong><?php echo $od_id; ?></strong></div>
|
||||
|
||||
<section id="sod_fin_list">
|
||||
<h2>주문하신 상품</h2>
|
||||
|
||||
@ -74,105 +72,104 @@ if($od['od_pg'] == 'lg') {
|
||||
order by ct_id ";
|
||||
$result = sql_query($sql);
|
||||
?>
|
||||
|
||||
<div class="tbl_head03 tbl_wrap">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" rowspan="2">이미지</th>
|
||||
<th scope="col" colspan="7" id="th_itname">상품명</th>
|
||||
</tr>
|
||||
<tr class="th_line">
|
||||
<th scope="col" id="th_itopt">옵션명</th>
|
||||
<th scope="col" id="th_itqty">수량</th>
|
||||
<th scope="col" id="th_itprice">판매가</th>
|
||||
<th scope="col" id="th_itsum">소계</th>
|
||||
<th scope="col" id="th_itpt">적립포인트</th>
|
||||
<th scope="col" id="th_itsd">배송비</th>
|
||||
<th scope="col" id="th_itst">상태</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$image = get_it_image($row['it_id'], 70, 70);
|
||||
|
||||
$sql = " select ct_id, it_name, ct_option, ct_qty, ct_price, ct_point, ct_status, io_type, io_price
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where od_id = '$od_id'
|
||||
and it_id = '{$row['it_id']}'
|
||||
order by io_type asc, ct_id asc ";
|
||||
$res = sql_query($sql);
|
||||
$rowspan = sql_num_rows($res) + 1;
|
||||
|
||||
// 합계금액 계산
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
||||
SUM(ct_qty) as qty
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
and od_id = '$od_id' ";
|
||||
$sum = sql_fetch($sql);
|
||||
|
||||
// 배송비
|
||||
switch($row['ct_send_cost'])
|
||||
{
|
||||
case 1:
|
||||
$ct_send_cost = '착불';
|
||||
break;
|
||||
case 2:
|
||||
$ct_send_cost = '무료';
|
||||
break;
|
||||
default:
|
||||
$ct_send_cost = '선불';
|
||||
break;
|
||||
}
|
||||
|
||||
// 조건부무료
|
||||
if($row['it_sc_type'] == 2) {
|
||||
$sendcost = get_item_sendcost($row['it_id'], $sum['price'], $sum['qty'], $od_id);
|
||||
|
||||
if($sendcost == 0)
|
||||
$ct_send_cost = '무료';
|
||||
}
|
||||
|
||||
for($k=0; $opt=sql_fetch_array($res); $k++) {
|
||||
if($opt['io_type'])
|
||||
$opt_price = $opt['io_price'];
|
||||
else
|
||||
$opt_price = $opt['ct_price'] + $opt['io_price'];
|
||||
|
||||
$sell_price = $opt_price * $opt['ct_qty'];
|
||||
$point = $opt['ct_point'] * $opt['ct_qty'];
|
||||
|
||||
if($k == 0) {
|
||||
?>
|
||||
<tr>
|
||||
<td rowspan="<?php echo $rowspan; ?>" class="td_imgsmall"><?php echo $image; ?></td>
|
||||
<td headers="th_itname" colspan="7" class="td_bdno"><a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo $row['it_name']; ?></a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td headers="th_itopt" class="td_bdno"><?php echo get_text($opt['ct_option']); ?></td>
|
||||
<td headers="th_itqty" class="td_mngsmall"><?php echo number_format($opt['ct_qty']); ?></td>
|
||||
<td headers="th_itprice" class="td_numbig text_right"><?php echo number_format($opt_price); ?></td>
|
||||
<td headers="th_itsum" class="td_numbig text_right"><?php echo number_format($sell_price); ?></td>
|
||||
<td headers="th_itpt" class="td_numbig text_right"><?php echo number_format($point); ?></td>
|
||||
<td headers="th_itsd" class="td_dvr"><?php echo $ct_send_cost; ?></td>
|
||||
<td headers="th_itst" class="td_mngsmall"><?php echo $opt['ct_status']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$tot_point += $point;
|
||||
|
||||
$st_count1++;
|
||||
if($opt['ct_status'] == '주문')
|
||||
$st_count2++;
|
||||
}
|
||||
}
|
||||
|
||||
// 주문 상품의 상태가 모두 주문이면 고객 취소 가능
|
||||
if($st_count1 > 0 && $st_count1 == $st_count2)
|
||||
$custom_cancel = true;
|
||||
?>
|
||||
</tbody>
|
||||
<table>
|
||||
<thead>
|
||||
<tr class="th_line">
|
||||
<th scope="col" id="th_itname">상품명</th>
|
||||
<th scope="col" id="th_itqty">총수량</th>
|
||||
<th scope="col" id="th_itprice">판매가</th>
|
||||
<th scope="col" id="th_itpt">포인트</th>
|
||||
<th scope="col" id="th_itsd">배송비</th>
|
||||
<th scope="col" id="th_itsum">소계</th>
|
||||
<th scope="col" id="th_itst">상태</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$image = get_it_image($row['it_id'], 55, 55);
|
||||
|
||||
$sql = " select ct_id, it_name, ct_option, ct_qty, ct_price, ct_point, ct_status, io_type, io_price
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where od_id = '$od_id'
|
||||
and it_id = '{$row['it_id']}'
|
||||
order by io_type asc, ct_id asc ";
|
||||
$res = sql_query($sql);
|
||||
$rowspan = sql_num_rows($res) + 1;
|
||||
|
||||
// 합계금액 계산
|
||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
||||
SUM(ct_qty) as qty
|
||||
from {$g5['g5_shop_cart_table']}
|
||||
where it_id = '{$row['it_id']}'
|
||||
and od_id = '$od_id' ";
|
||||
$sum = sql_fetch($sql);
|
||||
|
||||
// 배송비
|
||||
switch($row['ct_send_cost'])
|
||||
{
|
||||
case 1:
|
||||
$ct_send_cost = '착불';
|
||||
break;
|
||||
case 2:
|
||||
$ct_send_cost = '무료';
|
||||
break;
|
||||
default:
|
||||
$ct_send_cost = '선불';
|
||||
break;
|
||||
}
|
||||
|
||||
// 조건부무료
|
||||
if($row['it_sc_type'] == 2) {
|
||||
$sendcost = get_item_sendcost($row['it_id'], $sum['price'], $sum['qty'], $od_id);
|
||||
|
||||
if($sendcost == 0)
|
||||
$ct_send_cost = '무료';
|
||||
}
|
||||
|
||||
for($k=0; $opt=sql_fetch_array($res); $k++) {
|
||||
if($opt['io_type'])
|
||||
$opt_price = $opt['io_price'];
|
||||
else
|
||||
$opt_price = $opt['ct_price'] + $opt['io_price'];
|
||||
|
||||
$sell_price = $opt_price * $opt['ct_qty'];
|
||||
$point = $opt['ct_point'] * $opt['ct_qty'];
|
||||
|
||||
if($k == 0) {
|
||||
?>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td headers="th_itopt" class="td_prd">
|
||||
<div class="sod_img"><?php echo $image; ?></div>
|
||||
<div class="sod_name">
|
||||
<a href="<?php echo shop_item_url($row['it_id']); ?>"><?php echo $row['it_name']; ?></a><br>
|
||||
<div class="sod_opt"><?php echo get_text($opt['ct_option']); ?></div>
|
||||
</div>
|
||||
</td>
|
||||
<td headers="th_itqty" class="td_mngsmall"><?php echo number_format($opt['ct_qty']); ?></td>
|
||||
<td headers="th_itprice" class="td_numbig text_right"><?php echo number_format($opt_price); ?></td>
|
||||
<td headers="th_itpt" class="td_numbig text_right"><?php echo number_format($point); ?></td>
|
||||
<td headers="th_itsd" class="td_dvr"><?php echo $ct_send_cost; ?></td>
|
||||
<td headers="th_itsum" class="td_numbig text_right"><?php echo number_format($sell_price); ?></td>
|
||||
<td headers="th_itst" class="td_mngsmall"><?php echo $opt['ct_status']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$tot_point += $point;
|
||||
|
||||
$st_count1++;
|
||||
if($opt['ct_status'] == '주문')
|
||||
$st_count2++;
|
||||
}
|
||||
}
|
||||
|
||||
// 주문 상품의 상태가 모두 주문이면 고객 취소 가능
|
||||
if($st_count1 > 0 && $st_count1 == $st_count2)
|
||||
$custom_cancel = true;
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@ -195,7 +192,6 @@ if($od['od_pg'] == 'lg') {
|
||||
<button type="button" id="sod_sts_explan_close" class="btn_frmline">상태설명닫기</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
<div class="sod_left">
|
||||
<h2>결제/배송 정보</h2>
|
||||
@ -260,204 +256,13 @@ if($od['od_pg'] == 'lg') {
|
||||
} else if($od['od_settle_case'] == '가상계좌' || $od['od_settle_case'] == '계좌이체') {
|
||||
$app_no_subj = '거래번호';
|
||||
$app_no = $od['od_tno'];
|
||||
|
||||
|
||||
if( function_exists('shop_is_taxsave') && $misu_price == 0 && shop_is_taxsave($od, true) === 2 ){
|
||||
$disp_receipt = true;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<section id="sod_fin_pay">
|
||||
<h3>결제정보</h3>
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">주문번호</th>
|
||||
<td><?php echo $od_id; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">주문일시</th>
|
||||
<td><?php echo $od['od_time']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">결제방식</th>
|
||||
<td><?php echo ($easy_pay_name ? $easy_pay_name.'('.$od['od_settle_case'].')' : check_pay_name_replace($od['od_settle_case']) ); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">결제금액</th>
|
||||
<td><?php echo $od_receipt_price; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
if($od['od_receipt_price'] > 0)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">결제일시</th>
|
||||
<td><?php echo $od['od_receipt_time']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
// 승인번호, 휴대폰번호, 거래번호
|
||||
if($app_no_subj)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row"><?php echo $app_no_subj; ?></th>
|
||||
<td><?php echo $app_no; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
// 계좌정보
|
||||
if($disp_bank)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">입금자명</th>
|
||||
<td><?php echo get_text($od['od_deposit_name']); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">입금계좌</th>
|
||||
<td><?php echo get_text($od['od_bank_account']); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($disp_receipt) {
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">영수증</th>
|
||||
<td>
|
||||
<?php
|
||||
if($od['od_settle_case'] == '휴대폰')
|
||||
{
|
||||
if($od['od_pg'] == 'lg') {
|
||||
require_once G5_SHOP_PATH.'/settle_lg.inc.php';
|
||||
$LGD_TID = $od['od_tno'];
|
||||
$LGD_MERTKEY = $config['cf_lg_mert_key'];
|
||||
$LGD_HASHDATA = md5($LGD_MID.$LGD_TID.$LGD_MERTKEY);
|
||||
|
||||
$hp_receipt_script = 'showReceiptByTID(\''.$LGD_MID.'\', \''.$LGD_TID.'\', \''.$LGD_HASHDATA.'\');';
|
||||
} else if($od['od_pg'] == 'inicis') {
|
||||
$hp_receipt_script = 'window.open(\'https://iniweb.inicis.com/DefaultWebApp/mall/cr/cm/mCmReceipt_head.jsp?noTid='.$od['od_tno'].'&noMethod=1\',\'receipt\',\'width=430,height=700\');';
|
||||
} else {
|
||||
$hp_receipt_script = 'window.open(\''.G5_BILL_RECEIPT_URL.'mcash_bill&tno='.$od['od_tno'].'&order_no='.$od['od_id'].'&trade_mony='.$od['od_receipt_price'].'\', \'winreceipt\', \'width=500,height=690,scrollbars=yes,resizable=yes\');';
|
||||
}
|
||||
?>
|
||||
<a href="javascript:;" onclick="<?php echo $hp_receipt_script; ?>">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($od['od_settle_case'] == '신용카드' || is_inicis_order_pay($od['od_settle_case']) || (shop_is_taxsave($od, true) && $misu_price == 0) )
|
||||
{
|
||||
if($od['od_pg'] == 'lg') {
|
||||
require_once G5_SHOP_PATH.'/settle_lg.inc.php';
|
||||
$LGD_TID = $od['od_tno'];
|
||||
$LGD_MERTKEY = $config['cf_lg_mert_key'];
|
||||
$LGD_HASHDATA = md5($LGD_MID.$LGD_TID.$LGD_MERTKEY);
|
||||
|
||||
$card_receipt_script = 'showReceiptByTID(\''.$LGD_MID.'\', \''.$LGD_TID.'\', \''.$LGD_HASHDATA.'\');';
|
||||
} else if($od['od_pg'] == 'inicis') {
|
||||
$card_receipt_script = 'window.open(\'https://iniweb.inicis.com/DefaultWebApp/mall/cr/cm/mCmReceipt_head.jsp?noTid='.$od['od_tno'].'&noMethod=1\',\'receipt\',\'width=430,height=700\');';
|
||||
} else {
|
||||
$card_receipt_script = 'window.open(\''.G5_BILL_RECEIPT_URL.'card_bill&tno='.$od['od_tno'].'&order_no='.$od['od_id'].'&trade_mony='.$od['od_receipt_price'].'\', \'winreceipt\', \'width=470,height=815,scrollbars=yes,resizable=yes\');';
|
||||
}
|
||||
?>
|
||||
<a href="javascript:;" onclick="<?php echo $card_receipt_script; ?>">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($od['od_settle_case'] == 'KAKAOPAY')
|
||||
{
|
||||
$card_receipt_script = 'window.open(\'https://mms.cnspay.co.kr/trans/retrieveIssueLoader.do?TID='.$od['od_tno'].'&type=0\', \'popupIssue\', \'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=420,height=540\');';
|
||||
?>
|
||||
<a href="javascript:;" onclick="<?php echo $card_receipt_script; ?>">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($od['od_receipt_point'] > 0)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">포인트사용</th>
|
||||
<td><?php echo display_point($od['od_receipt_point']); ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($od['od_refund_price'] > 0)
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">환불 금액</th>
|
||||
<td><?php echo display_price($od['od_refund_price']); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
// 현금영수증 발급을 사용하는 경우에만
|
||||
if (function_exists('shop_is_taxsave') && shop_is_taxsave($od)) {
|
||||
// 미수금이 없고 현금일 경우에만 현금영수증을 발급 할 수 있습니다.
|
||||
if ($misu_price == 0 && $od['od_receipt_price'] && ($od['od_settle_case'] == '무통장' || $od['od_settle_case'] == '계좌이체' || $od['od_settle_case'] == '가상계좌')) {
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">현금영수증</th>
|
||||
<td>
|
||||
<?php
|
||||
if ($od['od_cash'])
|
||||
{
|
||||
if($od['od_pg'] == 'lg') {
|
||||
require_once G5_SHOP_PATH.'/settle_lg.inc.php';
|
||||
|
||||
switch($od['od_settle_case']) {
|
||||
case '계좌이체':
|
||||
$trade_type = 'BANK';
|
||||
break;
|
||||
case '가상계좌':
|
||||
$trade_type = 'CAS';
|
||||
break;
|
||||
default:
|
||||
$trade_type = 'CR';
|
||||
break;
|
||||
}
|
||||
$cash_receipt_script = 'javascript:showCashReceipts(\''.$LGD_MID.'\',\''.$od['od_id'].'\',\''.$od['od_casseqno'].'\',\''.$trade_type.'\',\''.$CST_PLATFORM.'\');';
|
||||
} else if($od['od_pg'] == 'inicis') {
|
||||
$cash = unserialize($od['od_cash_info']);
|
||||
$cash_receipt_script = 'window.open(\'https://iniweb.inicis.com/DefaultWebApp/mall/cr/cm/Cash_mCmReceipt.jsp?noTid='.$cash['TID'].'&clpaymethod=22\',\'showreceipt\',\'width=380,height=540,scrollbars=no,resizable=no\');';
|
||||
} else {
|
||||
require_once G5_SHOP_PATH.'/settle_kcp.inc.php';
|
||||
|
||||
$cash = unserialize($od['od_cash_info']);
|
||||
$cash_receipt_script = 'window.open(\''.G5_CASH_RECEIPT_URL.$default['de_kcp_mid'].'&orderid='.$od_id.'&bill_yn=Y&authno='.$cash['receipt_no'].'\', \'taxsave_receipt\', \'width=360,height=647,scrollbars=0,menus=0\');';
|
||||
}
|
||||
?>
|
||||
<a href="javascript:;" onclick="<?php echo $cash_receipt_script; ?>" class="btn_frmline">현금영수증 확인하기</a>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<a href="javascript:;" onclick="window.open('<?php echo G5_SHOP_URL; ?>/taxsave.php?od_id=<?php echo $od_id; ?>', 'taxsave', 'width=550,height=400,scrollbars=1,menus=0');" class="btn_frmline">현금영수증을 발급하시려면 클릭하십시오.</a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
<section id="sod_fin_orderer">
|
||||
<h3>주문하신 분</h3>
|
||||
|
||||
@ -541,43 +346,33 @@ if($od['od_pg'] == 'lg') {
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
|
||||
<tbody>
|
||||
<?php
|
||||
if ($od['od_invoice'] && $od['od_delivery_company'])
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<th scope="row">배송회사</th>
|
||||
<td><?php echo $od['od_delivery_company']; ?> <?php echo get_delivery_inquiry($od['od_delivery_company'], $od['od_invoice'], 'dvr_link'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">운송장번호</th>
|
||||
<td><?php echo $od['od_invoice']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">배송일시</th>
|
||||
<td><?php echo $od['od_invoice_time']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td class="empty_table">아직 배송하지 않았거나 배송정보를 입력하지 못하였습니다.</td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tbody>
|
||||
<?php if ($od['od_invoice'] && $od['od_delivery_company']) { ?>
|
||||
<tr>
|
||||
<th scope="row">배송회사</th>
|
||||
<td><?php echo $od['od_delivery_company']; ?> <?php echo get_delivery_inquiry($od['od_delivery_company'], $od['od_invoice'], 'dvr_link'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">운송장번호</th>
|
||||
<td><?php echo $od['od_invoice']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">배송일시</th>
|
||||
<td><?php echo $od['od_invoice_time']; ?></td>
|
||||
</tr>
|
||||
<?php } else { ?>
|
||||
<tr>
|
||||
<td class="empty_table">아직 배송하지 않았거나 배송정보를 입력하지 못하였습니다.</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div class="sod_right">
|
||||
<ul id="sod_bsk_tot">
|
||||
<ul id="sod_bsk_tot2">
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>주문총액</span>
|
||||
<strong><?php echo number_format($od['od_cart_price']); ?> 원</strong>
|
||||
@ -586,28 +381,24 @@ if($od['od_pg'] == 'lg') {
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>개별상품 쿠폰할인</span>
|
||||
<strong><?php echo number_format($od['od_cart_coupon']); ?> 원</strong>
|
||||
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php if($od['od_coupon'] > 0) { ?>
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>주문금액 쿠폰할인</span>
|
||||
<strong><?php echo number_format($od['od_coupon']); ?> 원</strong>
|
||||
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php if ($od['od_send_cost'] > 0) { ?>
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>배송비</span>
|
||||
<strong><?php echo number_format($od['od_send_cost']); ?> 원</strong>
|
||||
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php if($od['od_send_coupon'] > 0) { ?>
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>배송비 쿠폰할인</span>
|
||||
<strong><?php echo number_format($od['od_send_coupon']); ?> 원</strong>
|
||||
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php if ($od['od_send_cost2'] > 0) { ?>
|
||||
@ -619,8 +410,7 @@ if($od['od_pg'] == 'lg') {
|
||||
<?php if ($od['od_cancel_price'] > 0) { ?>
|
||||
<li class="sod_bsk_dvr">
|
||||
<span>취소금액</span>
|
||||
<strong><?php echo number_format($od['od_cancel_price']); ?> 원</strong>
|
||||
|
||||
<strong><?php echo number_format($od['od_cancel_price']); ?> 원</strong>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<li class="sod_bsk_cnt">
|
||||
@ -631,57 +421,248 @@ if($od['od_pg'] == 'lg') {
|
||||
<span>적립포인트</span>
|
||||
<strong><?php echo number_format($tot_point); ?> 점</strong>
|
||||
</li>
|
||||
|
||||
<li class="sod_fin_tot"><span>총 구매액</span><strong><?php echo display_price($tot_price); ?></strong></li>
|
||||
<?php
|
||||
if ($misu_price > 0) {
|
||||
echo '<li class="sod_fin_tot">';
|
||||
echo '<span>미결제액</span>'.PHP_EOL;
|
||||
echo '<strong>'.display_price($misu_price).'</strong>';
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
<li id="alrdy" class="sod_fin_tot">
|
||||
<span>결제액</span>
|
||||
<strong><?php echo $wanbul; ?></strong>
|
||||
<?php if( $od['od_receipt_point'] ){ //포인트로 결제한 내용이 있으면 ?>
|
||||
<div>
|
||||
<p><span class="title">포인트 결제</span><?php echo number_format($od['od_receipt_point']); ?>점</p>
|
||||
<p><span class="title">실결제</span><?php echo number_format($od['od_receipt_price']); ?>원</p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<section id="sod_fin_tot">
|
||||
<h2>결제합계</h2>
|
||||
|
||||
<section id="sod_fin_pay">
|
||||
<h3>결제정보</h3>
|
||||
<ul>
|
||||
<li>
|
||||
총 구매액
|
||||
<strong><?php echo display_price($tot_price); ?></strong>
|
||||
</li>
|
||||
<?php
|
||||
if ($misu_price > 0) {
|
||||
echo '<li>';
|
||||
echo '미결제액'.PHP_EOL;
|
||||
echo '<strong>'.display_price($misu_price).'</strong>';
|
||||
echo '</li>';
|
||||
<li>
|
||||
<strong>주문번호</strong>
|
||||
<span><?php echo $od_id; ?></span>
|
||||
</li>
|
||||
<li>
|
||||
<strong>주문일시</strong>
|
||||
<span><?php echo $od['od_time']; ?></span>
|
||||
</li>
|
||||
<li>
|
||||
<strong>결제방식</strong>
|
||||
<span><?php echo ($easy_pay_name ? $easy_pay_name.'('.$od['od_settle_case'].')' : check_pay_name_replace($od['od_settle_case']) ); ?></span>
|
||||
</li>
|
||||
<li>
|
||||
<strong>결제금액</strong>
|
||||
<span><?php echo $od_receipt_price; ?></span>
|
||||
</li>
|
||||
<?php
|
||||
if($od['od_receipt_price'] > 0)
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<strong>결제일시</strong>
|
||||
<span><?php echo $od['od_receipt_time']; ?></span>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
// 승인번호, 휴대폰번호, 거래번호
|
||||
if($app_no_subj)
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<strong><?php echo $app_no_subj; ?></strong>
|
||||
<span><?php echo $app_no; ?></span>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
// 계좌정보
|
||||
if($disp_bank)
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<strong>입금자명</strong>
|
||||
<span><?php echo get_text($od['od_deposit_name']); ?></span>
|
||||
</li>
|
||||
<li>
|
||||
<strong>입금계좌</strong>
|
||||
<span><?php echo get_text($od['od_bank_account']); ?></span>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($disp_receipt) {
|
||||
?>
|
||||
<li>
|
||||
<strong>영수증</strong>
|
||||
<span>
|
||||
<?php
|
||||
if($od['od_settle_case'] == '휴대폰')
|
||||
{
|
||||
if($od['od_pg'] == 'lg') {
|
||||
require_once G5_SHOP_PATH.'/settle_lg.inc.php';
|
||||
$LGD_TID = $od['od_tno'];
|
||||
$LGD_MERTKEY = $config['cf_lg_mert_key'];
|
||||
$LGD_HASHDATA = md5($LGD_MID.$LGD_TID.$LGD_MERTKEY);
|
||||
|
||||
$hp_receipt_script = 'showReceiptByTID(\''.$LGD_MID.'\', \''.$LGD_TID.'\', \''.$LGD_HASHDATA.'\');';
|
||||
} else if($od['od_pg'] == 'inicis') {
|
||||
$hp_receipt_script = 'window.open(\'https://iniweb.inicis.com/DefaultWebApp/mall/cr/cm/mCmReceipt_head.jsp?noTid='.$od['od_tno'].'&noMethod=1\',\'receipt\',\'width=430,height=700\');';
|
||||
} else {
|
||||
$hp_receipt_script = 'window.open(\''.G5_BILL_RECEIPT_URL.'mcash_bill&tno='.$od['od_tno'].'&order_no='.$od['od_id'].'&trade_mony='.$od['od_receipt_price'].'\', \'winreceipt\', \'width=500,height=690,scrollbars=yes,resizable=yes\');';
|
||||
}
|
||||
?>
|
||||
<a href="javascript:;" onclick="<?php echo $hp_receipt_script; ?>">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($od['od_settle_case'] == '신용카드' || is_inicis_order_pay($od['od_settle_case']) || (shop_is_taxsave($od, true) && $misu_price == 0) )
|
||||
{
|
||||
if($od['od_pg'] == 'lg') {
|
||||
require_once G5_SHOP_PATH.'/settle_lg.inc.php';
|
||||
$LGD_TID = $od['od_tno'];
|
||||
$LGD_MERTKEY = $config['cf_lg_mert_key'];
|
||||
$LGD_HASHDATA = md5($LGD_MID.$LGD_TID.$LGD_MERTKEY);
|
||||
|
||||
$card_receipt_script = 'showReceiptByTID(\''.$LGD_MID.'\', \''.$LGD_TID.'\', \''.$LGD_HASHDATA.'\');';
|
||||
} else if($od['od_pg'] == 'inicis') {
|
||||
$card_receipt_script = 'window.open(\'https://iniweb.inicis.com/DefaultWebApp/mall/cr/cm/mCmReceipt_head.jsp?noTid='.$od['od_tno'].'&noMethod=1\',\'receipt\',\'width=430,height=700\');';
|
||||
} else {
|
||||
$card_receipt_script = 'window.open(\''.G5_BILL_RECEIPT_URL.'card_bill&tno='.$od['od_tno'].'&order_no='.$od['od_id'].'&trade_mony='.$od['od_receipt_price'].'\', \'winreceipt\', \'width=470,height=815,scrollbars=yes,resizable=yes\');';
|
||||
}
|
||||
?>
|
||||
<a href="javascript:;" onclick="<?php echo $card_receipt_script; ?>">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
|
||||
if($od['od_settle_case'] == 'KAKAOPAY')
|
||||
{
|
||||
$card_receipt_script = 'window.open(\'https://mms.cnspay.co.kr/trans/retrieveIssueLoader.do?TID='.$od['od_tno'].'&type=0\', \'popupIssue\', \'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=420,height=540\');';
|
||||
?>
|
||||
<a href="javascript:;" onclick="<?php echo $card_receipt_script; ?>">영수증 출력</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</span>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($od['od_receipt_point'] > 0)
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<strong>포인트사용</strong>
|
||||
<span><?php echo display_point($od['od_receipt_point']); ?></span>
|
||||
</li>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($od['od_refund_price'] > 0)
|
||||
{
|
||||
?>
|
||||
<li>
|
||||
<strong>환불 금액</strong>
|
||||
<span><?php echo display_price($od['od_refund_price']); ?></span>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
|
||||
// 현금영수증 발급을 사용하는 경우에만
|
||||
if (function_exists('shop_is_taxsave') && shop_is_taxsave($od)) {
|
||||
// 미수금이 없고 현금일 경우에만 현금영수증을 발급 할 수 있습니다.
|
||||
if ($misu_price == 0 && $od['od_receipt_price'] && ($od['od_settle_case'] == '무통장' || $od['od_settle_case'] == '계좌이체' || $od['od_settle_case'] == '가상계좌')) {
|
||||
?>
|
||||
<li>
|
||||
<strong class="letter-2px">현금영수증</strong>
|
||||
<span>
|
||||
<?php
|
||||
if ($od['od_cash'])
|
||||
{
|
||||
if($od['od_pg'] == 'lg') {
|
||||
require_once G5_SHOP_PATH.'/settle_lg.inc.php';
|
||||
|
||||
switch($od['od_settle_case']) {
|
||||
case '계좌이체':
|
||||
$trade_type = 'BANK';
|
||||
break;
|
||||
case '가상계좌':
|
||||
$trade_type = 'CAS';
|
||||
break;
|
||||
default:
|
||||
$trade_type = 'CR';
|
||||
break;
|
||||
}
|
||||
$cash_receipt_script = 'javascript:showCashReceipts(\''.$LGD_MID.'\',\''.$od['od_id'].'\',\''.$od['od_casseqno'].'\',\''.$trade_type.'\',\''.$CST_PLATFORM.'\');';
|
||||
} else if($od['od_pg'] == 'inicis') {
|
||||
$cash = unserialize($od['od_cash_info']);
|
||||
$cash_receipt_script = 'window.open(\'https://iniweb.inicis.com/DefaultWebApp/mall/cr/cm/Cash_mCmReceipt.jsp?noTid='.$cash['TID'].'&clpaymethod=22\',\'showreceipt\',\'width=380,height=540,scrollbars=no,resizable=no\');';
|
||||
} else {
|
||||
require_once G5_SHOP_PATH.'/settle_kcp.inc.php';
|
||||
|
||||
$cash = unserialize($od['od_cash_info']);
|
||||
$cash_receipt_script = 'window.open(\''.G5_CASH_RECEIPT_URL.$default['de_kcp_mid'].'&orderid='.$od_id.'&bill_yn=Y&authno='.$cash['receipt_no'].'\', \'taxsave_receipt\', \'width=360,height=647,scrollbars=0,menus=0\');';
|
||||
}
|
||||
?>
|
||||
<a href="javascript:;" onclick="<?php echo $cash_receipt_script; ?>" class="btn_frmline">현금영수증 확인하기</a>
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
<a href="javascript:;" onclick="window.open('<?php echo G5_SHOP_URL; ?>/taxsave.php?od_id=<?php echo $od_id; ?>', 'taxsave', 'width=550,height=400,scrollbars=1,menus=0');" class="btn_frmline is-long-text">현금영수증을 발급하시려면 클릭하십시오.</a>
|
||||
<?php } ?>
|
||||
</span>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<li id="alrdy">
|
||||
결제액
|
||||
<strong><?php echo $wanbul; ?></strong>
|
||||
<?php if( $od['od_receipt_point'] ){ //포인트로 결제한 내용이 있으면 ?>
|
||||
<div class="right">
|
||||
<p><span class="title"><i class="fa fa-angle-right" aria-hidden="true"></i> 포인트 결제</span><?php echo number_format($od['od_receipt_point']); ?> 점</p>
|
||||
<p><span class="title"><i class="fa fa-angle-right" aria-hidden="true"></i> 실결제</span><?php echo number_format($od['od_receipt_price']); ?> 원</p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</li>
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section id="sod_fin_cancel">
|
||||
<h2>주문취소</h2>
|
||||
<?php
|
||||
// 취소한 내역이 없다면
|
||||
if ($cancel_price == 0) {
|
||||
if ($custom_cancel) {
|
||||
?>
|
||||
<button type="button" onclick="document.getElementById('sod_fin_cancelfrm').style.display='block';">주문 취소하기</button>
|
||||
<button type="button" class="sod_fin_c_btn">주문 취소하기</button>
|
||||
<div id="sod_cancel_pop">
|
||||
<div id="sod_fin_cancelfrm">
|
||||
<h2>주문취소</h2>
|
||||
<form method="post" action="./orderinquirycancel.php" onsubmit="return fcancel_check(this);">
|
||||
<input type="hidden" name="od_id" value="<?php echo $od['od_id']; ?>">
|
||||
<input type="hidden" name="token" value="<?php echo $token; ?>">
|
||||
|
||||
<label for="cancel_memo" class="sound_only">취소사유</label>
|
||||
<input type="text" name="cancel_memo" id="cancel_memo" required class="frm_input required" size="40" maxlength="100" placeholder="취소사유">
|
||||
<input type="submit" value="확인" class="btn_frmline">
|
||||
</form>
|
||||
<button class="sod_cls_btn"><span class="sound_only">닫기</span><i class="fa fa-times" aria-hidden="true"></i></button>
|
||||
</div>
|
||||
<div class="sod_fin_bg"></div>
|
||||
</div>
|
||||
<script>
|
||||
$(function (){
|
||||
$(".sod_fin_c_btn").on("click", function() {
|
||||
$("#sod_cancel_pop").show();
|
||||
});
|
||||
$(".sod_cls_btn").on("click", function() {
|
||||
$("#sod_cancel_pop").hide();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<div id="sod_fin_cancelfrm">
|
||||
<form method="post" action="./orderinquirycancel.php" onsubmit="return fcancel_check(this);">
|
||||
<input type="hidden" name="od_id" value="<?php echo $od['od_id']; ?>">
|
||||
<input type="hidden" name="token" value="<?php echo $token; ?>">
|
||||
|
||||
<label for="cancel_memo" class="sound_only">취소사유</label>
|
||||
<input type="text" name="cancel_memo" id="cancel_memo" required class="frm_input required" size="40" maxlength="100" placeholder="취소사유">
|
||||
<input type="submit" value="확인" class="btn_frmline">
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
} else {
|
||||
@ -691,9 +672,6 @@ if($od['od_pg'] == 'lg') {
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php if ($od['od_settle_case'] == '가상계좌' && $od['od_misu'] > 0 && $default['de_card_test'] && $is_admin && $od['od_pg'] == 'kcp') {
|
||||
preg_match("/\s{1}([^\s]+)\s?/", $od['od_bank_account'], $matchs);
|
||||
$deposit_no = trim($matchs[1]);
|
||||
@ -774,7 +752,7 @@ function fcancel_check(f)
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user