가격비교 사이트 코드 수정 1차
This commit is contained in:
@ -42,18 +42,6 @@ $gt = ">>>";
|
||||
$shop_url = G5_SHOP_URL;
|
||||
$data_url = G5_DATA_URL;
|
||||
|
||||
// 배송비
|
||||
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']);
|
||||
$cost_limit = (int)$send_cost_limit[0];
|
||||
$send_cost = (int)$send_cost_list[0];
|
||||
}
|
||||
|
||||
$sql =" select * from {$g5['g5_shop_item_table']} where it_use = '1' order by ca_id";
|
||||
$result = sql_query($sql);
|
||||
|
||||
@ -87,16 +75,8 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$cate2 = $row2['ca_name'];
|
||||
}
|
||||
|
||||
// 배송비 상한가 미만이면 배송비 적용
|
||||
$delivery = 0;
|
||||
if ($default['de_send_cost_case'] == '상한' && $row['it_price'] < $cost_limit) {
|
||||
$delivery = $send_cost;
|
||||
}
|
||||
|
||||
// 개별배송비계산
|
||||
if($default['de_send_cost_case'] == '개별') {
|
||||
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
|
||||
}
|
||||
// 배송비계산
|
||||
$delivery = get_item_sendcost2($row['it_id'], $row['it_price'], 1);
|
||||
|
||||
// 상품이미지
|
||||
$img_url = get_it_imageurl($row['it_id']);
|
||||
|
||||
Reference in New Issue
Block a user