목록 다음글
Drifter

1원 짜리 팁. 영카트 분류내 검색 카테고리내 검색

Screenshot 2026-01-29 at 15.19.19.JPG
* 영카트
* 분류내 검색
* 카테고리내 검색

해당 skin 폴더를 열고 사용중인 list.skin10.php 의
적절한 부분에(베이직 또는 테마 사용중 이시면 폴더명
파일명 확인 후) ....

=====================================

<<?php 
$current_page = basename($_SERVER['SCRIPT_NAME']);
// 검색 결과 화면과 리스트타입 화면에 분류내 검색창 안보이게
if ($current_page != 'search.php' && $current_page != 'listtype.php') { 
?>
                <div>
                    <?php                                    
                    $ca_id = (isset($_GET['ca_id'])) ? get_search_string($_GET['ca_id']) : '';
                    // 변수 할당 시점에서 최대한 정제
                    $search_q = (isset($_GET['q'])) ? get_text(get_search_string(stripslashes($_GET['q']))) : '';
                    ?>

                    <form name="frmsearch1" method="get" action="<?php echo G5_SHOP_URL; ?>/search.php" onsubmit="return search_submit(this);" class="eyoom-form">
                    <label for="sch_str" class="sound_only">상품명 입력 필수</label>
                    <div class="input input-button">
                        <input type="text" name="q" value="<?php echo $search_q; ?>" id="sch_str" placeholder="분류내 검색" required>                        
                        <input type="hidden" name="qcaid" id="qcaid" value="<?php echo $ca_id; ?>">
                        <button type="submit" value="검색" class="button"><i class="fa fa-search"></i></button>
                    </div>
                    </form><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
                    <script>
                    function search_submit(f) {
                        if (f.q.value.length < 2) {
                            alert("검색어는 두글자 이상 입력하십시오.");
                            f.q.select();
                            f.q.focus();
                            return false;
                        }
                        return true;
                    }
                    </script>
                </div>

넣어 주시고 저장. 끝.

* 필요한 부분은 수정 후 사용 하세요 !!!


적용 페이지 - https://ysmoto.kr/shop/list.php?ca_id=50

첨부파일

|

댓글 2개

검색결과 페이지에서 검색헤더를 줄이고 결과 내용을 보여주면 더욱 좋겠군요.
네. 고맙습니다.
댓글을 작성하시려면 로그인이 필요합니다.

영카트5 팁자료실

+
제목 글쓴이 날짜 조회
3일 전 조회 51
1개월 전 조회 439
1개월 전 조회 391
2개월 전 조회 458
2개월 전 조회 635
3개월 전 조회 832
3개월 전 조회 427
3개월 전 조회 567
3개월 전 조회 732
3개월 전 조회 545
3개월 전 조회 505
4개월 전 조회 642
4개월 전 조회 704
4개월 전 조회 535
4개월 전 조회 534
4개월 전 조회 685
5개월 전 조회 688
5개월 전 조회 544
5개월 전 조회 822
5개월 전 조회 831
5개월 전 조회 659
5개월 전 조회 766
6개월 전 조회 681
6개월 전 조회 795
6개월 전 조회 723
6개월 전 조회 798
6개월 전 조회 619
6개월 전 조회 764
7개월 전 조회 743
7개월 전 조회 855
🐛 버그신고