#224 선택주문 기능 추가

This commit is contained in:
chicpro
2013-06-12 09:43:08 +09:00
parent 945ea8f4ef
commit c79d0133b1
11 changed files with 128 additions and 90 deletions

View File

@ -18,7 +18,8 @@ $sql = " select a.it_id,
b.it_sell_email,
b.it_origin
from {$g4['shop_cart_table']} a left join {$g4['shop_item_table']} b on ( a.it_id = b.it_id )
where a.uq_id = '$tmp_uq_id'
where a.uq_id = '$uq_id'
and a.ct_select = '1'
and a.ct_num = '0' ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
@ -29,13 +30,14 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
SUM(ct_qty) as qty
from {$g4['shop_cart_table']}
where it_id = '{$row['it_id']}'
and uq_id = '$tmp_uq_id' ";
and uq_id = '$uq_id'
and ct_select = '1' ";
$sum = sql_fetch($sql);
// 옵션정보
$sql2 = " select ct_option, ct_qty
from {$g4['shop_cart_table']}
where it_id = '{$row['it_id']}' and uq_id = '$tmp_uq_id'
where it_id = '{$row['it_id']}' and uq_id = '$uq_id' and ct_select = '1'
order by io_type asc, ct_num asc, ct_id asc ";
$result2 = sql_query($sql2);