가격비교 사이트 코드 수정 1차

This commit is contained in:
chicpro
2013-11-27 18:01:08 +09:00
parent 29ed3dcddb
commit 24dedb8418
27 changed files with 84 additions and 2082 deletions

View File

@ -42,18 +42,6 @@ Field Status Notes
$lt = "<<<";
$gt = ">>>";
// 배송비
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];
}
// 하루전의 상품
$time = date("Y-m-d 00:00:00", G5_SERVER_TIME - 86400);
$sql =" select * from {$g5['g5_shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
@ -86,12 +74,6 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
$cate2 = $row2['ca_name'];
}
// 배송비 상한가 미만이면 배송비 적용
$delivery = 0;
if ($row['it_price'] < $cost_limit) {
$delivery = $send_cost;
}
// 상품이미지
$img_url = get_it_imageurl($row['it_id']);
@ -103,9 +85,8 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
if(!$opt_count) {
$it_name = $row['it_name'];
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'];
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
$delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1);
$it_price = $row['it_price'];
$delivery = get_item_sendcost2($row['it_id'], $it_price, 1);
echo <<< HEREDOC
{$lt}begin{$gt}
@ -150,8 +131,7 @@ HEREDOC;
}
$buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&amp;opt='.$row2['io_id'];
$it_price = $row['it_price'] + $row2['io_price'];
if($default['de_send_cost_case'] == '개별' && $row['it_sc_method'] != 1)
$delivery = get_item_sendcost($row['it_id'], ($row['it_price'] + $row2['io_price']), 1);
$delivery = get_item_sendcost2($row['it_id'], $it_price, 1);
echo <<< HEREDOC
{$lt}begin{$gt}