From 3460f00943eeacb08b3747e1cddcbcc70aa32d5e Mon Sep 17 00:00:00 2001 From: whitedot Date: Tue, 11 Jun 2013 17:01:09 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=94=EB=A1=9C=EA=B5=AC=EB=A7=A4=EC=8B=9C?= =?UTF-8?q?=20=EC=83=81=ED=92=88=EC=BF=A0=ED=8F=B0=20=EB=85=B8=EC=B6=9C?= =?UTF-8?q?=EB=90=98=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/orderform.php | 2 +- shop/orderitemcoupon.php | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/shop/orderform.php b/shop/orderform.php index b036c67f4..d6e8a60b8 100644 --- a/shop/orderform.php +++ b/shop/orderform.php @@ -915,7 +915,7 @@ $(function() { $.post( "./orderitemcoupon.php", - { it_id: it_id }, + { it_id: it_id, sw_direct: "" }, function(data) { $cp_btn_el.after(data); } diff --git a/shop/orderitemcoupon.php b/shop/orderitemcoupon.php index 19795d7e0..a2d39d4f8 100644 --- a/shop/orderitemcoupon.php +++ b/shop/orderitemcoupon.php @@ -6,11 +6,16 @@ if($is_guest) // 상품정보 $it_id = $_POST['it_id']; +$sw_direct = $_POST['sw_direct']; $sql = " select it_id, ca_id, ca_id2, ca_id3 from {$g4['shop_item_table']} where it_id = '$it_id' "; $it = sql_fetch($sql); // 상품 총 금액 -$uq_id = get_session('ss_uq_id'); +if($sw_direct) + $uq_id = get_session('ss_uq_direct'); +else + $uq_id = get_session('ss_uq_id'); + $sql = " select SUM( IF(io_type = '1', io_price * ct_qty, (ct_price + io_price) * ct_qty)) as sum_price from {$g4['shop_cart_table']} where uq_id = '$uq_id'