From a7f551aa05f0122ded3f69478705cbdebaa46d37 Mon Sep 17 00:00:00 2001
From: KWON
Date: Tue, 25 Nov 2025 17:43:13 +0900
Subject: [PATCH] =?UTF-8?q?=EC=A0=9C=ED=92=88=20=EC=82=AC=EC=9A=A9?=
=?UTF-8?q?=EC=B2=98=EB=A6=AC=20=EA=B8=B0=EB=8A=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
adm/css/admin.css | 15 ++
adm/shop_admin/orderform.php | 311 ++++++----------------------
adm/shop_admin/orderlist.php | 10 +-
adm/shop_admin/orderlist_tail.php | 158 ++++++++++++++
adm/shop_admin/orderlist_ticket.php | 192 ++++++++++-------
adm/shop_admin/orderliveupdate.php | 27 +++
extend/firstgarden.php | 14 ++
7 files changed, 396 insertions(+), 331 deletions(-)
create mode 100644 adm/shop_admin/orderlist_tail.php
create mode 100644 adm/shop_admin/orderliveupdate.php
diff --git a/adm/css/admin.css b/adm/css/admin.css
index 550314d97..6915f99b3 100644
--- a/adm/css/admin.css
+++ b/adm/css/admin.css
@@ -231,6 +231,7 @@ a.btn_submit{background:#ff4081;color:#fff}
.btn_02,a.btn_02{background:#9eacc6;color:#fff;}
.btn_03,a.btn_03{background:#3f51b5;color:#fff;}
+.btn_03,a.btn_04{background:#819FF7;color:#fff;}
.btn_frmline{display:inline-block;background:#9eacc6;color:#fff;height:35px;border:0;border-radius:5px;padding:0 10px}
a.btn_frmline{display:inline-block;background:#9eacc6;color:#fff;height:35px;line-height:33px;border-radius:5px;padding:0 10px;text-decoration:none !important}
@@ -963,6 +964,20 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
.sbn_img {text-align:center}
.sbn_image {display:none;margin:0 0 10px;text-align:left}
+/* SMS문자전송 */
+#sms_send {padding-bottom:100px;zoom:1}
+#sms_send:after {display:block;visibility:hidden;clear:both;content:""}
+
+#sms_frm {float:left;width:650px}
+#sms_frm table {margin:0 0 30px}
+#sms_frm textarea {height:70px}
+
+#sms_sm {position:relative;float:left;width:229px;height:418px;background:url('../shop_admin/img/mobilebg.jpg') no-repeat}
+#sms_sm_text {position:absolute;top:75px;left:27px;width:180px;color:#fff;font-size:2em;word-break:break-all}
+#sms_sm p {position:absolute;bottom:-70px;left:0;font-size:0.95em;letter-spacing:-0.1em}
+
+#sms_send .local_desc01 {min-width:320px}
+
/* 가격비교사이트 */
#anc_pricecompare_info li {margin:5px 0 5px -1px}
diff --git a/adm/shop_admin/orderform.php b/adm/shop_admin/orderform.php
index a4f57e4c1..f104d5f64 100644
--- a/adm/shop_admin/orderform.php
+++ b/adm/shop_admin/orderform.php
@@ -20,7 +20,7 @@ $od_refund_price = isset($_REQUEST['od_refund_price']) ? clean_xss_tags($_REQUES
$od_receipt_point = isset($_REQUEST['od_receipt_point']) ? clean_xss_tags($_REQUEST['od_receipt_point'], 1, 1) : '';
$od_coupon = isset($_REQUEST['od_coupon']) ? clean_xss_tags($_REQUEST['od_coupon'], 1, 1) : '';
$od_id = isset($_REQUEST['od_id']) ? safe_replace_regex($_REQUEST['od_id'], 'od_id') : '';
-$od_escrow = isset($_REQUEST['od_escrow']) ? clean_xss_tags($_REQUEST['od_escrow'], 1, 1) : '';
+$od_escrow = isset($_REQUEST['od_escrow']) ? clean_xss_tags($_REQUEST['od_escrow'], 1, 1) : '';
$sort1 = isset($_REQUEST['sort1']) ? clean_xss_tags($_REQUEST['sort1'], 1, 1) : '';
$sort2 = isset($_REQUEST['sort2']) ? clean_xss_tags($_REQUEST['sort2'], 1, 1) : '';
@@ -68,8 +68,7 @@ $sql = " select it_id,
cp_price,
ct_notax,
ct_send_cost,
- it_sc_type,
- ct_id
+ it_sc_type
from {$g5['g5_shop_cart_table']}
where od_id = '{$od['od_id']}'
group by it_id
@@ -108,20 +107,10 @@ if($od['od_pg'] == 'lg') {
}
}
-$print_od_deposit_name = $od['od_deposit_name'];
-// nicepay 로 주문하고 가상계좌인 경우
-if ($od['od_pg'] === 'nicepay' && $od['od_settle_case'] === '가상계좌' && $od['od_deposit_name']){
- $print_od_deposit_name .= '_NICE';
-}
-
// add_javascript('js 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
?>
-
+
주문상품 목록
@@ -130,6 +119,8 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
현재 주문상태
|
주문일시 ()
+ |
+ 주문총액 원
희망배송일은 () 입니다.
@@ -165,20 +156,9 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
소계 |
쿠폰 |
포인트 |
-
배송비 |
-
포인트반영 |
재고반영 |
-
-
-
- 운송장번호 |
- 배송사 |
- 배송일시 |
-
-
-
@@ -187,47 +167,22 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
for($i=0; $row=sql_fetch_array($result); $i++) {
// 상품이미지
$image = get_it_image($row['it_id'], 50, 50);
-
-
// 상품의 옵션정보
- if(isset($pa['pa_is']) && $pa['pa_is'] == 1) {
- $sql = " select ct_id, it_id, ct_price, ct_point, ct_qty, ct_option, ct_status, cp_price, ct_stock_use, ct_point_use, ct_send_cost, io_type, io_price, ct_delivery_company, ct_invoice, ct_invoice_time
+ $sql = " select ct_id, it_id, ct_price, ct_point, ct_qty, ct_option, ct_status, cp_price, ct_stock_use, ct_point_use, ct_send_cost, io_type, io_price
from {$g5['g5_shop_cart_table']}
where od_id = '{$od['od_id']}'
and it_id = '{$row['it_id']}'
order by io_type asc, ct_id asc ";
- $res = sql_query($sql);
- } else {
- $sql = " select ct_id, it_id, ct_price, ct_point, ct_qty, ct_option, ct_status, cp_price, ct_stock_use, ct_point_use, ct_send_cost, io_type, io_price
- from {$g5['g5_shop_cart_table']}
- where od_id = '{$od['od_id']}'
- and it_id = '{$row['it_id']}'
- order by io_type asc, ct_id asc ";
- $res = sql_query($sql);
- }
+ $res = sql_query($sql);
$rowspan = sql_num_rows($res);
- 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), $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 = '{$od['od_id']}'";
-
+ $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['od_id']}' ";
$sum = sql_fetch($sql);
// 배송비
@@ -259,10 +214,8 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
$opt_price = $opt['ct_price'] + $opt['io_price'];
// 소계
- //$ct_price['stotal'] = $opt_price * $opt['ct_qty'];
- $ct_price['stotal'] = $sum['price'];
+ $ct_price['stotal'] = $opt_price * $opt['ct_qty'];
$ct_point['stotal'] = $opt['ct_point'] * $opt['ct_qty'];
-
?>
@@ -280,15 +233,6 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
-
-
|
@@ -299,49 +243,9 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
| |
|
|
-
|
-
- |
- |
-
-
-
- |
-
-
-
-
-
-
-
-
- |
-
-
- " class="frm_input" maxlength="19" style="width:60%;">
- " onclick="chk_invoice_time_()">
-
-
-
- |
-
-
-
+ |
+ |
주문 및 장바구니 상태 변경
-
+
+
-
주문, 입금, 완료는 장바구니와 주문서 상태를 모두 변경하지만, 취소, 반품, 품절은 장바구니의 상태만 변경하며, 주문서 상태는 변경하지 않습니다.
+
주문, 입금, 준비, 배송, 완료는 장바구니와 주문서 상태를 모두 변경하지만, 취소, 반품, 품절은 장바구니의 상태만 변경하며, 주문서 상태는 변경하지 않습니다.
개별적인(이곳에서의) 상태 변경은 모든 작업을 수동으로 처리합니다. 예를 들어 주문에서 입금으로 상태 변경시 입금액(결제금액)을 포함한 모든 정보는 수동 입력으로 처리하셔야 합니다.
@@ -398,7 +303,7 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
if(isset($tmp_row['P_TID']) && $tmp_row['P_TID']){
?>
주의) 이 주문은 결제취소된 내역이 있습니다. 이니시스 관리자 상점에서 반드시 재확인을 해 주세요.
-
@@ -440,9 +345,7 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
주문번호 |
결제방법 |
주문총액 |
-
배송비 |
-
포인트결제 |
총결제액 |
쿠폰 |
@@ -454,9 +357,7 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
|
|
-
|
-
|
원 |
|
@@ -510,7 +411,7 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
| 입금자 |
- |
+ |
| 입금확인일시 |
@@ -607,7 +508,7 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
switch($od['od_pg']) {
case 'lg':
$pg_url = 'https://app.tosspayments.com';
- $pg_test = '토스페이먼츠(구버전)';
+ $pg_test = '토스페이먼츠';
if ($default['de_card_test']) {
$pg_url = 'https://pgweb.tosspayments.com/tmert';
$pg_test .= ' 테스트 ';
@@ -621,14 +522,6 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
$pg_url = 'https://mms.cnspay.co.kr';
$pg_test = 'KAKAOPAY';
break;
- case 'nicepay':
- $pg_url = 'https://npg.nicepay.co.kr/';
- $pg_test = 'NICEPAY';
- break;
- case 'toss':
- $pg_url = 'https://app.tosspayments.com';
- $pg_test = '토스페이먼츠 ';
- break;
default:
$pg_url = 'http://admin8.kcp.co.kr';
$pg_test = 'KCP';
@@ -675,30 +568,20 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
결제취소/환불액 |
|
-
-
-
-
-
-
-
- | 배송회사 |
- |
-
-
-
- | 운송장번호 |
- |
-
-
- | 배송일시 |
- |
-
-
-
+
+
+ | 배송회사 |
+ |
+
+
+ | 운송장번호 |
+ |
+
+
+ | 배송일시 |
+ |
+
-
-
|
@@ -717,7 +600,6 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
원
|
-
@@ -741,23 +623,9 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
break;
}
$cash_receipt_script = 'javascript:showCashReceipts(\''.$LGD_MID.'\',\''.$od['od_id'].'\',\''.$od['od_casseqno'].'\',\''.$trade_type.'\',\''.$CST_PLATFORM.'\');';
- } else if($od['od_pg'] == 'toss') {
- $cash_receipt_script = 'window.open(\'https://dashboard.tosspayments.com/receipt/mids/si_'.$config['cf_lg_mid'].'/orders/'.$od['od_id'].'/cash-receipt?ref=dashboard\',\'receipt\',\'width=430,height=700\');';
} 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 if($od['od_pg'] == 'nicepay') {
-
- $od_tid = $od['od_tno'];
- $cash_type = 0;
-
- if (! $od_tid) {
- $cash = unserialize($od['od_cash_info']);
- $od_tid = isset($cash['TID']) ? $cash['TID'] : '';
- $cash_type = $od_tid ? 1 : 0;
- }
-
- $cash_receipt_script = 'window.open(\'https://npg.nicepay.co.kr/issue/IssueLoader.do?type='.$cash_type.'&TID='.$od_tid.'&noMethod=1\',\'receipt\',\'width=430,height=700\');';
} else {
require G5_SHOP_PATH.'/settle_kcp.inc.php';
@@ -827,12 +695,11 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
-
+
-
+
-
|
@@ -932,22 +799,14 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
원
-
-
-
-
-
-
-
|
-
+
-
+
-
|
@@ -967,23 +826,17 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
" class="frm_input" maxlength="19">
-
-
- |
-
-
- 메일발송
- |
-
+
+ |
+
+
+ 메일발송
+ |
+
-
-
-
-
-
@@ -1036,7 +889,7 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
- 주문자/사용자 정보
+ 주문자/배송지 정보