#196 주문 메일에서 옵션 출력 코드 수정

This commit is contained in:
chicpro
2013-05-28 16:00:12 +09:00
parent 66df73071d
commit 497ee91b72
3 changed files with 41 additions and 34 deletions

View File

@ -32,12 +32,29 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
and uq_id = '$tmp_uq_id' ";
$sum = sql_fetch($sql);
// 옵션정보
$sql2 = " select ct_option, ct_qty
from {$g4['shop_cart_table']}
where it_id = '{$row['it_id']}' and uq_id = '$tmp_uq_id'
order by io_type asc, ct_num asc, ct_id asc ";
$result2 = sql_query($sql2);
$options = '';
for($k=0; $row2=sql_fetch_array($result2); $k++) {
if($k == 0)
$options .= '<ul>'.PHP_EOL;
$options .= '<li>'.$row2['ct_option'].' '.$row2['ct_qty'].'개</li>'.PHP_EOL;
}
if($k > 0)
$options .= '</ul>';
$list[$i]['g_dir'] = G4_URL;
$list[$i]['it_id'] = $row['it_id'];
$list[$i]['it_simg'] = get_it_image($row['it_id'], $default['de_simg_width'], $default['de_simg_height']);
$list[$i]['it_name'] = $row['it_name'];
$list[$i]['it_origin'] = $row['it_origin'];
$list[$i]['it_opt'] = print_item_options($row['it_id'], $tmp_uq_id);
$list[$i]['it_opt'] = $options;
$list[$i]['ct_price'] = $row['ct_price'];
$list[$i]['stotal_amount'] = $sum['price'];
$list[$i]['stotal_point'] = $sum['point'];