cart 테이블의 ct_num 제거
This commit is contained in:
@ -12,11 +12,11 @@ if(!$it['it_id'])
|
||||
|
||||
// 장바구니 자료
|
||||
$cart_id = get_session('ss_cart_id');
|
||||
$sql = " select * from {$g4['shop_cart_table']} where od_id = '$cart_id' and it_id = '$it_id' order by io_type asc, ct_num asc, ct_id asc ";
|
||||
$sql = " select * from {$g4['shop_cart_table']} where od_id = '$cart_id' and it_id = '$it_id' order by io_type asc, ct_id asc ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
// 판매가격
|
||||
$sql2 = " select ct_price, it_name, ct_send_cost from {$g4['shop_cart_table']} where od_id = '$cart_id' and it_id = '$it_id' and ct_num = '0' ";
|
||||
$sql2 = " select ct_price, it_name, ct_send_cost from {$g4['shop_cart_table']} where od_id = '$cart_id' and it_id = '$it_id' order by ct_id asc limit 1 ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
|
||||
if(!mysql_num_rows($result))
|
||||
|
||||
Reference in New Issue
Block a user