#300 배송비 관련 코드 수정

This commit is contained in:
chicpro
2013-09-24 13:07:09 +09:00
parent f5d59fb183
commit de94493584
13 changed files with 150 additions and 93 deletions

View File

@ -126,7 +126,7 @@ include_once('./_head.php');
echo '<tr><td colspan="7" class="empty_table">장바구니에 담긴 상품이 없습니다.</td></tr>';
} else {
// 배송비 계산
$send_cost = get_sendcost($tot_sell_price, $s_cart_id, 0);
$send_cost = get_sendcost($s_cart_id, 0);
}
?>
</tbody>

View File

@ -197,6 +197,10 @@ else // 장바구니에 담기
continue;
}
// 배송비결제
if($it['it_sc_type'] > 1 && $it['it_sc_method'] == 1)
$ct_send_cost = 1;
$sql .= $comma."( '$tmp_cart_id', '{$member['mb_id']}', '{$it['it_id']}', '{$it['it_name']}', '쇼핑', '{$it['it_price']}', '$point', '0', '0', '$io_value', '$ct_qty', '{$it['it_notax']}', '$io_id', '$io_type', '$io_price', '".G5_TIME_YMDHIS."', '$REMOTE_ADDR', '$ct_send_cost', '$sw_direct', '$ct_select' )";
$comma = ' , ';
$ct_count++;

View File

@ -293,7 +293,7 @@ function get_intall_file()
alert('장바구니가 비어 있습니다.', G5_SHOP_URL.'/cart.php');
} else {
// 배송비 계산
$send_cost = get_sendcost($tot_sell_price, $s_cart_id);
$send_cost = get_sendcost($s_cart_id);
}
// 복합과세처리

View File

@ -182,7 +182,7 @@ if ((int)($row['od_price'] - $tot_cp_price) !== $i_price) {
}
// 배송비가 상이함
$send_cost = get_sendcost($row['od_price'], $tmp_cart_id);
$send_cost = get_sendcost($tmp_cart_id);
$tot_sc_cp_price = 0;
if($is_member && $send_cost > 0) {