기타 추적되지 않는 파일들..

This commit is contained in:
2025-07-02 14:16:37 +09:00
parent 2d7bbdca89
commit b6080d2e47
74 changed files with 14184 additions and 2028 deletions

View File

@ -117,9 +117,31 @@ $i_temp_point = isset($_POST['od_temp_point']) ? (int) $_POST['od_temp_point'] :
// 주문금액이 상이함
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as od_price,
COUNT(distinct it_id) as cart_count
if(isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) { //예약상품일 경우 합계방식을 변경함
$od_names = isset($_POST['od_names_final']) ? $_POST['od_names_final'] : '';
$od_hps = isset($_POST['od_hps_final']) ? $_POST['od_hps_final'] : '';
$sql = " SELECT
SUM(
IF(io_type = 1,
(COALESCE(io_price, 0) * COALESCE(ct_qty, 1)),
((COALESCE(ct_price, 0) + COALESCE(io_price, 0)) * COALESCE(ct_qty, 1) * COALESCE(NULLIF(ct_date_d, 0), 1))
+ (COALESCE(ct_user_pri1, 0) * COALESCE(ct_user_qty1, 0))
+ (COALESCE(ct_user_pri2, 0) * COALESCE(ct_user_qty2, 0))
+ (COALESCE(ct_user_pri3, 0) * COALESCE(ct_user_qty3, 0))
)
) AS od_price,
COUNT(DISTINCT it_id) AS cart_count
FROM {$g5['g5_shop_cart_table']}
WHERE od_id = '$tmp_cart_id'
AND ct_select = '1' ";
} else {
$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as od_price,
COUNT(distinct it_id) as cart_count
from {$g5['g5_shop_cart_table']} where od_id = '$tmp_cart_id' and ct_select = '1' ";
}
$row = sql_fetch($sql);
$tot_ct_price = $row['od_price'];
$cart_count = $row['cart_count'];
@ -233,9 +255,13 @@ if($is_member) {
$tot_cp_price = $tot_it_cp_price + $tot_od_cp_price;
}
if ((int)($row['od_price'] - $tot_cp_price) !== $i_price) {
if(function_exists('add_order_post_log')) add_order_post_log('쿠폰금액 최종 계산 Error.');
die("Error.");
if(isset($rb_item_res['res_is']) && $rb_item_res['res_is'] == 1) { //예약이라면 통과
} else {
if ((int)($row['od_price'] - $tot_cp_price) !== $i_price) {
if(function_exists('add_order_post_log')) add_order_post_log('쿠폰금액 최종 계산 Error.');
die("Error.");
}
}
// 배송비가 상이함
@ -626,6 +652,8 @@ $sql = " insert {$g5['g5_shop_order_table']}
od_email = '$od_email',
od_tel = '$od_tel',
od_hp = '$od_hp',
od_names = '$od_names',
od_hps = '$od_hps',
od_zip1 = '$od_zip1',
od_zip2 = '$od_zip2',
od_addr1 = '$od_addr1',