장바구니에서 act 값 넘어가지 않는 오류 수정

This commit is contained in:
chicpro
2013-05-15 17:41:18 +09:00
parent de42e1c9d6
commit e887152412
2 changed files with 2 additions and 16 deletions

View File

@ -115,11 +115,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
<td>
<input type="hidden" name="ct_id[<?php echo $i; ?>]" value="<?php echo $row['ct_id']; ?>">
<input type="hidden" name="it_id[<?php echo $i; ?>]" value="<?php echo $row['it_id']; ?>">
<input type="hidden" name="ap_id[<?php echo $i; ?>]" value="<?php echo $row['ap_id']; ?>">
<input type="hidden" name="bi_id[<?php echo $i; ?>]" value="<?php echo $row['bi_id']; ?>">
<input type="hidden" name="it_name[<?php echo $i; ?>]" value="<?php echo get_text($row['it_name']); ?>">
<input type="hidden" name="act" value="">
<input type="hidden" name="records" value="<?php echo $i; ?>">
<?php echo $it_name; ?>
</td>
@ -223,6 +219,8 @@ if ($tot_amount > 0) {
<a href="<?php echo G4_SHOP_URL; ?>/" class="btn01">쇼핑 계속하기</a>
<?php } else { ?>
<input type="hidden" name="url" value="./orderform.php">
<input type="hidden" name="records" value="<?php echo $i; ?>">
<input type="hidden" name="act" value="">
<p>장바구니의 상품을 주문하시려면 <strong>주문하기</strong>를 클릭하세요. <strong>비우기</strong>는 장바구니의 상품을 모두 비웁니다.</p>
<a href="<?php echo G4_SHOP_URL; ?>/list.php?ca_id=<?php echo $continue_ca_id; ?>" class="btn01">쇼핑 계속하기</a>
<a href="javascript:form_check('buy');" class="btn02">주문하기</a>

View File

@ -154,18 +154,6 @@ else // 장바구니에 담기
if ($_POST['ct_qty'] < 1)
alert('수량은 1 이상 입력해 주십시오.');
// 비회원가격과 회원가격이 다르다면
if (!$is_member && $default['de_different_msg'])
{
$sql = " select it_amount, it_amount2 from {$g4['shop_item_table']} where it_id = '{$_POST['it_id']}' ";
$row = sql_fetch($sql);
if ($row['it_amount2'] && $row['it_amount'] != $row['it_amount2']) {
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">";
echo "<script>alert('비회원가격과 회원가격이 다릅니다. 로그인 후 구입하여 주십시오.');</script>";
}
}
//--------------------------------------------------------
// 변조 검사
//--------------------------------------------------------