바로구매 상품 삭제 코드 위치 변경

This commit is contained in:
chicpro
2014-12-31 10:37:28 +09:00
parent 64909af574
commit a818a52fe1

View File

@ -138,6 +138,10 @@ else // 장바구니에 담기
if(!$it['it_id'])
alert('상품정보가 존재하지 않습니다.');
// 바로구매에 있던 장바구니 자료를 지운다.
if($i == 0 && $sw_direct)
sql_query(" delete from {$g5['g5_shop_cart_table']} where od_id = '$tmp_cart_id' and ct_direct = 1 ", false);
// 최소, 최대 수량 체크
if($it['it_buy_min_qty'] || $it['it_buy_max_qty']) {
$sum_qty = 0;
@ -183,10 +187,6 @@ else // 장바구니에 담기
$lst_count++;
}
// 바로구매에 있던 장바구니 자료를 지운다.
if($i == 0 && $sw_direct)
sql_query(" delete from {$g5['g5_shop_cart_table']} where od_id = '$tmp_cart_id' and ct_direct = 1 ", false);
//--------------------------------------------------------
// 재고 검사, 바로구매일 때만 체크
//--------------------------------------------------------