From 56615a5e9ecdb3b145b1c81efd3de006dab87bd3 Mon Sep 17 00:00:00 2001 From: thisgun Date: Fri, 7 Jun 2024 12:24:41 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B9=84=ED=9A=8C=EC=9B=90=EC=9D=B8=20?= =?UTF-8?q?=EC=83=81=ED=83=9C=EC=97=90=EC=84=9C=20=EC=9E=A5=EB=B0=94?= =?UTF-8?q?=EA=B5=AC=EB=8B=88=EC=97=90=EC=84=9C=20=EC=A3=BC=EB=AC=B8?= =?UTF-8?q?=ED=95=98=EA=B8=B0=20=ED=9B=84=20=EB=A1=9C=EA=B7=B8=EC=9D=B8?= =?UTF-8?q?=ED=95=98=EB=A9=B4=20=EC=9E=A5=EB=B0=94=EA=B5=AC=EB=8B=88?= =?UTF-8?q?=EA=B0=80=20=EB=B9=84=EC=96=B4=EC=9E=88=EB=8A=94=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/login_check.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bbs/login_check.php b/bbs/login_check.php index 3882f38c0..c34c44ce2 100644 --- a/bbs/login_check.php +++ b/bbs/login_check.php @@ -147,8 +147,16 @@ if(function_exists('set_cart_id')){ cart_item_clean(); set_cart_id(''); $s_cart_id = get_session('ss_cart_id'); + + $add_cart_where = ''; + + // 장바구니에서 주문하기를 하는 경우 + if (strpos($link, 'orderform.php') !== false) { + $add_cart_where = " and ct_select_time < '".date('Y-m-d H:i:s', strtotime('-1 hour', G5_SERVER_TIME))."' "; + } + // 선택필드 초기화 - $sql = " update {$g5['g5_shop_cart_table']} set ct_select = '0' where od_id = '$s_cart_id' "; + $sql = " update {$g5['g5_shop_cart_table']} set ct_select = '0' where od_id = '$s_cart_id' $add_cart_where "; sql_query($sql); }