From 3d1faa91817b82f0e6a1ac3e0cb1d0be5eb61fb8 Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 3 May 2021 11:22:21 +0900 Subject: [PATCH] =?UTF-8?q?=EB=84=A4=EC=9D=B4=EB=B2=84=20=EC=A7=80?= =?UTF-8?q?=EC=8B=9D=20=EC=87=BC=ED=95=91=EC=83=81=ED=92=88=20EP=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/price/naver.php | 17 +++++++++++++++-- theme/basic/shop/mypage.php | 2 +- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/shop/price/naver.php b/shop/price/naver.php index 1164957d5..fc6248c8e 100644 --- a/shop/price/naver.php +++ b/shop/price/naver.php @@ -38,7 +38,7 @@ class 필수(요약) I (신규상품) / U (업데이트 상 ob_start(); -echo "id{$tab}title{$tab}price_pc{$tab}link{$tab}image_link{$tab}category_name1{$tab}category_name2{$tab}category_name3{$tab}category_name4{$tab}model_number{$tab}brand{$tab}maker{$tab}origin{$tab}point{$tab}shipping"; +echo "id{$tab}title{$tab}price_pc{$tab}link{$tab}image_link{$tab}category_name1{$tab}category_name2{$tab}category_name3{$tab}category_name4{$tab}brand{$tab}maker{$tab}origin{$tab}point{$tab}review_count{$tab}shipping{$tab}class{$tab}update_time"; $sql =" select * from {$g5['g5_shop_item_table']} where it_use = '1' and it_soldout = '0' and it_tel_inq = '0' and it_price > '0' order by ca_id"; $result = sql_query($sql); @@ -81,7 +81,20 @@ class 필수(요약) I (신규상품) / U (업데이트 상 $item_link = shop_item_url($row['it_id']); - echo "\n{$row['it_id']}{$tab}{$row['it_name']}{$tab}{$row['it_price']}{$tab}{$item_link}{$tab}{$img_url}{$tab}{$cate1}{$tab}{$cate2}{$tab}{$cate3}{$tab}{$cate4}{$tab}{$row['it_model']}{$tab}{$row['it_brand']}{$tab}{$row['it_maker']}{$tab}{$row['it_origin']}{$tab}{$it_point}{$tab}{$delivery}"; + // 상태 + $class = 'U'; + $stock_qty = get_it_stock_qty($row['it_id']); + + if(substr($row['it_time'], 0, 10) == G5_TIME_YMD && $row['it_update_time'] >= $row['it_time']) + $class = 'I'; + + if($row['it_soldout'] || $stock_qty < 0) + $class = 'D'; + + // 리뷰 카운트 + $review_count = (int) $row['it_use_cnt']; + + echo "\n{$row['it_id']}{$tab}{$row['it_name']}{$tab}{$row['it_price']}{$tab}{$item_link}{$tab}{$img_url}{$tab}{$cate1}{$tab}{$cate2}{$tab}{$cate3}{$tab}{$cate4}{$tab}{$row['it_brand']}{$tab}{$row['it_maker']}{$tab}{$row['it_origin']}{$tab}{$it_point}{$tab}{$review_count}{$tab}{$delivery}{$tab}{$class}{$tab}{$row['it_update_time']}"; } $content = ob_get_contents(); diff --git a/theme/basic/shop/mypage.php b/theme/basic/shop/mypage.php index 7faafd093..28fbca14f 100644 --- a/theme/basic/shop/mypage.php +++ b/theme/basic/shop/mypage.php @@ -54,7 +54,7 @@
  • 스크랩 - 0 +