답변 5개
에디터 못 쓰는 쪽에 적으니 약간 설명이 부족했나 봅니다.
sql select에서 it_model 추가하세요.
adm/shop_admin/orderform.php에 보면
<div class="tbl_head01 tbl_wrap">
<table>
<caption>주문 상품 목록</caption>
...
$chk_cnt = 0;
for($i=0; $row=sql_fetch_array($result); $i++) {
// 상품이미지
$image = get_it_image($row['it_id'], 50, 50);
// 상품의 옵션정보
$sql = " select ct_id, it_id, ct_price, ct_point, ct_qty, ct_option, ct_status, cp_price, ct_stock_use, ct_point_use, ct_send_cost, io_type, io_price,it_model from {$g5['g5_shop_cart_table']}
where od_id = '{$od['od_id']}'
and it_id = '{$row['it_id']}'
order by io_type asc, ct_id asc ";
$res = sql_query($sql);
$rowspan = sql_num_rows($res);
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
엑스엠엘님 정말 감사합니다
바로바로 답변도 해주시고 수고했습니다.
...................................
$sql = " select ct_id, mb_id, it_id, ct_price, ct_point, ct_qty, ct_option, ct_status, cp_price, ct_stock_use, ct_point_use, ct_send_cost, io_type, io_price, pt_msg1, pt_msg2, pt_msg3, it_model
from {$g5['g5_shop_cart_table']}
where od_id = '{$od['od_id']}'
and it_id = '{$row['it_id']}'
order by io_type asc, ct_id asc ";
$res = sql_query($sql);
$rowspan = sql_num_rows($res);
...................................
그런데
sql select에 추가하니 - 애러가 나네요.
답변에 대한 댓글 1개
$sql = " select a.ct_id, a.mb_id, a.it_id, a.ct_price, a.ct_point, a.ct_qty, a.ct_option, a.ct_status, a.cp_price, a.ct_stock_use, a.ct_point_use, a.ct_send_cost, a.io_type, a.io_price, a.pt_msg1, a.pt_msg2, a.pt_msg3,
b.it_model
from {$g5['g5_shop_cart_table']} a
inner join {$g5['g5_shop_item_table']} b on a.it_id=b.it_id
where a.od_id = '{$od['od_id']}'
and a.it_id = '{$row['it_id']}'
order by a.io_type asc, a.ct_id asc ";
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 1개
<div class="tbl_head01 tbl_wrap">
<table>
<caption>주문 상품 목록</caption>
...
$chk_cnt = 0;
for($i=0; $row=sql_fetch_array($result); $i++) {
// 상품이미지
$image = get_it_image($row['it_id'], 50, 50);
// 상품의 옵션정보
$sql = " select ct_id, it_id, ct_price, ct_point, ct_qty, ct_option, ct_status, cp_price, ct_stock_use, ct_point_use, ct_send_cost, io_type, io_price,
it_model 추가하세요.
from {$g5['g5_shop_cart_table']}
where od_id = '{$od['od_id']}'
and it_id = '{$row['it_id']}'
order by io_type asc, ct_id asc ";
$res = sql_query($sql);
$rowspan = sql_num_rows($res);
댓글을 작성하려면 로그인이 필요합니다.
관리자 주문내역수정 란"이란 곳이
/adm/shop_admin/orderform.php
이 페이지인가요?
원하시는 곳을 그림으로 표현해 주세요.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
(이제보니) 보이네요.
감사 했습니다.