diff --git a/lib/shop.lib.php b/lib/shop.lib.php index b029c913b..2e2b62280 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -1502,6 +1502,50 @@ function get_item_point($it) return $it_point; } +// 배송비 구함 +function get_sendcost($price, $cart_id, $selected=1) +{ + global $default, $g4; + + if ($default['de_send_cost_case'] == '없음') { + $send_cost = 0; + } else if($default['de_send_cost_case'] == '상한') { + // 배송비 상한 : 여러단계의 배송비 적용 가능 + $send_cost_limit = explode(";", $default['de_send_cost_limit']); + $send_cost_list = explode(";", $default['de_send_cost_list']); + $send_cost = 0; + for ($k=0; $k'; } - // 개별배송비 계산 - if($default['de_send_cost_case'] == '개별' && !$row['ct_send_cost']) { - $it_send_cost += get_item_sendcost($row['it_id'], $sum['price'], $sum['qty']); - } - $point = $sum['point']; $sell_price = $sum['price']; ?> @@ -108,23 +103,7 @@ include_once(G4_MSHOP_PATH.'/_head.php'); echo '장바구니에 담긴 상품이 없습니다.'; } else { // 배송비 계산 - if ($default['de_send_cost_case'] == '없음') - $send_cost = 0; - else if($default['de_send_cost_case'] == '상한') { - // 배송비 상한 : 여러단계의 배송비 적용 가능 - $send_cost_limit = explode(";", $default['de_send_cost_limit']); - $send_cost_list = explode(";", $default['de_send_cost_list']); - $send_cost = 0; - for ($k=0; $k diff --git a/mobile/shop/orderform.php b/mobile/shop/orderform.php index 34a508f05..c3c47883c 100644 --- a/mobile/shop/orderform.php +++ b/mobile/shop/orderform.php @@ -130,11 +130,6 @@ ob_start(); $it_name .= '
'.$it_options.'
'; } - // 개별배송비 계산 - if($default['de_send_cost_case'] == '개별' && !$row['ct_send_cost']) { - $it_send_cost += get_item_sendcost($row['it_id'], $sum['price'], $sum['qty']); - } - // 복합과세금액 if($default['de_tax_flag_use']) { if($row['it_notax']) { @@ -200,23 +195,7 @@ ob_start(); alert('장바구니가 비어 있습니다.', G4_SHOP_URL.'/cart.php'); } else { // 배송비 계산 - if ($default['de_send_cost_case'] == '없음') - $send_cost = 0; - else if($default['de_send_cost_case'] == '상한') { - // 배송비 상한 : 여러단계의 배송비 적용 가능 - $send_cost_limit = explode(";", $default['de_send_cost_limit']); - $send_cost_list = explode(";", $default['de_send_cost_list']); - $send_cost = 0; - for ($k=0; $k 0) { diff --git a/shop/cart.php b/shop/cart.php index a74f38dcf..72a9ebbae 100644 --- a/shop/cart.php +++ b/shop/cart.php @@ -96,11 +96,6 @@ include_once('./_head.php'); $it_name .= '
'.$it_options.'
'; } - // 개별배송비 계산 - if($default['de_send_cost_case'] == '개별' && !$row['ct_send_cost']) { - $it_send_cost += get_item_sendcost($row['it_id'], $sum['price'], $sum['qty']); - } - $point = $sum['point']; $sell_price = $sum['price']; ?> @@ -131,23 +126,7 @@ include_once('./_head.php'); echo '장바구니에 담긴 상품이 없습니다.'; } else { // 배송비 계산 - if ($default['de_send_cost_case'] == '없음') - $send_cost = 0; - else if($default['de_send_cost_case'] == '상한') { - // 배송비 상한 : 여러단계의 배송비 적용 가능 - $send_cost_limit = explode(";", $default['de_send_cost_limit']); - $send_cost_list = explode(";", $default['de_send_cost_list']); - $send_cost = 0; - for ($k=0; $k diff --git a/shop/orderform.php b/shop/orderform.php index 04aa1afef..6c002486f 100644 --- a/shop/orderform.php +++ b/shop/orderform.php @@ -218,11 +218,6 @@ function get_intall_file() $it_name .= '
'.$it_options.'
'; } - // 개별배송비 계산 - if($default['de_send_cost_case'] == '개별' && !$row['ct_send_cost']) { - $it_send_cost += get_item_sendcost($row['it_id'], $sum['price'], $sum['qty']); - } - // 복합과세금액 if($default['de_tax_flag_use']) { if($row['it_notax']) { @@ -288,23 +283,7 @@ function get_intall_file() alert('장바구니가 비어 있습니다.', G4_SHOP_URL.'/cart.php'); } else { // 배송비 계산 - if ($default['de_send_cost_case'] == '없음') - $send_cost = 0; - else if($default['de_send_cost_case'] == '상한') { - // 배송비 상한 : 여러단계의 배송비 적용 가능 - $send_cost_limit = explode(";", $default['de_send_cost_limit']); - $send_cost_list = explode(";", $default['de_send_cost_list']); - $send_cost = 0; - for ($k=0; $k 0) {