diff --git a/shop/itembuy.php b/shop/itembuy.php new file mode 100644 index 000000000..d53b82e19 --- /dev/null +++ b/shop/itembuy.php @@ -0,0 +1,52 @@ + \ No newline at end of file diff --git a/shop/price2/_common.php b/shop/price2/_common.php new file mode 100644 index 000000000..03a3ab6aa --- /dev/null +++ b/shop/price2/_common.php @@ -0,0 +1,3 @@ + diff --git a/shop/price2/about.php b/shop/price2/about.php new file mode 100644 index 000000000..495a98768 --- /dev/null +++ b/shop/price2/about.php @@ -0,0 +1,162 @@ +"; + +// 배송비 +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 {$g4['shop_item_table']} where it_use = '1' order by ca_id"; +$result = sql_query($sql); + +for ($i=0; $row=sql_fetch_array($result); $i++) +{ + $ca_id1 = ""; + $ca_id2 = ""; + $ca_id3 = ""; + $ca_id4 = ""; + $ca_name1 = ""; + $ca_name2 = ""; + $ca_name3 = ""; + $ca_name4 = ""; + + $ca_id1 = substr($row['ca_id'],0,2); + $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id1' "); + $ca_name1 = $row2['ca_name']; + + if (strlen($row['ca_id']) >= 4) { + $ca_id2 = substr($row['ca_id'],0,4); + $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id2' "); + $ca_name2 = $row2['ca_name']; + } + + if (strlen($row['ca_id']) >= 6) { + $ca_id3 = substr($row['ca_id'],0,6); + $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id3' "); + $ca_name3 = $row2['ca_name']; + } + + if (strlen($row['ca_id']) >= 8) { + $ca_id4 = substr($row['ca_id'],0,8); + $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id4' "); + $ca_name4 = $row2['ca_name']; + } + + $PRDATE = substr($row['it_time'], 0, 10); + + // 상품이미지 + $img_url = get_it_imageurl($row['it_id']); + + // 상품별옵션 + $sql = " select * from {$g4['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 = G4_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 "{$lt}{$row['it_id']}{$gt}"; // 쇼핑몰 상품ID +echo "{$lt}C{$gt}"; // 상품구분 C/U/D 전체EP는 일괄적으로 C +echo "{$lt}{$it_name}{$gt}"; // 상품명 +echo "{$lt}{$it_price}{$gt}"; // 판매가격 +echo "{$lt}{$buy_url}{$gt}"; // 상품의 상세페이지 주소 +echo "{$lt}".$img_url."{$gt}"; // 이미지 URL +echo "{$lt}$ca_id1{$gt}"; // 대분류 카테고리 코드 +echo "{$lt}$ca_id2{$gt}"; // 중분류 카테고리 코드 +echo "{$lt}$ca_id3{$gt}"; // 소분류 카테고리 코드 +echo "{$lt}$ca_id4{$gt}"; // 세분류 카테고리 코드 +echo "{$lt}$ca_name1{$gt}"; // 대 카테고리명 +echo "{$lt}$ca_name2{$gt}"; // 중 카테고리명 +echo "{$lt}$ca_name3{$gt}"; // 소 카테고리명 +echo "{$lt}$ca_name4{$gt}"; // 세 카테고리명 +echo "{$lt}{$gt}"; // 모델명 +echo "{$lt}{$gt}"; // 브랜드 +echo "{$lt}{$row['it_maker']}{$gt}"; // 메이커 +echo "{$lt}{$row['it_origin']}{$gt}"; // 원산지 +echo "{$lt}$PRDATE{$gt}"; // 상품등록일자 +echo "{$lt}$delivery{$gt}"; // 배송비 +echo "{$lt}{$gt}"; // 이벤트 +echo "{$lt}{$gt}"; // 쿠폰금액 +echo "{$lt}{$gt}"; // 무이자 +echo "{$lt}{$row['it_point']}{$gt}"; // 적립금 +echo "{$lt}Y{$gt}"; // 이미지변경여부 +echo "{$lt}{$gt}"; // 물품특성정보 +echo "{$lt}{$gt}"; // 상점내 매출비율 +echo "{$lt}"; // 상품정보 변경시간 +echo "\r\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/about_new.php b/shop/price2/about_new.php new file mode 100644 index 000000000..0658709c6 --- /dev/null +++ b/shop/price2/about_new.php @@ -0,0 +1,163 @@ +"; + +// 배송비 +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", G4_SERVER_TIME - 86400); +$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id"; +$result = sql_query($sql); + +for ($i=0; $row=sql_fetch_array($result); $i++) +{ + $ca_id1 = ""; + $ca_id2 = ""; + $ca_id3 = ""; + $ca_id4 = ""; + $ca_name1 = ""; + $ca_name2 = ""; + $ca_name3 = ""; + $ca_name4 = ""; + + $ca_id1 = substr($row['ca_id'],0,2); + $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id1' "); + $ca_name1 = $row2['ca_name']; + + if (strlen($row['ca_id']) >= 4) { + $ca_id2 = substr($row['ca_id'],0,4); + $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id2' "); + $ca_name2 = $row2['ca_name']; + } + + if (strlen($row['ca_id']) >= 6) { + $ca_id3 = substr($row['ca_id'],0,6); + $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id3' "); + $ca_name3 = $row2['ca_name']; + } + + if (strlen($row['ca_id']) >= 8) { + $ca_id4 = substr($row['ca_id'],0,8); + $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$ca_id4' "); + $ca_name4 = $row2['ca_name']; + } + + $PRDATE = substr($row['it_time'], 0, 10); + + // 상품이미지 + $img_url = get_it_imageurl($row['it_id']); + + // 상품별옵션 + $sql = " select * from {$g4['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 = G4_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 "{$lt}{$row['it_id']}{$gt}"; // 쇼핑몰 상품ID +echo "{$lt}C{$gt}"; // 상품구분 C/U/D 전체EP는 일괄적으로 C +echo "{$lt}{$it_name}{$gt}"; // 상품명 +echo "{$lt}{$it_price}{$gt}"; // 판매가격 +echo "{$lt}".$buy_url."{$gt}"; // 상품의 상세페이지 주소 +echo "{$lt}".$img_url."{$gt}"; // 이미지 URL +echo "{$lt}$ca_id1{$gt}"; // 대분류 카테고리 코드 +echo "{$lt}$ca_id2{$gt}"; // 중분류 카테고리 코드 +echo "{$lt}$ca_id3{$gt}"; // 소분류 카테고리 코드 +echo "{$lt}$ca_id4{$gt}"; // 세분류 카테고리 코드 +echo "{$lt}$ca_name1{$gt}"; // 대 카테고리명 +echo "{$lt}$ca_name2{$gt}"; // 중 카테고리명 +echo "{$lt}$ca_name3{$gt}"; // 소 카테고리명 +echo "{$lt}$ca_name4{$gt}"; // 세 카테고리명 +echo "{$lt}{$gt}"; // 모델명 +echo "{$lt}{$gt}"; // 브랜드 +echo "{$lt}{$row['it_maker']}{$gt}"; // 메이커 +echo "{$lt}{$row['it_origin']}{$gt}"; // 원산지 +echo "{$lt}$PRDATE{$gt}"; // 상품등록일자 +echo "{$lt}$delivery{$gt}"; // 배송비 +echo "{$lt}{$gt}"; // 이벤트 +echo "{$lt}{$gt}"; // 쿠폰금액 +echo "{$lt}{$gt}"; // 무이자 +echo "{$lt}{$row['it_point']}{$gt}"; // 적립금 +echo "{$lt}Y{$gt}"; // 이미지변경여부 +echo "{$lt}{$gt}"; // 물품특성정보 +echo "{$lt}{$gt}"; // 상점내 매출비율 +echo "{$lt}"; // 상품정보 변경시간 +echo "\r\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/auction.php b/shop/price2/auction.php new file mode 100644 index 000000000..cda3e99be --- /dev/null +++ b/shop/price2/auction.php @@ -0,0 +1,183 @@ += 4) { + $row2 = sql_fetch(" select ca_name from {$g4['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 {$g4['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 {$g4['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 {$g4['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 = G4_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 new file mode 100644 index 000000000..ea33fe84f --- /dev/null +++ b/shop/price2/auction_new.php @@ -0,0 +1,172 @@ += '$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 {$g4['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 {$g4['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 {$g4['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 {$g4['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 {$g4['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 = G4_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 new file mode 100644 index 000000000..23676256c --- /dev/null +++ b/shop/price2/auction_summary.php @@ -0,0 +1,46 @@ + \ No newline at end of file diff --git a/shop/price2/bb.php b/shop/price2/bb.php new file mode 100644 index 000000000..95b88e530 --- /dev/null +++ b/shop/price2/bb.php @@ -0,0 +1,98 @@ + + +비비 엔진페이지 + + + + + + +상품번호^대분류^중분류^소분류^제조사^모델명^상품Url^이미지Url^가격 +$str = ""; +$cnt = 0; +$sql = " select * from {$g4['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 {$g4['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 {$g4['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 {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' "); + + // 상품별옵션 + $sql = " select * from {$g4['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 = G4_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 new file mode 100644 index 000000000..314d6ed32 --- /dev/null +++ b/shop/price2/danawa.php @@ -0,0 +1,108 @@ + += 4) { + $row3 = sql_fetch(" select ca_name from {$g4['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 {$g4['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 = G4_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 new file mode 100644 index 000000000..fd62df9c5 --- /dev/null +++ b/shop/price2/daum.php @@ -0,0 +1,233 @@ +>> 시작 상품시작 알림 필수 +2 <<>> 상품ID 해당사 상품 ID 필수,varchar(50) +3 <<>> 가격 상품 가격 필수,number +4 <<>> 상품명 상품명 필수,varchar(500) +5 <<>> 상품링크 해당 상품으로 갈 상품URL 필수,varchar(255) +6 <<>> 이미지링크 상품이미지 링크 + (상품이미지 중 제일 큰이미지링크) 필수,varchar(255) +7 <<>> 대분류ID 대분류 코드 필수,varchar(20) +8 <<>> 중분류ID 중분류 코드 varchar(20) +9 <<>> 소분류ID 소분류 코드 varchar(20) +10 <<>> 세분류ID 세분류 코드 varchar(20) +11 <<>> 대분류명 필수,varchar(50) +12 <<>> 중분류명 varchar(50) +13 <<>> 소분류명 varchar(50) +14 <<>> 세분류명 varchar(50) +15 <<>> 모델명 varchar(255) +16 <<>> 브랜드명 varchar(255) +17 <<>> 제조사 varchar(255) +18 <<>> 출시일 예) 20070101 varchar(8) +19 <<>> 가중치값 숫자 ( 0 ~ ) + 쇼핑몰대분류카테고리 기준으로 + 쇼핑몰내부에서 책정되는 상품에 대한 + 인기점수 Numer(14) +20 <<>> 판매량 해당 상품이 팔린 누적판매량 number(14) +21 <<>> 쿠폰정보 퍼센트 쿠폰인 경우 + ex) 5%할인쿠폰 -> 5% + 일정가격할인 쿠폰인 경우 + ex) 3000원할인쿠폰 -> 3000원 + 만 표기 + 0%, 0원은 값을 제거 varchar(255) + +22 <<>> 무이자/할부 카드이름개월수 형식으로 표시 + ex) 삼성2~3/롯데3/현대6 + 0개월 일 때에는 값을 제거 varchar(255) +23 <<>> 적립금/포인트 텍스트정보 + 0일 때에는 값을 제거 varchar(255) +24 <<>> 배송비 무료일 때는 0 + 유료일 때는 1 + 조건부무료일 때는 2 로 표기 number +25 <<>> 배송비 조건 유료(deliv필드 코드1번) or + 조건부무료(deliv필드 코드2번) + 인 경우에 상세 조건 표기 + ex)3만원미만무료 or 2500원 varchar(20) +26 <<>> 상품평수 상품의 상품평개수가 몇 개인지 숫자만 표기 number +27 <<>> 이벤트 해당 상품의 이벤트 내용을 표기 + ex) 새봄맞이 행복이벤트! 새출발 아이템 50%SALE + 신규회원 5%+전상품 3%할인쿠폰 varchar(255) +28 <<>> 이벤트url event 페이지 URL varchar(255) +29 <<>> 실판매자샵명 실제로 상품을 판매하고있는 판매자샵 이름 표기 (판매샵의 대표자명이 아니라 판매샵명) + 판매자샵명이 없는 경우에는 판매자아이디로 표기 (자체판매하는 경우에는 표기X) varchar(20) +30 <<>> 실판매자샵주소 판매자의 미니샵 주소 or 판매자샵주소 + (자체판매하는 경우에는 표기X) varchar(50) +31 <<>> 실판매자등급 판매자등급을 5점 만점기준으로 + (자체판매하는 경우에는 표기X) number +32 <<>> 끝알림 끝알림 태그 필수 +*/ + +$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 {$g4['shop_item_table']} where it_use = '1' order by ca_id"; +$result = sql_query($sql); + +for ($i=0; $row=sql_fetch_array($result); $i++) +{ + $cate1 = $cate2 = $cate3 = $cate4 = ""; + + $row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' "); + $cate1 = $row2['ca_id']; + $catename1 = $row2['ca_name']; + + $cate2 = $cate3 = $cate4 = ""; + $catename2 = $catename3 = $catename4 = ""; + + if (strlen($row['ca_id']) >= 8) { + $row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' "); + $cate4 = $row2['ca_id']; + $catename4 = $row2['ca_name']; + } + + if (strlen($row['ca_id']) >= 6) { + $row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' "); + $cate3 = $row2['ca_id']; + $catename3 = $row2['ca_name']; + } + + if (strlen($row['ca_id']) >= 4) { + $row2 = sql_fetch(" select ca_id, ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' "); + $cate2 = $row2['ca_id']; + $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 = ""; + } + } + + // 상품이미지 + $img_url = get_it_imageurl($row['it_id']); + + // 상품별옵션 + $sql = " select * from {$g4['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 = G4_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); + + if($delivery) { + $deliv = $delivery; + $deliv2 = $delivery.'원'; + } else { + $deliv = 0; + $deliv2 = ""; + } + + $it_price = $row['it_price']; + + echo <<< HEREDOC +{$lt}begin{$gt} +{$lt}pid{$gt}{$row['it_id']} +{$lt}price{$gt}$it_price +{$lt}pname{$gt}$it_name +{$lt}pgurl{$gt}$buy_url +{$lt}igurl{$gt}$img_url +{$lt}cate1{$gt}$cate1 +{$lt}cate2{$gt}$cate2 +{$lt}cate3{$gt}$cate3 +{$lt}cate4{$gt}$cate4 +{$lt}catename1{$gt}$catename1 +{$lt}catename2{$gt}$catename2 +{$lt}catename3{$gt}$catename3 +{$lt}catename4{$gt}$catename4 +{$lt}maker{$gt}{$row['it_maker']} +{$lt}pdate{$gt}$pdate +{$lt}point{$gt}$point +{$lt}deliv{$gt}$deliv +{$lt}deliv2{$gt}$deliv2 +{$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/enuri.php b/shop/price2/enuri.php new file mode 100644 index 000000000..327243633 --- /dev/null +++ b/shop/price2/enuri.php @@ -0,0 +1,206 @@ + 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 {$g4['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 new file mode 100644 index 000000000..95ef15e8e --- /dev/null +++ b/shop/price2/enuri_list.php @@ -0,0 +1,72 @@ + + +에누리 분류페이지 + + + + + + + + + + + + + + + +{$row2['ca_name']}\n"; + $str = " \n"; + + echo $str; + + $tr = " \n \n"; +} +?> + +
대분류중분류
"; + $sql3 = "select ca_name,ca_id from {$g4['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 new file mode 100644 index 000000000..b8f2a79ac --- /dev/null +++ b/shop/price2/mymargin.php @@ -0,0 +1,175 @@ += $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 $g4; + + $tmp = G4_DATA_PATH.'/item/'.$img; + if (file_exists($tmp) && $img) { + $str = G4_DATA_URL.'/item/'.$img; + } else { + $str = G4_SHOP_URL.'/img/no_image.gif'; + } + return $str; +} + +include_once('./_common.php'); + +// 페이지당 행수 +$page_rows = 100; + +$sql = " select count(*) as cnt from {$g4['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 new file mode 100644 index 000000000..6d1aaa0b1 --- /dev/null +++ b/shop/price2/naver.php @@ -0,0 +1,196 @@ +>> 필수 상품의 시작을 알리는 필드 +<<>> 필수 판매하는 상품의 유니크한 상품ID +<<>> 필수 실제 서비스에 반영될 상품명(Title) +<<>> 필수 해당 상품의 판매가격 +<<>> 필수 해당 상품을 구매할 수 있는 상품URL +<<>> 필수 해당 상품의 이미지URL +<<>> 필수 판매하는 상품의 카테고리명(대분류) +<<>> 선택 판매하는 상품의 카테고리명(중분류) +<<>> 선택 판매하는 상품의 카테고리명(소분류) +<<>> 선택 판매하는 상품의 카테고리명(세분류) +<<>> 필수 판매하는 상품의 카테고리명(대분류) +<<>> 선택 판매하는 상품의 카테고리명(중분류) +<<>> 선택 판매하는 상품의 카테고리명(소분류) +<<>> 선택 판매하는 상품의 카테고리명(세분류) +<<>> 선택 모델명 +<<>> 선택 브랜드 +<<>> 선택 제조사 +<<>> 선택 원산지 +<<>> 필수 배송료 +<<>> 선택 이벤트 +<<>> 선택 쿠폰 +<<>> 선택 무이자 +<<>> 선택 포인트 +<<>> 선택 동영상 상품 여부 +<<>> 선택 셀러 ID (오픈마켓에 한함) +<<>> 선택 바코드 (전체EP만 사용) +<<>> 필수 상품의 마지막을 알리는 필드 +*/ + +$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 {$g4['shop_item_table']} where it_use = '1' order by ca_id"; +$result = sql_query($sql); + +for ($i=0; $row=sql_fetch_array($result); $i++) +{ + $cate1 = $cate2 = $cate3 = $cate4 = ""; + $caid1 = $caid2 = $caid3 = $caid4 = ""; + + $caid1 = substr($row['ca_id'],0,2); + $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid1' "); + $cate1 = $row2['ca_name']; + + $caid2 = $caid3 = $caid4 = ""; + $cate2 = $cate3 = $cate4 = ""; + + if (strlen($row['ca_id']) >= 8) { + $caid4 = substr($row['ca_id'],0,8); + $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid4' "); + $cate4 = $row2['ca_name']; + } + + if (strlen($row['ca_id']) >= 6) { + $caid3 = substr($row['ca_id'],0,6); + $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid3' "); + $cate3 = $row2['ca_name']; + } + + if (strlen($row['ca_id']) >= 4) { + $caid2 = substr($row['ca_id'],0,4); + $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid2' "); + $cate2 = $row2['ca_name']; + } + + // 상품이미지 + $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 {$g4['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 = G4_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}mapid{$gt}{$row['it_id']} +{$lt}pname{$gt}$it_name +{$lt}price{$gt}$it_price +{$lt}pgurl{$gt}$buy_url +{$lt}igurl{$gt}$img_url +{$lt}cate1{$gt}$cate1 +{$lt}cate2{$gt}$cate2 +{$lt}cate3{$gt}$cate3 +{$lt}cate4{$gt}$cate4 +{$lt}caid1{$gt}$caid1 +{$lt}caid2{$gt}$caid2 +{$lt}caid3{$gt}$caid3 +{$lt}caid4{$gt}$caid4 +{$lt}model{$gt} +{$lt}brand{$gt} +{$lt}maker{$gt}{$row['it_maker']} +{$lt}origi{$gt}{$row['it_origin']} +{$lt}deliv{$gt}$delivery +{$lt}event{$gt} +{$lt}coupo{$gt} +{$lt}pcard{$gt} +{$lt}point{$gt}{$row['it_point']} +{$lt}mvurl{$gt} +{$lt}selid{$gt} +{$lt}barcode{$gt} +{$lt}ftend{$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/naver_new.php b/shop/price2/naver_new.php new file mode 100644 index 000000000..943cbabea --- /dev/null +++ b/shop/price2/naver_new.php @@ -0,0 +1,198 @@ +>> 필수 상품의 시작을 알리는 필드 +<<>> 필수 판매하는 상품의 유니크한 상품ID +<<>> 필수 실제 서비스에 반영될 상품명(Title) +<<>> 필수 해당 상품의 판매가격 +<<>> 필수 해당 상품을 구매할 수 있는 상품URL +<<>> 필수 해당 상품의 이미지URL +<<>> 필수 판매하는 상품의 카테고리명(대분류) +<<>> 선택 판매하는 상품의 카테고리명(중분류) +<<>> 선택 판매하는 상품의 카테고리명(소분류) +<<>> 선택 판매하는 상품의 카테고리명(세분류) +<<>> 필수 판매하는 상품의 카테고리명(대분류) +<<>> 선택 판매하는 상품의 카테고리명(중분류) +<<>> 선택 판매하는 상품의 카테고리명(소분류) +<<>> 선택 판매하는 상품의 카테고리명(세분류) +<<>> 선택 모델명 +<<>> 선택 브랜드 +<<>> 선택 제조사 +<<>> 선택 원산지 +<<>> 필수 배송료 +<<>> 선택 이벤트 +<<>> 선택 쿠폰 +<<>> 선택 무이자 +<<>> 선택 포인트 +<<>> 선택 동영상 상품 여부 +<<>> 선택 셀러 ID (오픈마켓에 한함) +<<>> 선택 바코드 (전체EP만 사용) +<<>> 필수 상품의 마지막을 알리는 필드 +*/ + +$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", G4_SERVER_TIME - 86400); +$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id"; +$result = sql_query($sql); + +for ($i=0; $row=sql_fetch_array($result); $i++) +{ + $cate1 = $cate2 = $cate3 = $cate4 = ""; + $caid1 = $caid2 = $caid3 = $caid4 = ""; + + $caid1 = substr($row['ca_id'],0,2); + $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid1' "); + $cate1 = $row2['ca_name']; + + if (strlen($row['ca_id']) >= 8) { + $caid4 = substr($row['ca_id'],0,8); + $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid4' "); + $cate4 = $row2['ca_name']; + } + + if (strlen($row['ca_id']) >= 6) { + $caid3 = substr($row['ca_id'],0,6); + $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid3' "); + $cate3 = $row2['ca_name']; + } + + if (strlen($row['ca_id']) >= 4) { + $caid2 = substr($row['ca_id'],0,4); + $row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '$caid2' "); + $cate2 = $row2['ca_name']; + } + + // 배송비 상한가 미만이면 배송비 적용 + $delivery = 0; + if ($row['it_price'] < $cost_limit) { + $delivery = $send_cost; + } + + // 상품이미지 + $img_url = get_it_imageurl($row['it_id']); + + // 상품별옵션 + $sql = " select * from {$g4['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 = G4_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}mapid{$gt}{$row['it_id']} +{$lt}pname{$gt}$it_name +{$lt}price{$gt}$it_price +{$lt}pgurl{$gt}$buy_url +{$lt}igurl{$gt}$img_url +{$lt}cate1{$gt}$cate1 +{$lt}cate2{$gt}$cate2 +{$lt}cate3{$gt}$cate3 +{$lt}cate4{$gt}$cate4 +{$lt}caid1{$gt}$caid1 +{$lt}caid2{$gt}$caid2 +{$lt}caid3{$gt}$caid3 +{$lt}caid4{$gt}$caid4 +{$lt}model{$gt} +{$lt}brand{$gt} +{$lt}maker{$gt}{$row['it_maker']} +{$lt}origi{$gt}{$row['it_origin']} +{$lt}deliv{$gt}$delivery +{$lt}event{$gt} +{$lt}coupo{$gt} +{$lt}pcard{$gt} +{$lt}point{$gt}{$row['it_point']} +{$lt}mvurl{$gt} +{$lt}selid{$gt} +{$lt}barcode{$gt} +{$lt}ftend{$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/naver_new_summary.php b/shop/price2/naver_new_summary.php new file mode 100644 index 000000000..25a691d38 --- /dev/null +++ b/shop/price2/naver_new_summary.php @@ -0,0 +1,97 @@ +>> 필수 상품의 시작을 알리는 필드 +<<>> 판매하는 상품의 유니크한 상품ID +<<>> 실제 서비스에 반영될 상품명(Title) +<<>> 해당 상품의 판매가격 +<<>> I(신규상품) / U (업데이트상품) / D (품절상품) +<<>> 상품정보 생성 시각 +<<>> 필수 상품의 마지막을 알리는 필드 +*/ + +$lt = "<<<"; +$gt = ">>>"; + +$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400); +$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id"; +$result = sql_query($sql); + +for ($i=0; $row=sql_fetch_array($result); $i++) +{ + // 상품별옵션 + $sql = " select * from {$g4['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']; + $it_price = $row['it_price']; + $stock_qty = get_it_stock_qty($row['it_id']); + + echo "{$lt}begin{$gt}\n"; + echo "{$lt}mapid{$gt}{$row['it_id']}\n"; + if ($stock_qty <= 0) + { + // 품절 상품 양식 + echo "{$lt}class{$gt}D\n"; + } + else + { + // 업데이트 상품 양식 & 품절 복구 상품 양식 + echo "{$lt}pname{$gt}{$it_name}\n"; + echo "{$lt}price{$gt}{$it_price}\n"; + echo "{$lt}class{$gt}U\n"; + } + echo "{$lt}utime{$gt}{$row['it_time']}\n"; + echo "{$lt}ftend{$gt}\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/naver_summary.php b/shop/price2/naver_summary.php new file mode 100644 index 000000000..91ada4514 --- /dev/null +++ b/shop/price2/naver_summary.php @@ -0,0 +1,95 @@ +>> 필수 상품의 시작을 알리는 필드 +<<>> 판매하는 상품의 유니크한 상품ID +<<>> 실제 서비스에 반영될 상품명(Title) +<<>> 해당 상품의 판매가격 +<<>> I(신규상품) / U (업데이트상품) / D (품절상품) +<<>> 상품정보 생성 시각 +<<>> 필수 상품의 마지막을 알리는 필드 +*/ + +$lt = "<<<"; +$gt = ">>>"; + +$sql =" select it_id, it_name, it_price, it_time from {$g4['shop_item_table']} where it_use = '1' order by ca_id"; +$result = sql_query($sql); + +for ($i=0; $row=sql_fetch_array($result); $i++) +{ + // 상품별옵션 + $sql = " select * from {$g4['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']; + $it_price = $row['it_price']; + $stock_qty = get_it_stock_qty($row['it_id']); + + echo "{$lt}begin{$gt}\n"; + echo "{$lt}mapid{$gt}{$row['it_id']}\n"; + if ($stock_qty <= 0) + { + // 품절 상품 양식 + echo "{$lt}class{$gt}D\n"; + } + else + { + // 업데이트 상품 양식 & 품절 복구 상품 양식 + echo "{$lt}pname{$gt}{$it_name}\n"; + echo "{$lt}price{$gt}{$it_price}\n"; + echo "{$lt}class{$gt}U\n"; + } + echo "{$lt}utime{$gt}{$row['it_time']}\n"; + echo "{$lt}ftend{$gt}\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