목록에 자꾸 신규상품이 등록됩니다.

목록에 자꾸 신규상품이 등록됩니다.

QA

목록에 자꾸 신규상품이 등록됩니다.

본문

3731834642_1600326713.7502.png

 

분류관리에서 91번을 추가해서 웨이더/계류화, 기타 사이에 넣고싶어서 추가했습니다.

 

 

3731834642_1600326878.7731.png

 

 

보시는바와같이 , 새로추가한 분류인데 상품이 들어가있었습니다.

 

무슨 상품인가 하나하나 비교해보니

 

3731834642_1600326927.6001.png

 

 

최근등록한 아이템12개가 보여지는겁니다

 

3731834642_1600326981.8278.png

 

 

 

정착 새로 추가한 분류에 가보면 상품이 없는데말이죠.

 

 

<?php
    $ca_result = sql_query("select ca_id, ca_name from {$g5['g5_shop_category_table']} where length(ca_id) = '2' and ca_use = '1' order by ca_id");
?>

    <div class="hd_top" style="margin-top:40px;">
        <div class="hd_wrapper">
            <div class="top_left" style="width:1200px;">
                <div><img src="<?=G5_IMG_URL;?>/gallery_title.jpg" alt="" /></div>

                <?php for ($i=0; $row=sql_fetch_array($ca_result); $i++) {  ?>

                <div>
                    <div style="width:200px;float:left;min-height:200px;">
                        <div style="width:150px;height:3px;background-color:#0072bb;">
                            <span style="font-size:20px;font-weight:bold;float:left;padding:10px 5px;"><?php echo $row['ca_name']?></span>
                        </div>
                    </div>
                    <div style="padding:10px 0 20px;float:left;width:1000px;">
                        <div class="widget-box">
                            <?php echo apms_widget('basic-shop-item-gallery', $wid.$row['ca_id']);  ?>
                        </div>
                    </div>
                </div>

                <?php } ?>

            </div>
        </div>
    </div>


    <div class="nono"></div>

<div class="hd_top" style="background:url(<?=G5_IMG_URL;?>/banner.jpg) 50% bottom repeat-x;height:242px;">
    <div class="hd_wrapper">
    </div>
</div>

 

 

이렇게 출력하고있으며 해당 

 

<?php echo apms_widget('basic-shop-item-gallery', $wid.$row['ca_id']);  ?>를 들어가보면

 

 

3731834642_1600327000.4646.png

 

경로는 이렇게 되어있습니다.

 

 

<?php
if (!defined('_GNUBOARD_')) exit; //개별 페이지 접근 불가

// 추출하기
if(!$wset['rows']) {
    $wset['rows'] = 12;    
}

// 추출하기
$list = apms_item_rows($wset);
$list_cnt = count($list); // 글수

$rank = apms_rank_offset($wset['rows'], $wset['page']);

// 새상품
$is_new = (isset($wset['new']) && $wset['new']) ? $wset['new'] : 'red'; 
$new_item = ($wset['newtime']) ? $wset['newtime'] : 24;

// DC
$is_dc = (isset($wset['dc']) && $wset['dc']) ? $wset['dc'] : 'orangered'; 

// 그림자
$shadow_in = '';
$shadow_out = (isset($wset['shadow']) && $wset['shadow']) ? apms_shadow($wset['shadow']) : '';
if($shadow_out && isset($wset['inshadow']) && $wset['inshadow']) {
    $shadow_in = '<div class="in-shadow">'.$shadow_out.'</div>';
    $shadow_out = '';    
}

// 리스트
for ($i=0; $i < $list_cnt; $i++) {

    // DC
    $cur_price = $dc_per = '';
    if($list[$i]['it_cust_price'] > 0 && $list[$i]['it_price'] > 0) {
        $cur_price = '<strike> '.number_format($list[$i]['it_cust_price']).' </strike>';
        $dc_per = round((($list[$i]['it_cust_price'] - $list[$i]['it_price']) / $list[$i]['it_cust_price']) * 100);
    }

    // 라벨
    $item_label = '';
    if($wset['rank']) {
        $rank_txt = ($rank < 4) ? 'Top'.$rank : $rank.'th';
        $item_label = '<div class="label-cap bg-red">'.$rank_txt.'</div>'; $rank++;
    } else if($dc_per || $list[$i]['it_type5']) {
        $item_label = '<div class="label-cap bg-red">DC</div>';    
    } else if($list[$i]['it_type3'] || $list[$i]['pt_num'] >= (G5_SERVER_TIME - ($new_item * 3600))) {
        $item_label = '<div class="label-cap bg-'.$wset['new'].'">New</div>';
    }

    // 아이콘
    $item_icon = item_icon($list[$i]);
    $item_icon = ($item_icon) ? '<div class="label-tack">'.$item_icon.'</div>' : '';

?>
    <div class="item-row">
        <div class="item-list">
            <div class="item-image">
                <a href="<?php echo $list[$i]['href'];?>">
                    <div class="img-wrap">
                        <?php echo $shadow_in;?>
                        <?php echo $item_label;?>
                        <?php echo $item_icon;?>
                        <div class="img-item">
                            <img src="<?php echo $list[$i]['img']['src'];?>" alt="<?php echo $list[$i]['img']['alt'];?>">
                        </div>
                    </div>
                </a>
                <?php echo $shadow_out;?>
            </div>
            <div class="item-content">
                <?php if($wset['star']) { ?>
                    <div class="item-star">
                        <?php echo apms_get_star($list[$i]['it_use_avg'], $wset['star']); //평균별점 ?>
                    </div>
                <?php } ?>
                <div class="item-name">
                    <a href="<?php echo $list[$i]['href'];?>">
                        <b><?php echo $list[$i]['it_name'];?></b>
                        <div class="item-text">
                            <?php echo ($list[$i]['it_basic']) ? $list[$i]['it_basic'] : apms_cut_text($list[$i]['it_explan'], 120); ?>
                        </div>
                    </a>
                </div>
                <div class="item-price en">
                    <?php if($list[$i]['it_tel_inq']) { ?>
                        <b>Call</b>
                    <?php } else { ?>
                        <?php echo $cur_price;?>
                        <b><i class="fa fa-krw"></i> <?php echo number_format($list[$i]['it_price']);?></b>
                    <?php } ?>
                </div>
                <div class="item-details en">
                    <?php if($wset['cmt'] && $list[$i]['pt_comment']) { ?>
                        <span class="item-sp red">
                            <i class="fa fa-comment"></i> 
                            <?php echo number_format($list[$i]['pt_comment']);?>
                        </span>
                    <?php } ?>
                    <?php if($wset['buy'] && $list[$i]['it_sum_qty']) { ?>
                        <span class="item-sp blue">
                            <i class="fa fa-shopping-cart"></i>
                            <?php echo number_format($list[$i]['it_sum_qty']);?>
                        </span>
                    <?php } ?>
                    <?php if($wset['hit'] && $list[$i]['it_hit']) { ?>
                        <span class="item-sp gray">
                            <i class="fa fa-eye"></i> 
                            <?php echo number_format($list[$i]['it_hit']);?>
                        </span>
                    <?php } ?>
                    <?php if($list[$i]['it_point']) { ?>
                        <span class="item-sp green">
                            <i class="fa fa-gift"></i> 
                            <?php echo ($list[$i]['it_point_type'] == 2) ? $list[$i]['it_point'].'%' : number_format(get_item_point($list[$i]));?>
                        </span>
                    <?php } ?>
                    <?php if($dc_per) { ?>
                        <span class="item-sp orangered">
                            <i class="fa fa-bolt"></i> 
                            <?php echo $dc_per;?>% DC
                        </span>
                    <?php } ?>
                </div>
            </div>
            <?php if($wset['sns']) { ?>
                <div class="item-sns">
                    <?php 
                        $sns_url  = G5_SHOP_URL.'/item.php?it_id='.$list[$i]['it_id'];
                        $sns_title = get_text($list[$i]['it_name']);
                        $sns_img = $widget_url.'/img';
                        echo  get_sns_share_link('facebook', $sns_url, $sns_title, $sns_img.'/sns_fb.png').' ';
                        echo  get_sns_share_link('twitter', $sns_url, $sns_title, $sns_img.'/sns_twt.png').' ';
                        echo  get_sns_share_link('googleplus', $sns_url, $sns_title, $sns_img.'/sns_goo.png').' ';
                        echo  get_sns_share_link('kakaostory', $sns_url, $sns_title, $sns_img.'/sns_kakaostory.png').' ';
                        echo  get_sns_share_link('kakaotalk', $sns_url, $sns_title, $sns_img.'/sns_kakao.png').' ';
                        echo  get_sns_share_link('naverband', $sns_url, $sns_title, $sns_img.'/sns_naverband.png').' ';
                    ?>
                </div>
            <?php } ?>
        </div>
    </div>
<?php } // end for ?>
<?php if(!$list_cnt) { ?>
    <div class="item-none">등록된 상품이 없습니다.</div>
<?php } ?>
 

 

 

이렇게 출력하고있습니다.

 

테스트로 새로 상품을 올려도 메인에서는 새로 분류한 카테고리 쪽에서 뜹니다.

 

 

 

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
전체 1,010
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT