From 2c052fc63d5d60a100dfece16bb3233713f13688 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 28 May 2013 11:19:05 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=A5=EB=B0=94=EA=B5=AC=EB=8B=88=20?= =?UTF-8?q?=EC=98=B5=EC=85=98=20=EC=88=98=EC=A0=95=EA=B8=B0=EB=8A=A5=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EB=B0=8F=20=EC=98=B5=EC=85=98=20=EC=B6=9C?= =?UTF-8?q?=EB=A0=A5=20=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install/shop.sql | 1 + lib/shop.lib.php | 7 +++++-- shop/cartoption.php | 1 + shop/cartsub.inc.php | 5 +++-- shop/cartupdate.php | 11 ++--------- shop/mail/ordermail.mail.php | 3 --- shop/mail/orderupdate1.mail.php | 4 ---- shop/mail/orderupdate2.mail.php | 4 ---- shop/mail/orderupdate3.mail.php | 4 ---- shop/orderformupdate.php | 27 +++++++++++++++----------- shop/ordermail1.inc.php | 34 +++++++++++++++++---------------- shop/ordermail2.inc.php | 16 ++++------------ 12 files changed, 50 insertions(+), 67 deletions(-) diff --git a/install/shop.sql b/install/shop.sql index f0eeaf103..004dd05fe 100644 --- a/install/shop.sql +++ b/install/shop.sql @@ -74,6 +74,7 @@ CREATE TABLE IF NOT EXISTS `shop_cart` ( `ct_ip` varchar(25) NOT NULL DEFAULT '', `ct_send_cost` varchar(255) NOT NULL, `ct_direct` tinyint(4) NOT NULL, + `ct_order` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`ct_id`), KEY `uq_id` (`uq_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; diff --git a/lib/shop.lib.php b/lib/shop.lib.php index 009804a76..116714e5c 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -683,14 +683,17 @@ function print_item_options($it_id, $uq_id) { global $g4; - $sql = " select ct_option from {$g4['shop_cart_table']} where it_id = '$it_id' and uq_id = '$uq_id' order by io_type asc, ct_num asc, ct_id asc "; + $sql = " select ct_option, ct_qty + from {$g4['shop_cart_table']} + where it_id = '$it_id' and uq_id = '$uq_id' + order by io_type asc, ct_num asc, ct_id asc "; $result = sql_query($sql); $str = ''; for($i=0; $row=sql_fetch_array($result); $i++) { if($i == 0) $str .= '