모바일 장바구니 상품없을 때 체크박스 노출되지 않도록 수정
This commit is contained in:
@ -3,23 +3,6 @@ include_once('./_common.php');
|
|||||||
|
|
||||||
$g5['title'] = '장바구니';
|
$g5['title'] = '장바구니';
|
||||||
include_once(G5_MSHOP_PATH.'/_head.php');
|
include_once(G5_MSHOP_PATH.'/_head.php');
|
||||||
?>
|
|
||||||
|
|
||||||
<script src="<?php echo G5_JS_URL; ?>/shop.js"></script>
|
|
||||||
|
|
||||||
<div id="sod_bsk">
|
|
||||||
|
|
||||||
<form name="frmcartlist" id="sod_bsk_list" method="post" action="<?php echo $cart_action_url; ?>">
|
|
||||||
|
|
||||||
<div id="sod_chk">
|
|
||||||
<label for="ct_all" class="sound_only">상품 전체</label>
|
|
||||||
<input type="checkbox" name="ct_all" value="1" id="ct_all" checked>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<ul class="sod_list">
|
|
||||||
<?php
|
|
||||||
$tot_point = 0;
|
|
||||||
$tot_sell_price = 0;
|
|
||||||
|
|
||||||
// $s_cart_id 로 현재 장바구니 자료 쿼리
|
// $s_cart_id 로 현재 장바구니 자료 쿼리
|
||||||
$sql = " select a.ct_id,
|
$sql = " select a.ct_id,
|
||||||
@ -41,9 +24,29 @@ include_once(G5_MSHOP_PATH.'/_head.php');
|
|||||||
$sql .= " order by a.ct_id ";
|
$sql .= " order by a.ct_id ";
|
||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
|
|
||||||
|
$cart_count = mysql_num_rows($result);
|
||||||
|
?>
|
||||||
|
|
||||||
|
<script src="<?php echo G5_JS_URL; ?>/shop.js"></script>
|
||||||
|
|
||||||
|
<div id="sod_bsk">
|
||||||
|
|
||||||
|
<form name="frmcartlist" id="sod_bsk_list" method="post" action="<?php echo $cart_action_url; ?>">
|
||||||
|
|
||||||
|
<?php if($cart_count) { ?>
|
||||||
|
<div id="sod_chk">
|
||||||
|
<label for="ct_all" class="sound_only">상품 전체</label>
|
||||||
|
<input type="checkbox" name="ct_all" value="1" id="ct_all" checked>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<ul class="sod_list">
|
||||||
|
<?php
|
||||||
|
$tot_point = 0;
|
||||||
|
$tot_sell_price = 0;
|
||||||
$it_send_cost = 0;
|
$it_send_cost = 0;
|
||||||
|
|
||||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||||
{
|
{
|
||||||
// 합계금액 계산
|
// 합계금액 계산
|
||||||
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
|
||||||
|
|||||||
Reference in New Issue
Block a user