From 6a9fd29ee9eaf22a7b56b4b5a25fd88ef1095f7a Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 30 May 2013 15:16:05 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=B0=EC=86=A1=EB=B9=84=20=EA=B3=84?= =?UTF-8?q?=EC=82=B0=20=EC=BD=94=EB=93=9C=20for=EB=AC=B8=20=EB=B0=96?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EC=9D=B4=EB=8F=99=EC=8B=9C=ED=82=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/shop/cartsub.inc.php | 8 +++++--- shop/cartsub.inc.php | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/mobile/shop/cartsub.inc.php b/mobile/shop/cartsub.inc.php index c7eb2d492..122f4edc0 100644 --- a/mobile/shop/cartsub.inc.php +++ b/mobile/shop/cartsub.inc.php @@ -151,7 +151,11 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) $tot_point += $point; $tot_sell_amount += $sell_amount; } +} // for 끝 +if ($i == 0) { + echo '장바구니에 담긴 상품이 없습니다.'; +} else { // 배송비가 넘어왔다면 if ($_POST['od_send_cost']) { $send_cost = (int)$_POST['od_send_cost']; @@ -179,9 +183,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) if ($row['od_send_cost'] > 0) $send_cost = $row['od_send_cost']; } -} // for 끝 - -if ($i == 0) echo '장바구니에 담긴 상품이 없습니다.'; +} ?> diff --git a/shop/cartsub.inc.php b/shop/cartsub.inc.php index 004d42e52..6818bdca3 100644 --- a/shop/cartsub.inc.php +++ b/shop/cartsub.inc.php @@ -149,7 +149,11 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) $tot_point += $point; $tot_sell_amount += $sell_amount; } +} // for 끝 +if ($i == 0) { + echo '장바구니에 담긴 상품이 없습니다.'; +} else { // 배송비가 넘어왔다면 if ($_POST['od_send_cost']) { $send_cost = (int)$_POST['od_send_cost']; @@ -177,9 +181,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) if ($row['od_send_cost'] > 0) $send_cost = $row['od_send_cost']; } -} // for 끝 - -if ($i == 0) echo '장바구니에 담긴 상품이 없습니다.'; +} ?>