cart 테이블의 ct_num 제거

This commit is contained in:
chicpro
2013-08-27 10:46:26 +09:00
parent 067f2dacb0
commit 476119f53a
19 changed files with 44 additions and 66 deletions

View File

@ -96,7 +96,7 @@ $sql = " select it_id,
ct_notax
from {$g4['shop_cart_table']}
where od_id = '{$od['od_id']}'
and ct_num = '0'
group by it_id
order by ct_id ";
$result = sql_query($sql);
@ -173,7 +173,7 @@ $pg_anchor .='<li><a href="#anc_sodr_chk">결제상세정보 확인</a></li>
from {$g4['shop_cart_table']}
where od_id = '{$od['od_id']}'
and it_id = '{$row['it_id']}'
order by ct_num ";
order by io_type asc, ct_id asc ";
$res = sql_query($sql);
for($k=0; $opt=sql_fetch_array($res); $k++) {

View File

@ -199,8 +199,8 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
$sql2 = " select it_id, it_name
from {$g4['shop_cart_table']}
where od_id = '{$row['od_id']}'
and ct_num = '0'
order by ct_num ";
group by it_id
order by ct_id asc ";
$result2 = sql_query($sql2);
for ($k=0;$row2=sql_fetch_array($result2);$k++) { // for 자식 시작
@ -231,7 +231,7 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
from {$g4['shop_cart_table']}
where od_id = '{$row['od_id']}'
and it_id = '{$row2['it_id']}'
order by ct_num ";
order by io_type asc, ct_id asc ";
$result3 = sql_query($sql3);
for($j=0;$row3=sql_fetch_array($result3);$j++) { // for 손자 시작

View File

@ -48,7 +48,7 @@ if ($csv == 'csv')
$sql .= " and a.od_id between '$fr_od_id' and '$to_od_id' ";
if ($ct_status)
$sql .= " and b.ct_status = '$ct_status' ";
$sql .=" order by od_time asc ";
$sql .=" order by od_time asc, b.it_id, b.io_type, b.ct_id ";
$result = sql_query($sql);
$cnt = @mysql_num_rows($result);
if (!$cnt)
@ -106,7 +106,7 @@ if ($csv == 'xls')
$sql .= " and a.od_id between '$fr_od_id' and '$to_od_id' ";
if ($ct_status)
$sql .= " and b.ct_status = '$ct_status' ";
$sql .=" order by od_time asc ";
$sql .=" order by od_time asc, b.it_id, b.io_type, b.ct_id ";
$result = sql_query($sql);
$cnt = @mysql_num_rows($result);
if (!$cnt)
@ -278,7 +278,7 @@ if (mysql_num_rows($result) == 0)
where od_id = '{$row['od_id']}' ";
if ($ct_status)
$sql2 .= " and ct_status = '$ct_status' ";
$sql2 .= " order by ct_id ";
$sql2 .= " order by it_id, io_type, ct_id ";
$res2 = sql_query($sql2);
$cnt = $sub_tot_qty = $sub_tot_amount = 0;