주문폼 접근 때 재고 체크하도록 수정

This commit is contained in:
chicpro
2014-11-05 17:40:45 +09:00
parent 5e558626da
commit de2b734362
9 changed files with 235 additions and 44 deletions

View File

@ -38,9 +38,15 @@ if(!sql_query(" select it_sc_type from {$g5['g5_shop_cart_table']} limit 1 ", fa
where ct_id = '{$row['ct_id']}' ";
sql_query($sql);
}
echo '<p>장바구니 테이블 업그레이드 완료!</p>';
}
// 장바구니 상품 주문폼 등록시간 기록 필드 추가
if(!sql_query(" select ct_select_time from {$g5['g5_shop_cart_table']} limit 1 ", false)) {
sql_query(" ALTER TABLE `{$g5['g5_shop_cart_table']}`
ADD `ct_select_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `ct_select` ", true);
}
echo '<p>장바구니 테이블 업그레이드 완료!</p>';
include_once(G5_PATH.'/tail.sub.php');
?>