feat: PC·모바일 주문서에 수량을 반영한 옵션가 표시 추가

장바구니 옵션금액과 수량을 곱한 합계를 상품별로 집계하여
PC·모바일 주문서에 옵션가를 표시한다. 기존 결제금액 계산은 유지한다.

검증: PC·모바일 주문서 PHP 문법 검사와 변경 내용 검토 완료.
This commit is contained in:
whitedot
2026-09-09 07:58:16 +00:00
parent fd303da77a
commit d0f136cca0
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -34,6 +34,7 @@ if(function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp')){ //
<th scope="col">상품명</th>
<th scope="col">총수량</th>
<th scope="col">판매가</th>
<th scope="col">옵션가</th>
<th scope="col">소계</th>
<th scope="col">포인트</th>
<th scope="col">배송비</th>
@@ -84,6 +85,7 @@ if(function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp')){ //
{
// 합계금액 계산
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
SUM(io_price * ct_qty) as option_price,
SUM(ct_point * ct_qty) as point,
SUM(ct_qty) as qty
from {$g5['g5_shop_cart_table']}
@@ -214,6 +216,7 @@ if(function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp')){ //
</td>
<td class="td_num"><?php echo number_format($sum['qty']); ?></td>
<td class="td_numbig text_right"><?php echo number_format($row['ct_price']); ?></td>
<td class="td_numbig text_right"><?php echo number_format($sum['option_price']); ?></td>
<td class="td_numbig text_right"><span class="total_price"><?php echo number_format($sell_price); ?></span></td>
<td class="td_numbig text_right"><?php echo number_format($point); ?></td>
<td class="td_dvr"><?php echo $ct_send_cost; ?></td>