테스트 사이트 - 개발 중인 베타 버전입니다

영카트 메인 상품진열을 랜덤으로 하는 방법 채택완료

별지기천사 8년 전 조회 4,236

영카트 메인 상품진열을 랜덤으로 하는 방법을 알고 싶습니다 main.10.skin.php 이나 메인의   

           

  •                

                   

                    $list = new item_list();

                    $list->set_mobile(true);

                    $list->set_type(1);

                    $list->set_view('it_id', false);

                    $list->set_view('it_name', true);

                    $list->set_view('it_cust_price', false);           

                    $list->set_view('it_icon', true);

                    $list->set_view('sns', false);

                    echo $list->run();

                    ?>

                   

               

  • 에서 소스를 추가하는 방법이 있나요?

    댓글을 작성하려면 로그인이 필요합니다.

    답변 2개

    채택된 답변
    +20 포인트
    o
    8년 전

    </p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px;">            <li class="tabsList" readonly="true"></p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px;">                <?php if($default['de_mobile_type1_list_use']) { ?></p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px;">                <?php</p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px;">                $list = new item_list();</p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px;">                $list->set_mobile(true);</p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px;">                $list->set_type(1);</p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px;">                $list->set_view('it_id', false);</p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px;">                $list->set_view('it_name', true);</p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px;">                $list->set_view('it_cust_price', false);           </p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px;">                $list->set_view('it_icon', true);</p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px;">                $list->set_view('sns', false);</p><p style="word-break: break-all;"><span style="color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px;">                </span><font color="#484848" face="돋움, Dotum, sans-serif"><span style="font-size: 14.004px;">$list->set_order_by('RAND()'); // 이 코드를 추가하세요.</span></font> </p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px;">                echo $list->run();</p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px;">                ?></p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px;">                <?php } ?></p><p style="word-break: break-all; color: rgb(72, 72, 72); font-family: 돋움, Dotum, sans-serif; font-size: 14.004px;">            </li></p><p>

    로그인 후 평가할 수 있습니다

    답변에 대한 댓글 1개

    별지기천사
    8년 전
    빠른 답변 감사드립니다^^

    댓글을 작성하려면 로그인이 필요합니다.

    흠 그소스를 수정 하면 많은 문제가 생길수도있습니다

     

    해결 방법

    혹시 개발자라면   

        그냥 메인에서 DB 검색을 통해 서 만드시는 것을 추천 합니다

     

    개발 자가아니라면 

       제작의뢰게시판에 글을 남겨서 의뢰하세요 

       2~30만원이면 해결 됩니다

               

     

    로그인 후 평가할 수 있습니다

    댓글을 작성하려면 로그인이 필요합니다.

    답변을 작성하려면 로그인이 필요합니다.

    로그인