사용자 주문상품 리스트에 배송비 지불방법 출력 추가

This commit is contained in:
chicpro
2014-02-11 11:04:04 +09:00
parent ac1369815c
commit 5d0ddde6d6
6 changed files with 46 additions and 7 deletions

View File

@ -74,6 +74,11 @@ $cart_count = mysql_num_rows($result);
$it_name .= '<div class="sod_opt">'.$it_options.'</div>';
}
// 배송비
$ct_send_cost = '선불';
if($row['ct_send_cost'])
$ct_send_cost = '착불';
$point = $sum['point'];
$sell_price = $sum['price'];
?>
@ -91,6 +96,7 @@ $cart_count = mysql_num_rows($result);
<div class="li_prqty">
<span class="prqty_price"><span>판매가 </span><?php echo number_format($row['ct_price']); ?></span>
<span class="prqty_qty"><span>수량 </span><?php echo number_format($sum['qty']); ?></span>
<span class="prqty_qty"><span>배송비 </span><?php echo $ct_send_cost; ?></span>
</div>
<div class="li_total" style="padding-left:<?php echo $image_width + 10; ?>px;height:auto !important;height:<?php echo $image_height; ?>px;min-height:<?php echo $image_height; ?>px">
<span class="total_img"><?php echo $image; ?></span>

View File

@ -166,6 +166,11 @@ ob_start();
$it_cp_count++;
}
}
// 배송비
$ct_send_cost = '선불';
if($ct_send_cost)
$ct_send_cost = '착불';
?>
<li class="sod_li">
@ -181,6 +186,7 @@ ob_start();
<div class="li_prqty">
<span class="prqty_price"><span>판매가 </span><?php echo number_format($row['ct_price']); ?></span>
<span class="prqty_qty"><span>수량 </span><?php echo number_format($sum['qty']); ?></span>
<span class="prqty_qty"><span>배송비 </span><?php echo $ct_send_cost; ?></span>
</div>
<div class="li_total" style="padding-left:<?php echo $image_width + 10; ?>px;height:auto !important;height:<?php echo $image_height; ?>px;min-height:<?php echo $image_height; ?>px">
<span class="total_img"><?php echo $image; ?></span>

View File

@ -34,7 +34,7 @@ include_once(G5_MSHOP_PATH.'/_head.php');
$st_count1 = $st_count2 = 0;
$custom_cancel = false;
$sql = " select it_id, it_name, cp_price
$sql = " select it_id, it_name, cp_price, ct_send_cost
from {$g5['g5_shop_cart_table']}
where od_id = '$od_id'
group by it_id
@ -55,6 +55,11 @@ include_once(G5_MSHOP_PATH.'/_head.php');
and it_id = '{$row['it_id']}'
order by io_type asc, ct_id asc ";
$res = sql_query($sql);
// 배송비
$ct_send_cost = '선불';
if($row['ct_send_cost'])
$ct_send_cost = '착불';
?>
<li class="sod_li">
<div class="li_name">
@ -74,8 +79,9 @@ include_once(G5_MSHOP_PATH.'/_head.php');
<div class="li_prqty">
<span class="prqty_price"><span>판매가 </span><?php echo number_format($opt_price); ?></span>
<span class="prqty_qty"><span>수량 </span><?php echo number_format($opt['ct_qty']); ?></span>
<span class="prqty_qty"><span>배송비 </span><?php echo $ct_send_cost; ?></span>
<span class="prqty_qty"><span>상태 </span><?php echo $opt['ct_status']; ?></span>
</div>
<?php // echo $opt['ct_status']; ?>
<div class="li_total" style="padding-left:<?php echo $image_width + 10; ?>px;height:auto !important;height:<?php echo $image_height; ?>px;min-height:<?php echo $image_height; ?>px">
<a href="./item.php?it_id=<?php echo $row['it_id']; ?>" class="total_img"><?php echo $image; ?></a>
<span class="total_price total_span"><span>주문금액 </span><?php echo number_format($sell_price); ?></span>

View File

@ -36,6 +36,7 @@ include_once('./_head.php');
<th scope="col">판매가</th>
<th scope="col">소계</th>
<th scope="col">포인트</th>
<th scope="col">배송비</th>
<th scope="col">
<label for="ct_all" class="sound_only">상품 전체</label>
<input type="checkbox" name="ct_all" value="1" id="ct_all" checked="checked">
@ -97,6 +98,11 @@ include_once('./_head.php');
$it_name .= '<div class="sod_opt">'.$it_options.'</div>';
}
// 배송비
$ct_send_cost = '선불';
if($row['ct_send_cost'])
$ct_send_cost = '착불';
$point = $sum['point'];
$sell_price = $sum['price'];
?>
@ -112,6 +118,7 @@ include_once('./_head.php');
<td class="td_numbig"><?php echo number_format($row['ct_price']); ?></td>
<td class="td_numbig"><span id="sell_price_<?php echo $i; ?>"><?php echo number_format($sell_price); ?></span></td>
<td class="td_numbig"><?php echo number_format($point); ?></td>
<td><?php echo $ct_send_cost; ?></td>
<td class="td_chk">
<label for="ct_chk_<?php echo $i; ?>" class="sound_only">상품</label>
<input type="checkbox" name="ct_chk[<?php echo $i; ?>]" value="1" id="ct_chk_<?php echo $i; ?>" checked="checked">
@ -124,7 +131,7 @@ include_once('./_head.php');
} // for 끝
if ($i == 0) {
echo '<tr><td colspan="7" class="empty_table">장바구니에 담긴 상품이 없습니다.</td></tr>';
echo '<tr><td colspan="8" class="empty_table">장바구니에 담긴 상품이 없습니다.</td></tr>';
} else {
// 배송비 계산
$send_cost = get_sendcost($s_cart_id, 0);

View File

@ -178,6 +178,7 @@ function get_intall_file()
<th scope="col">쿠폰</th>
<th scope="col">소계</th>
<th scope="col">포인트</th>
<th scope="col">배송비</th>
</tr>
</thead>
<tbody>
@ -302,6 +303,11 @@ function get_intall_file()
$it_cp_count++;
}
}
// 배송비
$ct_send_cost = '선불';
if($row['ct_send_cost'])
$ct_send_cost = '착불';
?>
<tr>
@ -322,6 +328,7 @@ function get_intall_file()
<td class="td_mngsmall"><?php echo $cp_button; ?></td>
<td class="td_numbig"><span class="total_price"><?php echo number_format($sell_price); ?></span></td>
<td class="td_numbig"><?php echo number_format($point); ?></td>
<td><?php echo $ct_send_cost; ?></td>
</tr>
<?php

View File

@ -47,7 +47,7 @@ if(openwin != null) {
$st_count1 = $st_count2 = 0;
$custom_cancel = false;
$sql = " select it_id, it_name
$sql = " select it_id, it_name, ct_send_cost
from {$g5['g5_shop_cart_table']}
where od_id = '$od_id'
group by it_id
@ -59,7 +59,7 @@ if(openwin != null) {
<thead>
<tr>
<th scope="col" rowspan="2">이미지</th>
<th scope="col" colspan="6" id="th_itname">상품명</th>
<th scope="col" colspan="7" id="th_itname">상품명</th>
</tr>
<tr>
<th scope="col" id="th_itopt">옵션명</th>
@ -67,6 +67,7 @@ if(openwin != null) {
<th scope="col" id="th_itprice">판매가</th>
<th scope="col" id="th_itsum">소계</th>
<th scope="col" id="th_itpt">포인트</th>
<th scope="col" id="th_itpt">배송비</th>
<th scope="col" id="th_itst">상태</th>
</tr>
</thead>
@ -75,7 +76,7 @@ if(openwin != null) {
for($i=0; $row=sql_fetch_array($result); $i++) {
$image = get_it_image($row['it_id'], 70, 70);
$sql = " select ct_id, it_name, ct_option, ct_qty, ct_price, ct_point, ct_status, io_type, io_price
$sql = " select ct_id, it_name, ct_option, ct_qty, ct_price, ct_point, ct_status, io_type, io_price, ct_send_cost
from {$g5['g5_shop_cart_table']}
where od_id = '$od_id'
and it_id = '{$row['it_id']}'
@ -83,6 +84,11 @@ if(openwin != null) {
$res = sql_query($sql);
$rowspan = mysql_num_rows($res) + 1;
// 배송비
$ct_send_cost = '선불';
if($row['ct_send_cost'])
$ct_send_cost = '착불';
for($k=0; $opt=sql_fetch_array($res); $k++) {
if($opt['io_type'])
$opt_price = $opt['io_price'];
@ -96,7 +102,7 @@ if(openwin != null) {
?>
<tr>
<td rowspan="<?php echo $rowspan; ?>" class="td_imgsmall"><?php echo $image; ?></td>
<td headers="th_itname" colspan="6"><a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo $row['it_name']; ?></a></td>
<td headers="th_itname" colspan="7"><a href="./item.php?it_id=<?php echo $row['it_id']; ?>"><?php echo $row['it_name']; ?></a></td>
</tr>
<?php } ?>
<tr>
@ -105,6 +111,7 @@ if(openwin != null) {
<td headers="th_itprice" class="td_numbig"><?php echo number_format($opt_price); ?></td>
<td headers="th_itsum" class="td_numbig"><?php echo number_format($sell_price); ?></td>
<td headers="th_itpt" class="td_num"><?php echo number_format($point); ?></td>
<td headers="th_itpt" class="td_num"><?php echo $ct_send_cost; ?></td>
<td headers="th_itst" class="td_mngsmall"><?php echo $opt['ct_status']; ?></td>
</tr>
<?php