주문내역 부분 출력관련 질문입니다 orderinquiryview.php문서 채택완료
http://sir.co.kr/bbs/board.php?bo_table=yc5_tip&wr_id=183&page=2ㅇ">http://sir.co.kr/bbs/board.php?bo_table=yc5_tip&wr_id=183&page=2
영카트 팁게시판의 이 글을 참조하였구요.
실질적인 구현은 되어 작동은 되고 있습니다.
다만 문제가 저희는 orderinquiryview.php 에서 문서를 출력하여 주문서로 활용하는데요.

이렇게 추가작업내용 부분이 두번이나 들어가버리게 됩니다.
추가작업내용부분의 출력부분의 위치를 바꿔버리면 아에 화면에서 보이지 않게 되고 원래 위치에 넣게되면 이처럼 두번이 표시가 되는데 혼자 아웅다웅씨름하다가 도저히 안되겠어서 질문드려봅니다..
해당옵션이 출력되는 부분에 대한 구문 ↓
$sql = " select ct_id, it_name, ct_option, ct_qty, ct_price, ct_point, ct_status, io_type, io_price, ct_msg, ct_file from {$g5['g5_shop_cart_table']} where od_id = '$od_id' and it_id = '{$row['it_id']}' order by io_type asc, ct_id asc "; $res = sql_query($sql); $rowspan = mysql_num_rows($res) +1;
// 합계금액 계산 $sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price, SUM(ct_qty) as qty from {$g5['g5_shop_cart_table']} where it_id = '{$row['it_id']}' and od_id = '$od_id' "; $sum = sql_fetch($sql);
// 배송비 switch($row['ct_send_cost']) { case 1: $ct_send_cost = '착불'; break; case 2: $ct_send_cost = '무료'; break; default: $ct_send_cost = '선불'; break; }
// 조건부무료 if($row['it_sc_type'] == 2) { $sendcost = get_item_sendcost($row['it_id'], $sum['price'], $sum['qty'], $od_id);
if($sendcost == 0) $ct_send_cost = '무료'; }
for($k=0; $opt=sql_fetch_array($res); $k++) { if($opt['io_type']) $opt_price = $opt['io_price']; else $opt_price = $opt['ct_price'] + $opt['io_price'];
$sell_price = $opt_price * $opt['ct_qty']; $point = $opt['ct_point'] * $opt['ct_qty'];
if($k == 0) { ?>
$st_count1++; if($opt['ct_status'] == '주문') $st_count2++; } }
// 주문 상품의 상태가 모두 주문이면 고객 취소 가능 if($st_count1 > 0 && $st_count1 == $st_count2) $custom_cancel = true; ?>
- 주문총액
- 원
- 개별상품 쿠폰할인
- 원
- 주문금액 쿠폰할인
- 원
- 배송비
- 원
- 배송비 쿠폰할인
- 원
- 추가배송비
- 원
- 취소금액
- 원
- 총계
- 원
- 할인액
- 점
0) { ?>
0) { ?>
0) { ?>
0) { ?>
0) { ?>
0) { ?>
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인