From 24dedb8418ff58ce6373a1ac30c45d1e15549e43 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 27 Nov 2013 18:01:08 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B0=80=EA=B2=A9=EB=B9=84=EA=B5=90=20?= =?UTF-8?q?=EC=82=AC=EC=9D=B4=ED=8A=B8=20=EC=BD=94=EB=93=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=201=EC=B0=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/shop.lib.php | 57 +++++++++ shop/price/about.php | 20 +--- shop/price/about_new.php | 20 +--- shop/price/auction.php | 133 --------------------- shop/price/auction_new.php | 129 -------------------- shop/price/auction_summary.php | 46 ------- shop/price/bb.php | 60 ---------- shop/price/danawa.php | 64 ---------- shop/price/daum.php | 38 ++---- shop/price/enuri.php | 158 ------------------------ shop/price/enuri_list.php | 72 ----------- shop/price/mymargin.php | 138 --------------------- shop/price/naver.php | 24 +--- shop/price/naver_new.php | 24 +--- shop/price2/about.php | 20 +--- shop/price2/about_new.php | 20 +--- shop/price2/auction.php | 183 ---------------------------- shop/price2/auction_new.php | 172 -------------------------- shop/price2/auction_summary.php | 46 ------- shop/price2/bb.php | 98 --------------- shop/price2/danawa.php | 108 ----------------- shop/price2/daum.php | 35 +----- shop/price2/enuri.php | 206 -------------------------------- shop/price2/enuri_list.php | 72 ----------- shop/price2/mymargin.php | 175 --------------------------- shop/price2/naver.php | 24 +--- shop/price2/naver_new.php | 24 +--- 27 files changed, 84 insertions(+), 2082 deletions(-) delete mode 100644 shop/price/auction.php delete mode 100644 shop/price/auction_new.php delete mode 100644 shop/price/auction_summary.php delete mode 100644 shop/price/bb.php delete mode 100644 shop/price/danawa.php delete mode 100644 shop/price/enuri.php delete mode 100644 shop/price/enuri_list.php delete mode 100644 shop/price/mymargin.php delete mode 100644 shop/price2/auction.php delete mode 100644 shop/price2/auction_new.php delete mode 100644 shop/price2/auction_summary.php delete mode 100644 shop/price2/bb.php delete mode 100644 shop/price2/danawa.php delete mode 100644 shop/price2/enuri.php delete mode 100644 shop/price2/enuri_list.php delete mode 100644 shop/price2/mymargin.php diff --git a/lib/shop.lib.php b/lib/shop.lib.php index 223624d82..9d9d1baaf 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -1751,6 +1751,63 @@ function get_item_sendcost($it_id, $price, $qty) } +// 가격비교 사이트 상품 배송비 +function get_item_sendcost2($it_id, $price, $qty) +{ + global $g5, $default; + + $sql = " select it_id, it_sc_type, it_sc_method, it_sc_price, it_sc_minimum, it_sc_qty + from {$g5['g5_shop_item_table']} + where it_id = '$it_id' "; + $it = sql_fetch($sql); + if(!$it['it_id']) + return 0; + + $sendcost = 0; + + // 쇼핑몰 기본설정을 사용할 때 + if($it['it_sc_type'] == 0) + { + if($default['de_send_cost_case'] == '차등') { + // 금액별차등 : 여러단계의 배송비 적용 가능 + $send_cost_limit = explode(";", $default['de_send_cost_limit']); + $send_cost_list = explode(";", $default['de_send_cost_list']); + + for ($k=0; $k 1) { + if($it['it_sc_type'] == 2) { // 조건부무료 + if($price >= $it['it_sc_minimum']) + $sendcost = 0; + else + $sendcost = $it['it_sc_price']; + } else if($it['it_sc_type'] == 3) { // 유료배송 + $sendcost = $it['it_sc_price']; + } else { // 수량별 부과 + if(!$it['it_sc_qty']) + $it['it_sc_qty'] = 1; + + $q = ceil((int)$qty / (int)$it['it_sc_qty']); + $sendcost = (int)$it['it_sc_price'] * $q; + } + } else if($it['it_sc_type'] == 1) { // 무료배송 + $sendcost = 0; + } + } + + return $sendcost; +} + + // 쿠폰 사용체크 function is_used_coupon($mb_id, $cp_id) { diff --git a/shop/price/about.php b/shop/price/about.php index ffb609474..26fe2f6d3 100644 --- a/shop/price/about.php +++ b/shop/price/about.php @@ -6,20 +6,6 @@ ob_start(); $lt = ""; $gt = ""; -// 배송비 -if ($default['de_send_cost_case'] == '없음') - $delivery = 0; -else if($default['de_send_cost_case'] == '상한') -{ - // 배송비 상한일 경우 제일 앞에 배송비 얼마 금액 이하 - $tmp = explode(';', $default['de_send_cost_limit']); - $delivery_limit = (int)$tmp[0]; - - // 배송비 상한일 경우 제일 앞에 배송비 - $tmp = explode(';', $default['de_send_cost_list']); - $delivery = (int)$tmp[0]; -} - $sql =" select * from {$g5['g5_shop_item_table']} where it_use = '1' order by ca_id"; $result = sql_query($sql); @@ -58,10 +44,8 @@ for ($i=0; $row=sql_fetch_array($result); $i++) $PRDATE = substr($row['it_time'], 0, 10); - // 개별배송비계산 - 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']); diff --git a/shop/price/about_new.php b/shop/price/about_new.php index 02aa9905e..d0c71b8eb 100644 --- a/shop/price/about_new.php +++ b/shop/price/about_new.php @@ -6,20 +6,6 @@ ob_start(); $lt = ""; $gt = ""; -// 배송비 -if ($default['de_send_cost_case'] == '없음') - $delivery = 0; -else if($default['de_send_cost_case'] == '상한') -{ - // 배송비 상한일 경우 제일 앞에 배송비 얼마 금액 이하 - $tmp = explode(';', $default['de_send_cost_limit']); - $delivery_limit = (int)$tmp[0]; - - // 배송비 상한일 경우 제일 앞에 배송비 - $tmp = explode(';', $default['de_send_cost_list']); - $delivery = (int)$tmp[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"; $result = sql_query($sql); @@ -59,10 +45,8 @@ for ($i=0; $row=sql_fetch_array($result); $i++) $PRDATE = substr($row['it_time'], 0, 10); - // 개별배송비계산 - 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']); diff --git a/shop/price/auction.php b/shop/price/auction.php deleted file mode 100644 index ce2181142..000000000 --- a/shop/price/auction.php +++ /dev/null @@ -1,133 +0,0 @@ -= 4) { - $row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' "); - $ca_name2 = $row2['ca_name']; - } - - if (strlen($row['ca_id']) >= 6) { - $row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' "); - $ca_name3 = $row2['ca_name']; - } - - if (strlen($row['ca_id']) >= 8) { - $row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' "); - $ca_name4 = $row2['ca_name']; - } - - $PRDATE = substr($row['it_time'], 0, 10); - - // 개별배송비계산 - if($default['de_send_cost_case'] == '개별') { - $delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1); - } - - // 상품이미지 - $img_url = get_it_imageurl($row['it_id']); - -echo <<< HEREDOC -{$lt}_BEGIN{$gt} -{$lt}PRODID{$gt}{$row['it_id']} -{$lt}PRNAME{$gt}{$row['it_name']} -{$lt}_PRICE{$gt}{$row['it_price']} -{$lt}PRDURL{$gt}$shop_url/item.php?it_id={$row['it_id']} -{$lt}IMGURL{$gt}$img_url -{$lt}CATE_1{$gt}$ca_name1 -{$lt}CATE_2{$gt}$ca_name2 -{$lt}CATE_3{$gt}$ca_name3 -{$lt}CATE_4{$gt}$ca_name4 -{$lt}_MODEL{$gt} -{$lt}_BRAND{$gt} -{$lt}_MAKER{$gt}{$row['it_maker']} -{$lt}ORIGIN{$gt}{$row['it_origin']} -{$lt}PRDATE{$gt}$PRDATE -{$lt}DELIVR{$gt}0/$delivery_limit/$delivery -{$lt}_EVENT{$gt} -{$lt}COUPON{$gt} -{$lt}PRCARD{$gt} -{$lt}_POINT{$gt}{$row['it_point']} -{$lt}MODIMG{$gt}Y -{$lt}SRATIO{$gt} -{$lt}___END{$gt} - -HEREDOC; -} - -$content = ob_get_contents(); -ob_end_clean(); - -// 100124 : 옥션에서는 아직 utf-8 을 지원하지 않고 있음 -$content = iconv('utf-8', 'euc-kr', $content); - -echo $content; -?> \ No newline at end of file diff --git a/shop/price/auction_new.php b/shop/price/auction_new.php deleted file mode 100644 index d34ea5c24..000000000 --- a/shop/price/auction_new.php +++ /dev/null @@ -1,129 +0,0 @@ -= '$time' order by ca_id"; -$result = sql_query($sql); - -for ($i=0; $row=sql_fetch_array($result); $i++) -{ - $row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' "); - $ca_name1 = $row2['ca_name']; - - if (strlen($row['ca_id']) >= 4) { - $row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' "); - $ca_name2 = $row2['ca_name']; - } - - if (strlen($row['ca_id']) >= 6) { - $row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' "); - $ca_name3 = $row2['ca_name']; - } - - if (strlen($row['ca_id']) >= 8) { - $row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' "); - $ca_name4 = $row2['ca_name']; - } - - $PRDATE = substr($row['it_time'], 0, 10); - - // 개별배송비계산 - if($default['de_send_cost_case'] == '개별') { - $delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1); - } - - // 상품이미지 - $img_url = get_it_imageurl($row['it_id']); - -echo <<< HEREDOC -{$lt}_BEGIN{$gt} -{$lt}PRODID{$gt}{$row['it_id']} -{$lt}PRNAME{$gt}{$row['it_name']} -{$lt}_PRICE{$gt}{$row['it_price']} -{$lt}PRDURL{$gt}$shop_url/item.php?it_id={$row['it_id']} -{$lt}IMGURL{$gt}$img_url -{$lt}CATE_1{$gt}$ca_name1 -{$lt}CATE_2{$gt}$ca_name2 -{$lt}CATE_3{$gt}$ca_name3 -{$lt}CATE_4{$gt}$ca_name4 -{$lt}_MAKER{$gt}{$row['it_maker']} -{$lt}ORIGIN{$gt}{$row['it_origin']} -{$lt}PRDATE{$gt}$PRDATE -{$lt}DELIVR{$gt}0/$delivery_limit/$delivery -{$lt}_POINT{$gt}{$row['it_point']} -{$lt}___END{$gt} - -HEREDOC; -} - -$content = ob_get_contents(); -ob_end_clean(); - -// 100124 : 옥션에서는 아직 utf-8 을 지원하지 않고 있음 -$content = iconv('utf-8', 'euc-kr', $content); - -echo $content; -?> \ No newline at end of file diff --git a/shop/price/auction_summary.php b/shop/price/auction_summary.php deleted file mode 100644 index 27e6161cc..000000000 --- a/shop/price/auction_summary.php +++ /dev/null @@ -1,46 +0,0 @@ - \ No newline at end of file diff --git a/shop/price/bb.php b/shop/price/bb.php deleted file mode 100644 index 4aed30083..000000000 --- a/shop/price/bb.php +++ /dev/null @@ -1,60 +0,0 @@ - - -비비 엔진페이지 - - - - - - -상품번호^대분류^중분류^소분류^제조사^모델명^상품Url^이미지Url^가격 -$str = ""; -$sql = " select * from {$g5['g5_shop_item_table']} - where it_use = '1' - order by ca_id "; -$result = sql_query($sql); -for ($i=0; $row=mysql_fetch_array($result); $i++) -{ - $image = get_it_imageurl($row['it_id']); - - $row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' "); - - if (strlen($row['ca_id']) >= 4) - $row3 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' "); - - if (strlen($row['ca_id']) >= 6) - $row4 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' "); - - // 재고검사해서 없으면 상품가격을 0 으로 설정 - $stock = get_it_stock_qty($row['it_id']); - if ($stock <= 0) - $row['it_price'] = 0; - - $str .= "

{$row['it_id']}^{$row2['ca_name']}^{$row3['ca_name']}^{$row4['ca_name']}^{$row['it_maker']}^{$row['it_name']}^".G5_SHOP_URL."/item.php?it_id={$row['it_id']}^$image^{$row['it_price']}"; - $str .= "\n"; -} - -echo "

" . $config['cf_title'] . " 입니다. 총 (".$i.") 건 입니다.\n"; -echo $str; -?> - - \ No newline at end of file diff --git a/shop/price/danawa.php b/shop/price/danawa.php deleted file mode 100644 index 29531ac4c..000000000 --- a/shop/price/danawa.php +++ /dev/null @@ -1,64 +0,0 @@ - -= 4) { - $row3 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' "); - $ca_name .= "|" . $row3['ca_name']; - } - - // 개별배송비계산 - if($default['de_send_cost_case'] == '개별') { - $delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1); - } - - // 상품이미지 - $img_url = get_it_imageurl($row['it_id']); - - $str .= $nl; - $str .= $row['it_id']; // 상품ID - $str .= "^$ca_name"; // 카테고리 - $str .= "^{$row['it_name']}"; // 상품명 - $str .= "^{$row['it_maker']}"; // 제조사 - $str .= "^".$img_url; // 이미지URL - $str .= "^".G5_SHOP_URL."/item.php?it_id={$row['it_id']}"; // 상품URL - $str .= "^{$row['it_price']}"; // 가격 - $str .= "^{$row['it_point']}"; // 적립금 - $str .= "^"; // 할인쿠폰 - $str .= "^"; // 무이자할부 - $str .= "^"; // 사은품 - $str .= "^{$row['it_model']}"; // 모델명 - $str .= "^"; // 추가정보 - $str .= "^"; // 출시일 - $str .= "^$delivery"; // 배송료 - - $nl = "\n"; -} - -echo $str; -?> \ No newline at end of file diff --git a/shop/price/daum.php b/shop/price/daum.php index c3b9a652a..d446f88e6 100644 --- a/shop/price/daum.php +++ b/shop/price/daum.php @@ -67,20 +67,6 @@ $gt = ">>>"; $shop_url = G5_SHOP_URL; $data_url = G5_DATA_URL; -// 배송비 -if ($default['de_send_cost_case'] == '없음') { - $deliv = 0; - $deliv2 = ""; -} -else if($default['de_send_cost_case'] == '상한') { - $deliv = 1; - // 배송비 상한일 경우 제일 앞에 배송비 - $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]; - $deliv2 = (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); @@ -113,25 +99,17 @@ for ($i=0; $row=sql_fetch_array($result); $i++) $catename2 = $row2['ca_name']; } - // 배송비 상한가 미만이면 배송비 적용 - $delivery = 0; - if ($row['it_price'] < $cost_limit) { - $delivery = $send_cost; - } - $pdate = date("Ymd", strtotime($row['it_time'])); $point = ($row['it_point'] <= 0) ? "" : (int)$row['it_point']; - // 개별배송비계산 - if($default['de_send_cost_case'] == '개별') { - $delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1); - if($delivery) { - $deliv = $delivery; - $deliv2 = $delivery.'원'; - } else { - $deliv = 0; - $deliv2 = ""; - } + // 배송비계산 + $delivery = get_item_sendcost2($row['it_id'], $row['it_price'], 1); + if($delivery) { + $deliv = $delivery; + $deliv2 = $delivery.'원'; + } else { + $deliv = 0; + $deliv2 = ""; } // 상품이미지 diff --git a/shop/price/enuri.php b/shop/price/enuri.php deleted file mode 100644 index 23102c85b..000000000 --- a/shop/price/enuri.php +++ /dev/null @@ -1,158 +0,0 @@ - 1) - { - $str .= ""; - } - - $start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1; - $end_page = $start_page + $write_pages - 1; - - if ($end_page >= $total_page) $end_page = $total_page; - - if ($start_page > 1) - $str .= "..."; - - if ($total_page > 1) - for ($k=$start_page;$k<=$end_page;$k++) - if ($cur_page != $k) - $str .= "[$k]"; - else - $str .= " $k "; - - if ($total_page > $end_page) - $str .= "..."; - - if ($cur_page < $total_page) - { - $str .= ""; - } - $str .= ""; - - return $str; -} - - -include_once('./_common.php'); - -// 페이지당 행수 -$page_rows = 1000; - -$sql = " select count(*) as cnt from {$g5['g5_shop_item_table']} where it_use = '1' and ca_id LIKE '$ca_id%'"; -$row = sql_fetch($sql); -$total_count = $row['cnt']; -?> - -에누리 엔진페이지 - - - - - - - - -

상품수 : 개 - - - - - - - - - - - - - - - - - - - - - - - - - - - '; -} - -?> -
번호제품명가격재고유무배송웹상품이미지할인쿠폰계산서제조사상품코드
'.$num.''.$row['it_name'].''.number_format($row['it_price']).''.$stock.''.$send_cost.''.$img_url.'1N'.get_text($row['it_maker']).''.$row['it_id'].'
- -

- - - - \ No newline at end of file diff --git a/shop/price/enuri_list.php b/shop/price/enuri_list.php deleted file mode 100644 index 495d69f7b..000000000 --- a/shop/price/enuri_list.php +++ /dev/null @@ -1,72 +0,0 @@ - - -에누리 분류페이지 - - - - - - - - - - - - - - - -{$row2['ca_name']}\n"; - $str = " \n"; - - echo $str; - - $tr = " \n \n"; -} -?> - -
대분류중분류
"; - $sql3 = "select ca_name,ca_id from {$g5['g5_shop_category_table']} where ca_id LIKE '".$row['ca_id']."%' AND LENGTH(ca_id) !=2 AND LENGTH(ca_id) < 5"; - $result3 = @mysql_query($sql3); - - $bar = ""; - - for ($j=0;$row3=mysql_fetch_array($result3);$j++) - { - $str .= $bar; - $str .= "{$row3['ca_name']}"; - $bar = " | \n"; - } - - $str .= "
- - - \ No newline at end of file diff --git a/shop/price/mymargin.php b/shop/price/mymargin.php deleted file mode 100644 index dee3c2620..000000000 --- a/shop/price/mymargin.php +++ /dev/null @@ -1,138 +0,0 @@ -= $total_page) $end_page = $total_page; - - if ($start_page > 1) - $str .= "..."; - - if ($total_page > 1) - for ($k=$start_page;$k<=$end_page;$k++) - if ($cur_page != $k) - $str .= "[$k]"; - else - $str .= " $k "; - - if ($total_page > $end_page) - $str .= "..."; - - return $str; -} - -function it_image($img) -{ - global $g5; - - $tmp = G5_DATA_PATH.'/item/'.$img; - if (file_exists($tmp) && $img) { - $str = G5_DATA_URL.'/item/'.$img; - } else { - $str = G5_SHOP_URL.'/img/no_image.gif'; - } - return $str; -} - -include_once('./_common.php'); - -// 페이지당 행수 -$page_rows = 100; - -$sql = " select count(*) as cnt from {$g5['g5_shop_item_table']} where it_use = '1' "; -$row = sql_fetch($sql); -$total_count = $row['cnt']; -?> - -마이마진 엔진페이지 - - - - - - - - - - - - - - - - - - - - - - - - - - - - "; -} -?> - - - -
일련번호제품코드제품명제품가격상품분류제조사이미지
$num{$row['it_id']}{$row['it_name']}{$row['it_price']}$category{$row['it_maker']}$image
 
- - - \ No newline at end of file diff --git a/shop/price/naver.php b/shop/price/naver.php index 1b2c1a5b4..131a6adba 100644 --- a/shop/price/naver.php +++ b/shop/price/naver.php @@ -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']); diff --git a/shop/price/naver_new.php b/shop/price/naver_new.php index 0d38bf32e..566a8e6f0 100644 --- a/shop/price/naver_new.php +++ b/shop/price/naver_new.php @@ -44,18 +44,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]; -} - // 하루전의 상품 $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"; @@ -88,16 +76,8 @@ for ($i=0; $row=sql_fetch_array($result); $i++) $cate2 = $row2['ca_name']; } - // 배송비 상한가 미만이면 배송비 적용 - $delivery = 0; - if ($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']); diff --git a/shop/price2/about.php b/shop/price2/about.php index 33e5e6a1f..d5fad348a 100644 --- a/shop/price2/about.php +++ b/shop/price2/about.php @@ -6,20 +6,6 @@ ob_start(); $lt = ""; $gt = ""; -// 배송비 -if ($default['de_send_cost_case'] == '없음') - $delivery = 0; -else if($default['de_send_cost_case'] == '상한') -{ - // 배송비 상한일 경우 제일 앞에 배송비 얼마 금액 이하 - $tmp = explode(';', $default['de_send_cost_limit']); - $delivery_limit = (int)$tmp[0]; - - // 배송비 상한일 경우 제일 앞에 배송비 - $tmp = explode(';', $default['de_send_cost_list']); - $delivery = (int)$tmp[0]; -} - $sql =" select * from {$g5['g5_shop_item_table']} where it_use = '1' order by ca_id"; $result = sql_query($sql); @@ -69,9 +55,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 "{$lt}{$row['it_id']}{$gt}"; // 쇼핑몰 상품ID echo "{$lt}C{$gt}"; // 상품구분 C/U/D 전체EP는 일괄적으로 C @@ -115,8 +100,7 @@ echo "\r\n"; } $buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&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 "{$lt}{$row['it_id']}{$gt}"; // 쇼핑몰 상품ID echo "{$lt}C{$gt}"; // 상품구분 C/U/D 전체EP는 일괄적으로 C diff --git a/shop/price2/about_new.php b/shop/price2/about_new.php index 3c844b81b..516136bad 100644 --- a/shop/price2/about_new.php +++ b/shop/price2/about_new.php @@ -6,20 +6,6 @@ ob_start(); $lt = ""; $gt = ""; -// 배송비 -if ($default['de_send_cost_case'] == '없음') - $delivery = 0; -else if($default['de_send_cost_case'] == '상한') -{ - // 배송비 상한일 경우 제일 앞에 배송비 얼마 금액 이하 - $tmp = explode(';', $default['de_send_cost_limit']); - $delivery_limit = (int)$tmp[0]; - - // 배송비 상한일 경우 제일 앞에 배송비 - $tmp = explode(';', $default['de_send_cost_list']); - $delivery = (int)$tmp[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"; $result = sql_query($sql); @@ -70,9 +56,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 "{$lt}{$row['it_id']}{$gt}"; // 쇼핑몰 상품ID echo "{$lt}C{$gt}"; // 상품구분 C/U/D 전체EP는 일괄적으로 C @@ -116,8 +101,7 @@ echo "\r\n"; } $buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&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 "{$lt}{$row['it_id']}{$gt}"; // 쇼핑몰 상품ID echo "{$lt}C{$gt}"; // 상품구분 C/U/D 전체EP는 일괄적으로 C diff --git a/shop/price2/auction.php b/shop/price2/auction.php deleted file mode 100644 index 4ba1c7775..000000000 --- a/shop/price2/auction.php +++ /dev/null @@ -1,183 +0,0 @@ -= 4) { - $row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' "); - $ca_name2 = $row2['ca_name']; - } - - if (strlen($row['ca_id']) >= 6) { - $row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' "); - $ca_name3 = $row2['ca_name']; - } - - if (strlen($row['ca_id']) >= 8) { - $row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' "); - $ca_name4 = $row2['ca_name']; - } - - $PRDATE = substr($row['it_time'], 0, 10); - - // 상품이미지 - $img_url = get_it_imageurl($row['it_id']); - - // 상품별옵션 - $sql = " select * from {$g5['g5_shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc "; - $result2 = sql_query($sql); - $opt_count = @mysql_num_rows($result2); - - 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']; - -echo <<< HEREDOC -{$lt}_BEGIN{$gt} -{$lt}PRODID{$gt}{$row['it_id']} -{$lt}PRNAME{$gt}$it_name -{$lt}_PRICE{$gt}$it_price -{$lt}PRDURL{$gt}$buy_url -{$lt}IMGURL{$gt}$img_url -{$lt}CATE_1{$gt}$ca_name1 -{$lt}CATE_2{$gt}$ca_name2 -{$lt}CATE_3{$gt}$ca_name3 -{$lt}CATE_4{$gt}$ca_name4 -{$lt}_MODEL{$gt} -{$lt}_BRAND{$gt} -{$lt}_MAKER{$gt}{$row['it_maker']} -{$lt}ORIGIN{$gt}{$row['it_origin']} -{$lt}PRDATE{$gt}$PRDATE -{$lt}DELIVR{$gt}0/$delivery_limit/$delivery -{$lt}_EVENT{$gt} -{$lt}COUPON{$gt} -{$lt}PRCARD{$gt} -{$lt}_POINT{$gt}{$row['it_point']} -{$lt}MODIMG{$gt}Y -{$lt}SRATIO{$gt} -{$lt}___END{$gt} - -HEREDOC; - - } else { - $subj = explode(',', $row['it_option_subject']); - for($k=0; $row2=sql_fetch_array($result2); $k++) { - $it_name = $row['it_name'].' '; - $opt = explode(chr(30), $row2['io_id']); - $sep = ''; - for($j=0; $j \ No newline at end of file diff --git a/shop/price2/auction_new.php b/shop/price2/auction_new.php deleted file mode 100644 index 8b4cabe66..000000000 --- a/shop/price2/auction_new.php +++ /dev/null @@ -1,172 +0,0 @@ -= '$time' order by ca_id"; -$result = sql_query($sql); - -for ($i=0; $row=sql_fetch_array($result); $i++) -{ - $row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' "); - $ca_name1 = $row2['ca_name']; - - if (strlen($row['ca_id']) >= 4) { - $row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' "); - $ca_name2 = $row2['ca_name']; - } - - if (strlen($row['ca_id']) >= 6) { - $row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' "); - $ca_name3 = $row2['ca_name']; - } - - if (strlen($row['ca_id']) >= 8) { - $row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' "); - $ca_name4 = $row2['ca_name']; - } - - $PRDATE = substr($row['it_time'], 0, 10); - - // 상품이미지 - $img_url = get_it_imageurl($row['it_id']); - - // 상품별옵션 - $sql = " select * from {$g5['g5_shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc "; - $result2 = sql_query($sql); - $opt_count = @mysql_num_rows($result2); - - 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']; - -echo <<< HEREDOC -{$lt}_BEGIN{$gt} -{$lt}PRODID{$gt}{$row['it_id']} -{$lt}PRNAME{$gt}$it_name -{$lt}_PRICE{$gt}$it_price -{$lt}PRDURL{$gt}$buy_url -{$lt}IMGURL{$gt}$img_url -{$lt}CATE_1{$gt}$ca_name1 -{$lt}CATE_2{$gt}$ca_name2 -{$lt}CATE_3{$gt}$ca_name3 -{$lt}CATE_4{$gt}$ca_name4 -{$lt}_MAKER{$gt}{$row['it_maker']} -{$lt}ORIGIN{$gt}{$row['it_origin']} -{$lt}PRDATE{$gt}$PRDATE -{$lt}DELIVR{$gt}0/$delivery_limit/$delivery -{$lt}_POINT{$gt}{$row['it_point']} -{$lt}___END{$gt} - -HEREDOC; - - } else { - $subj = explode(',', $row['it_option_subject']); - for($k=0; $row2=sql_fetch_array($result2); $k++) { - $it_name = $row['it_name'].' '; - $opt = explode(chr(30), $row2['io_id']); - $sep = ''; - for($j=0; $j \ No newline at end of file diff --git a/shop/price2/auction_summary.php b/shop/price2/auction_summary.php deleted file mode 100644 index 27e6161cc..000000000 --- a/shop/price2/auction_summary.php +++ /dev/null @@ -1,46 +0,0 @@ - \ No newline at end of file diff --git a/shop/price2/bb.php b/shop/price2/bb.php deleted file mode 100644 index 691f187c0..000000000 --- a/shop/price2/bb.php +++ /dev/null @@ -1,98 +0,0 @@ - - -비비 엔진페이지 - - - - - - -상품번호^대분류^중분류^소분류^제조사^모델명^상품Url^이미지Url^가격 -$str = ""; -$cnt = 0; -$sql = " select * from {$g5['g5_shop_item_table']} - where it_use = '1' - order by ca_id "; -$result = sql_query($sql); -for ($i=0; $row=mysql_fetch_array($result); $i++) -{ - $image = get_it_imageurl($row['it_id']); - - $row2 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' "); - - if (strlen($row['ca_id']) >= 4) - $row3 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' "); - - if (strlen($row['ca_id']) >= 6) - $row4 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' "); - - // 상품별옵션 - $sql = " select * from {$g5['g5_shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc "; - $result2 = sql_query($sql); - $opt_count = @mysql_num_rows($result2); - - 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']; - - $stock = get_it_stock_qty($row['it_id']); - if ($stock <= 0) - $it_price = 0; - - $str .= "

{$row['it_id']}^{$row2['ca_name']}^{$row3['ca_name']}^{$row4['ca_name']}^{$row['it_maker']}^{$row['it_name']}^{$buy_url}^$image^{$it_price}"; - $str .= "\n"; - $cnt++; - - } else { - $subj = explode(',', $row['it_option_subject']); - for($k=0; $row2=sql_fetch_array($result2); $k++) { - $it_name = $row['it_name'].' '; - $opt = explode(chr(30), $row2['io_id']); - $sep = ''; - for($j=0; $j" . $config['cf_title'] . " 입니다. 총 (".$cnt.") 건 입니다.\n"; -echo $str; -?> - - \ No newline at end of file diff --git a/shop/price2/danawa.php b/shop/price2/danawa.php deleted file mode 100644 index 34a97e1c1..000000000 --- a/shop/price2/danawa.php +++ /dev/null @@ -1,108 +0,0 @@ - -= 4) { - $row3 = sql_fetch(" select ca_name from {$g5['g5_shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' "); - $ca_name .= "|" . $row3['ca_name']; - } - - // 상품이미지 - $img_url = get_it_imageurl($row['it_id']); - - // 상품별옵션 - $sql = " select * from {$g5['g5_shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc "; - $result2 = sql_query($sql); - $opt_count = @mysql_num_rows($result2); - - 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']; - - $str .= $nl; - $str .= $row['it_id']; // 상품ID - $str .= "^$ca_name"; // 카테고리 - $str .= "^{$it_name}"; // 상품명 - $str .= "^{$row['it_maker']}"; // 제조사 - $str .= "^".$img_url; // 이미지URL - $str .= "^{$buy_url}"; // 상품URL - $str .= "^{$it_price}"; // 가격 - $str .= "^{$row['it_point']}"; // 적립금 - $str .= "^"; // 할인쿠폰 - $str .= "^"; // 무이자할부 - $str .= "^"; // 사은품 - $str .= "^{$row['it_model']}"; // 모델명 - $str .= "^"; // 추가정보 - $str .= "^"; // 출시일 - $str .= "^$delivery"; // 배송료 - - $nl = "\n"; - - } else { - $subj = explode(',', $row['it_option_subject']); - for($k=0; $row2=sql_fetch_array($result2); $k++) { - $it_name = $row['it_name'].' '; - $opt = explode(chr(30), $row2['io_id']); - $sep = ''; - for($j=0; $j \ No newline at end of file diff --git a/shop/price2/daum.php b/shop/price2/daum.php index 305f1e646..ca92cf883 100644 --- a/shop/price2/daum.php +++ b/shop/price2/daum.php @@ -65,20 +65,6 @@ header("Content-Type: text/html; charset=utf-8"); $lt = "<<<"; $gt = ">>>"; -// 배송비 -if ($default['de_send_cost_case'] == '없음') { - $deliv = 0; - $deliv2 = ""; -} -else if($default['de_send_cost_case'] == '상한') { - $deliv = 1; - // 배송비 상한일 경우 제일 앞에 배송비 - $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]; - $deliv2 = (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); @@ -120,18 +106,6 @@ for ($i=0; $row=sql_fetch_array($result); $i++) $pdate = date("Ymd", strtotime($row['it_time'])); $point = ($row['it_point'] <= 0) ? "" : (int)$row['it_point']; - // 개별배송비계산 - if($default['de_send_cost_case'] == '개별') { - $delivery = get_item_sendcost($row['it_id'], $row['it_price'], 1); - if($delivery) { - $deliv = $delivery; - $deliv2 = $delivery.'원'; - } else { - $deliv = 0; - $deliv2 = ""; - } - } - // 상품이미지 $img_url = get_it_imageurl($row['it_id']); @@ -143,8 +117,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); if($delivery) { $deliv = $delivery; @@ -154,8 +128,6 @@ for ($i=0; $row=sql_fetch_array($result); $i++) $deliv2 = ""; } - $it_price = $row['it_price']; - echo <<< HEREDOC {$lt}begin{$gt} {$lt}pid{$gt}{$row['it_id']} @@ -192,8 +164,7 @@ HEREDOC; } $buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&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); if($delivery) { $deliv = $delivery; diff --git a/shop/price2/enuri.php b/shop/price2/enuri.php deleted file mode 100644 index 6f022f39a..000000000 --- a/shop/price2/enuri.php +++ /dev/null @@ -1,206 +0,0 @@ - 1) - { - $str .= ""; - } - - $start_page = ( ( (int)( ($cur_page - 1 ) / $write_pages ) ) * $write_pages ) + 1; - $end_page = $start_page + $write_pages - 1; - - if ($end_page >= $total_page) $end_page = $total_page; - - if ($start_page > 1) - $str .= "..."; - - if ($total_page > 1) - for ($k=$start_page;$k<=$end_page;$k++) - if ($cur_page != $k) - $str .= "[$k]"; - else - $str .= " $k "; - - if ($total_page > $end_page) - $str .= "..."; - - if ($cur_page < $total_page) - { - $str .= ""; - } - $str .= ""; - - return $str; -} - - -include_once('./_common.php'); - -// 페이지당 행수 -$page_rows = 1000; - -$sql = " select count(*) as cnt from {$g5['g5_shop_item_table']} where it_use = '1' and ca_id LIKE '$ca_id%'"; -$row = sql_fetch($sql); -$total_count = $row['cnt']; -?> - -에누리 엔진페이지 - - - - - - - - -

상품수 : 개 - - - - - - - - - - - - - - - - - - - - - - - - - - - '; - - } else { - $subj = explode(',', $row['it_option_subject']); - for($k=0; $row2=sql_fetch_array($result2); $k++) { - $it_name = $row['it_name'].' '; - $opt = explode(chr(30), $row2['io_id']); - $sep = ''; - for($j=0; $j - - - - - - - - - - - - '; - } - } -} - -?> -
번호제품명가격재고유무배송웹상품이미지할인쿠폰계산서제조사상품코드
'.$num.''.$it_name.''.number_format($it_price).''.$stock.''.$send_cost.''.$img_url.'1N'.get_text($row['it_maker']).''.$row['it_id'].'
'.$num.''.$it_name.''.number_format($it_price).''.$stock.''.$send_cost.''.$img_url.'1N'.get_text($row['it_maker']).''.$row['it_id'].'
- -

- - - - \ No newline at end of file diff --git a/shop/price2/enuri_list.php b/shop/price2/enuri_list.php deleted file mode 100644 index 495d69f7b..000000000 --- a/shop/price2/enuri_list.php +++ /dev/null @@ -1,72 +0,0 @@ - - -에누리 분류페이지 - - - - - - - - - - - - - - - -{$row2['ca_name']}\n"; - $str = " \n"; - - echo $str; - - $tr = " \n \n"; -} -?> - -
대분류중분류
"; - $sql3 = "select ca_name,ca_id from {$g5['g5_shop_category_table']} where ca_id LIKE '".$row['ca_id']."%' AND LENGTH(ca_id) !=2 AND LENGTH(ca_id) < 5"; - $result3 = @mysql_query($sql3); - - $bar = ""; - - for ($j=0;$row3=mysql_fetch_array($result3);$j++) - { - $str .= $bar; - $str .= "{$row3['ca_name']}"; - $bar = " | \n"; - } - - $str .= "
- - - \ No newline at end of file diff --git a/shop/price2/mymargin.php b/shop/price2/mymargin.php deleted file mode 100644 index c153ad9b6..000000000 --- a/shop/price2/mymargin.php +++ /dev/null @@ -1,175 +0,0 @@ -= $total_page) $end_page = $total_page; - - if ($start_page > 1) - $str .= "..."; - - if ($total_page > 1) - for ($k=$start_page;$k<=$end_page;$k++) - if ($cur_page != $k) - $str .= "[$k]"; - else - $str .= " $k "; - - if ($total_page > $end_page) - $str .= "..."; - - return $str; -} - -function it_image($img) -{ - global $g5; - - $tmp = G5_DATA_PATH.'/item/'.$img; - if (file_exists($tmp) && $img) { - $str = G5_DATA_URL.'/item/'.$img; - } else { - $str = G5_SHOP_URL.'/img/no_image.gif'; - } - return $str; -} - -include_once('./_common.php'); - -// 페이지당 행수 -$page_rows = 100; - -$sql = " select count(*) as cnt from {$g5['g5_shop_item_table']} where it_use = '1' "; -$row = sql_fetch($sql); -$total_count = $row['cnt']; -?> - -마이마진 엔진페이지 - - - - - - - - - - - - - - - - - - - - - - - - - - - - "; - - } else { - $subj = explode(',', $row['it_option_subject']); - for($k=0; $row2=sql_fetch_array($result2); $k++) { - $it_name = $row['it_name'].' '; - $opt = explode(chr(30), $row2['io_id']); - $sep = ''; - for($j=0; $j - - - - - - - - - "; - - } - } -} -?> - - - -
일련번호제품코드제품명제품가격상품분류제조사이미지
$num{$row['it_id']}{$it_name}{$it_price}$category{$row['it_maker']}$image
$num{$row['it_id']}{$it_name}{$it_price}$category{$row['it_maker']}$image
 
- - - \ No newline at end of file diff --git a/shop/price2/naver.php b/shop/price2/naver.php index fbacae7c2..73d7e661e 100644 --- a/shop/price2/naver.php +++ b/shop/price2/naver.php @@ -40,18 +40,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]; -} - $sql =" select * from {$g5['g5_shop_item_table']} where it_use = '1' order by ca_id"; $result = sql_query($sql); @@ -88,12 +76,6 @@ for ($i=0; $row=sql_fetch_array($result); $i++) // 상품이미지 $img_url = get_it_imageurl($row['it_id']); - // 배송비 상한가 미만이면 배송비 적용 - $delivery = 0; - if ($default['de_send_cost_case'] == '상한' && $row['it_price'] < $cost_limit) { - $delivery = $send_cost; - } - // 상품별옵션 $sql = " select * from {$g5['g5_shop_item_option_table']} where it_id = '{$row['it_id']}' and io_type = '0' and io_use = '1' order by io_no asc "; $result2 = sql_query($sql); @@ -102,9 +84,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} @@ -149,8 +130,7 @@ HEREDOC; } $buy_url = G5_SHOP_URL.'/itembuy.php?it_id='.$row['it_id'].'&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} diff --git a/shop/price2/naver_new.php b/shop/price2/naver_new.php index 3a5d353ed..d0f067b35 100644 --- a/shop/price2/naver_new.php +++ b/shop/price2/naver_new.php @@ -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'].'&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}