From 34294c4f53d9be64f0b4b349325fd0f70a594ad9 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Tue, 30 Jul 2013 16:23:11 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EB=9D=BC=EC=A7=84=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=20get=5Fcart=5Fcount()=20=EB=A5=BC=20=EB=B3=B5?= =?UTF-8?q?=EC=9B=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/shop.lib.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/shop.lib.php b/lib/shop.lib.php index a415058ed..7b6bcac7b 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -335,6 +335,17 @@ class item_list } +// 장바구니 건수 검사 +function get_cart_count($uq_id) +{ + global $g4; + + $sql = " select count(ct_id) as cnt from {$g4['shop_cart_table']} where uq_id = '$uq_id' "; + $row = sql_fetch($sql); + return (int)$row['cnt']; +} + + // 이미지를 얻는다 function get_image($img, $width=0, $height=0, $img_id='') {