From d0f136cca04f2d7437a3a07bcac67ad0afa3da86 Mon Sep 17 00:00:00 2001 From: whitedot Date: Mon, 7 Sep 2026 06:38:15 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20PC=C2=B7=EB=AA=A8=EB=B0=94=EC=9D=BC=20?= =?UTF-8?q?=EC=A3=BC=EB=AC=B8=EC=84=9C=EC=97=90=20=EC=88=98=EB=9F=89?= =?UTF-8?q?=EC=9D=84=20=EB=B0=98=EC=98=81=ED=95=9C=20=EC=98=B5=EC=85=98?= =?UTF-8?q?=EA=B0=80=20=ED=91=9C=EC=8B=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 장바구니 옵션금액과 수량을 곱한 합계를 상품별로 집계하여 PC·모바일 주문서에 옵션가를 표시한다. 기존 결제금액 계산은 유지한다. 검증: PC·모바일 주문서 PHP 문법 검사와 변경 내용 검토 완료. --- mobile/shop/orderform.sub.php | 2 ++ shop/orderform.sub.php | 3 +++ 2 files changed, 5 insertions(+) diff --git a/mobile/shop/orderform.sub.php b/mobile/shop/orderform.sub.php index c4c3ff837..af1a45e41 100644 --- a/mobile/shop/orderform.sub.php +++ b/mobile/shop/orderform.sub.php @@ -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();
판매가 + 옵션가 수량 배송비 적립포인트 diff --git a/shop/orderform.sub.php b/shop/orderform.sub.php index 4925d76c8..8b82bda5d 100644 --- a/shop/orderform.sub.php +++ b/shop/orderform.sub.php @@ -34,6 +34,7 @@ if(function_exists('is_use_easypay') && is_use_easypay('global_nhnkcp')){ // 상품명 총수량 판매가 + 옵션가 소계 포인트 배송비 @@ -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')){ // +