get_sendcost 함수 수정
This commit is contained in:
@ -1704,6 +1704,7 @@ function get_sendcost($cart_id, $selected=1)
|
|||||||
$send_cost = 0;
|
$send_cost = 0;
|
||||||
$total_price = 0;
|
$total_price = 0;
|
||||||
$total_send_cost = 0;
|
$total_send_cost = 0;
|
||||||
|
$diff = 0;
|
||||||
|
|
||||||
$sql = " select distinct it_id
|
$sql = " select distinct it_id
|
||||||
from {$g5['g5_shop_cart_table']}
|
from {$g5['g5_shop_cart_table']}
|
||||||
@ -1729,12 +1730,14 @@ function get_sendcost($cart_id, $selected=1)
|
|||||||
if($send_cost > 0)
|
if($send_cost > 0)
|
||||||
$total_send_cost += $send_cost;
|
$total_send_cost += $send_cost;
|
||||||
|
|
||||||
if($default['de_send_cost_case'] == '차등' && $send_cost == -1)
|
if($default['de_send_cost_case'] == '차등' && $send_cost == -1) {
|
||||||
$total_price += $sum['price'];
|
$total_price += $sum['price'];
|
||||||
|
$diff++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$send_cost = 0;
|
$send_cost = 0;
|
||||||
if($default['de_send_cost_case'] == '차등' && $total_price >= 0) {
|
if($default['de_send_cost_case'] == '차등' && $total_price >= 0 && $diff > 0) {
|
||||||
// 금액별차등 : 여러단계의 배송비 적용 가능
|
// 금액별차등 : 여러단계의 배송비 적용 가능
|
||||||
$send_cost_limit = explode(";", $default['de_send_cost_limit']);
|
$send_cost_limit = explode(";", $default['de_send_cost_limit']);
|
||||||
$send_cost_list = explode(";", $default['de_send_cost_list']);
|
$send_cost_list = explode(";", $default['de_send_cost_list']);
|
||||||
|
|||||||
Reference in New Issue
Block a user