From 6bded7f18e8e3e91cd00b8960747f5e543de6264 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 3 Dec 2013 17:47:11 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC=20=EC=9E=A5?= =?UTF-8?q?=EB=B0=94=EA=B5=AC=EB=8B=88=20=EC=83=81=ED=92=88=EC=97=86?= =?UTF-8?q?=EC=9D=84=20=EB=95=8C=20=EC=B2=B4=ED=81=AC=EB=B0=95=EC=8A=A4=20?= =?UTF-8?q?=EB=85=B8=EC=B6=9C=EB=90=98=EC=A7=80=20=EC=95=8A=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/shop/cart.php | 47 +++++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 22 deletions(-) diff --git a/mobile/shop/cart.php b/mobile/shop/cart.php index e6db576de..eb79e3c6e 100644 --- a/mobile/shop/cart.php +++ b/mobile/shop/cart.php @@ -3,6 +3,28 @@ include_once('./_common.php'); $g5['title'] = '장바구니'; include_once(G5_MSHOP_PATH.'/_head.php'); + +// $s_cart_id 로 현재 장바구니 자료 쿼리 +$sql = " select a.ct_id, + a.it_id, + a.it_name, + a.ct_price, + a.ct_point, + a.ct_qty, + a.ct_status, + a.ct_send_cost, + b.ca_id + from {$g5['g5_shop_cart_table']} a left join {$g5['g5_shop_item_table']} b on ( a.it_id = b.it_id ) + where a.od_id = '$s_cart_id' "; +if($default['de_cart_keep_term']) { + $ctime = date('Y-m-d H:i:s', G5_SERVER_TIME - (($default['de_cart_keep_term'] - 1) * 86400)); + $sql .= " and a.ct_time > '$ctime' "; +} +$sql .= " group by a.it_id "; +$sql .= " order by a.ct_id "; +$result = sql_query($sql); + +$cart_count = mysql_num_rows($result); ?> @@ -11,39 +33,20 @@ include_once(G5_MSHOP_PATH.'/_head.php');
+
+