주문메일에서 옵션의 추가금액이 표시되도록 수정

This commit is contained in:
chicpro
2014-01-23 14:48:12 +09:00
parent 66265bfc69
commit fb68abcfef
5 changed files with 22 additions and 16 deletions

View File

@ -40,14 +40,14 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
<th scope="row" style="<?php echo $th_st; ?>">상품명</th>
<td style="<?php echo $td_st; ?>"><a href="<?php echo G5_SHOP_URL.'/item.php?it_id='.$list[$i]['it_id']; ?>" target="_blank" style="text-decoration:none"><span style="display:inline-block;vertical-align:middle"><?php echo $list[$i]['it_simg']; ?></span> <?php echo $list[$i]['it_name']; ?></a></td>
</tr>
<tr>
<th scope="row" style="<?php echo $th_st; ?>">선택옵션 </th>
<td style="<?php echo $td_st; ?>"><?php echo $list[$i]['it_opt']; ?></td>
</tr>
<tr>
<th scope="row" style="<?php echo $th_st; ?>">판매가격</th>
<td style="<?php echo $td_st; ?>"><?php echo display_price($list[$i]['ct_price']); ?></td>
</tr>
<tr>
<th scope="row" style="<?php echo $th_st; ?>">선택옵션 </th>
<td style="<?php echo $td_st; ?>"><?php echo $list[$i]['it_opt']; ?></td>
</tr>
<tr>
<th scope="row" style="<?php echo $th_st; ?>">소계</th>
<td style="<?php echo $td_st; ?>"><?php echo display_price($list[$i]['stotal_price']); ?></td>

View File

@ -40,14 +40,14 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
<th scope="row" style="<?php echo $th_st; ?>">상품명</th>
<td style="<?php echo $td_st; ?>"><a href="<?php echo G5_SHOP_URL.'/item.php?it_id='.$list[$i]['it_id']; ?>" target="_blank" style="text-decoration:none"><span style="display:inline-block;vertical-align:middle"><?php echo $list[$i]['it_simg']; ?></span> <?php echo $list[$i]['it_name']; ?></a></td>
</tr>
<tr>
<th scope="row" style="<?php echo $th_st; ?>">선택옵션 </th>
<td style="<?php echo $td_st; ?>"><?php echo $list[$i]['it_opt']; ?></td>
</tr>
<tr>
<th scope="row" style="<?php echo $th_st; ?>">판매가격</th>
<td style="<?php echo $td_st; ?>"><?php echo display_price($list[$i]['ct_price']); ?></td>
</tr>
<tr>
<th scope="row" style="<?php echo $th_st; ?>">선택옵션 </th>
<td style="<?php echo $td_st; ?>"><?php echo $list[$i]['it_opt']; ?></td>
</tr>
<tr>
<th scope="row" style="<?php echo $th_st; ?>">소계</th>
<td style="<?php echo $td_st; ?>"><?php echo display_price($list[$i]['stotal_price']); ?></td>

View File

@ -39,14 +39,14 @@ $ft_a_st = 'display:block;padding:30px 0;background:#484848;color:#fff;text-alig
<th scope="row" style="<?php echo $th_st; ?>">상품명</th>
<td style="<?php echo $td_st; ?>"><a href="<?php echo G5_SHOP_URL.'/item.php?it_id='.$list[$i]['it_id']; ?>" target="_blank" style="text-decoration:none"><span style="display:inline-block;vertical-align:middle"><?php echo $list[$i]['it_simg']; ?></span> <?php echo $list[$i]['it_name']; ?></a></td>
</tr>
<tr>
<th scope="row" style="<?php echo $th_st; ?>">선택옵션 </th>
<td style="<?php echo $td_st; ?>"><?php echo $list[$i]['it_opt']; ?></td>
</tr>
<tr>
<th scope="row" style="<?php echo $th_st; ?>">판매가격</th>
<td style="<?php echo $td_st; ?>"><?php echo display_price($list[$i]['ct_price']); ?></td>
</tr>
<tr>
<th scope="row" style="<?php echo $th_st; ?>">선택옵션 </th>
<td style="<?php echo $td_st; ?>"><?php echo $list[$i]['it_opt']; ?></td>
</tr>
</tbody>
</table>

View File

@ -36,7 +36,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$sum = sql_fetch($sql);
// 옵션정보
$sql2 = " select ct_option, ct_qty
$sql2 = " select ct_option, ct_qty, io_price
from {$g5['g5_shop_cart_table']}
where it_id = '{$row['it_id']}' and od_id = '$od_id' and ct_select = '1'
order by io_type asc, ct_id asc ";
@ -48,7 +48,10 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
for($k=0; $row2=sql_fetch_array($result2); $k++) {
if($k == 0)
$options .= '<ul'.$options_ul.'>'.PHP_EOL;
$options .= '<li'.$options_li.'>'.$row2['ct_option'].' '.$row2['ct_qty'].'개</li>'.PHP_EOL;
$price_plus = '';
if($row2['io_price'] >= 0)
$price_plus = '+';
$options .= '<li'.$options_li.'>'.$row2['ct_option'].' ('.$price_plus.display_price($row2['io_price']).') '.$row2['ct_qty'].'개</li>'.PHP_EOL;
}
if($k > 0)

View File

@ -57,7 +57,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$sum = sql_fetch($sql);
// 옵션정보
$sql2 = " select ct_option, ct_qty
$sql2 = " select ct_option, ct_qty, io_price
from {$g5['g5_shop_cart_table']}
where it_id = '{$row['it_id']}' and od_id = '$od_id' and ct_select = '1'
order by io_type asc, ct_id asc ";
@ -69,7 +69,10 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
for($k=0; $row2=sql_fetch_array($result2); $k++) {
if($k == 0)
$options .= '<ul'.$options_ul.'>'.PHP_EOL;
$options .= '<li'.$options_li.'>'.$row2['ct_option'].' '.$row2['ct_qty'].'개</li>'.PHP_EOL;
$price_plus = '';
if($row2['io_price'] >= 0)
$price_plus = '+';
$options .= '<li'.$options_li.'>'.$row2['ct_option'].' ('.$price_plus.display_price($row2['io_price']).') '.$row2['ct_qty'].'개</li>'.PHP_EOL;
}
if($k > 0)