상품출력 코드 수정방법 문의

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
상품출력 코드 수정방법 문의

QA

상품출력 코드 수정방법 문의

답변 1

본문

1. 상품 출력하는 코드로 아래 코드를 사용하고 있는데

여기서 베스트 상품에 있는 카테고리 10번 상품들만 출력하려면 어디를 수정해야하나요?

참고로 상단에 있는 [ca_id]를 10으로 변경했도 원하는 상품이 출력 되지 않아요 ㅜㅜ 

 

2.  best/new/sale icon들을 출력하려면 어떻게 수정해야하나요??

 

답변해주시면 감사하겠습니다~!

 

<code>

                            <?
                        $qry = sql_query(" select * from g5_shop_item where ca_id like '{$cas[ca_id]}%' and it_type1 = '1' limit 0, 10 ");
                        for ($i=0;$its = sql_fetch_array($qry);$i++){

                            if (5 >= 2) { // 1줄 이미지 : 2개 이상
                                if ($i%5 == 0) $sct_last = 'sct_last'; // 줄 마지막
                                else if ($i%5 == 1) $sct_last = 'sct_clear'; // 줄 첫번째
                                else $sct_last = '';
                            } else { // 1줄 이미지 : 1개
                                $sct_last = 'sct_clear';
                            }

                        ?>
                        <div class="sct_li" style="width:232px">
                            <div class="sct_img">
                                <a href="/shop/item.php?it_id=<?=$its['it_id']?>">
                                <?=get_it_image($its['it_id'], 232, 232, '', '', stripslashes($its['it_name']))?>
                                </a>
                                <?
                                    $sns_top = 388;
                                    $sns_url  = G5_SHOP_URL.'/item.php?it_id='.$its['it_id'];
                                    $sns_title = get_text($its['it_name']).' | '.get_text($config['cf_title']);
                                    

                                    /*echo "<div class=\"sct_sns\">";
                                    echo get_sns_share_link('facebook', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/facebook.png');
                                    echo get_sns_share_link('twitter', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/twitter.png');
                                    echo get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/gplus.png');
                                    echo "</div>\n";*/
                                ?>
                            </div>
                            <div class="sct_txt">
                                <a href="/shop/item.php?it_id=<?=$its['it_id']?>">
                                <?=$its['it_name']?>
                                </a>
                            </div>
                            <div class="sct_cost">
                                <?=display_price($its['it_price'])?>
                            </div>
                        </div>

                    <?
                        }
                    ?>

</code>

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 0
© SIRSOFT
현재 페이지 제일 처음으로