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

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

검증: PC·모바일 주문서 PHP 문법 검사와 변경 내용 검토 완료.
This commit is contained in:
whitedot committed 2026-09-09 07:58:16 +00:00
1 parent fd303da77a
commit d0f136cca0
2 files changed
+5

No files matched your search

+2
View File
@@ -68,6 +68,7 @@ ob_start();
{
// 합계금액 계산
$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']}
@@ -200,6 +201,7 @@ ob_start();
<div class="li_prqty">
<span class="prqty_price li_prqty_sp"><span>판매가 </span><?php echo number_format($row['ct_price']); ?></span>
<span class="prqty_option li_prqty_sp"><span>옵션가 </span><?php echo number_format($sum['option_price']); ?></span>
<span class="prqty_qty li_prqty_sp"><span>수량 </span><?php echo number_format($sum['qty']); ?></span>
<span class="prqty_sc li_prqty_sp"><span>배송비 </span><?php echo $ct_send_cost; ?></span>
<span class="total_point li_prqty_sp"><span>적립포인트 </span><strong><?php echo number_format($sum['point']); ?></strong></span>