Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
장바구니 선택필드 초기화 코드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
chicpro committed Aug 12, 2016
1 parent aa19470 commit e0d020c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shop/cartupdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
if(!count($_POST['ct_chk']))
alert("주문하실 상품을 하나이상 선택해 주십시오.");

// 선택필드 초기화
$sql = " update {$g5['g5_shop_cart_table']} set ct_select = '0' where od_id = '$tmp_cart_id' ";
sql_query($sql);

$fldcnt = count($_POST['it_id']);
for($i=0; $i<$fldcnt; $i++) {
$ct_chk = $_POST['ct_chk'][$i];
Expand Down

0 comments on commit e0d020c

Please sign in to comment.