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

영카트 상품정보 토글 펼쳐놓기 질문 채택완료

klee 7년 전 조회 2,984

안녕하세요. jewerly 테마를 쓰고 있습니다.  영카트에서 상품을 클릭하면 이미지 아래에  

"상품정보" "사용후기" "배송정보" 등등이 있는데요   

들어가자마자 토글이 저런식으로 접힌상태가 아니라 펼쳐놓고 싶은데 

어디서 만져야하는지 감이 오지를 않습니다. 

 

이부분인거 같긴한데. -- >

어떤 명령어를 넣어야하는지. 모르겠습니다. 

 

도움 부탁드려요 

 

소스코드는 item.info.skin.php를 첨부햇습니다. 

 

 

</p>

<p><?php

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

<p>// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨

add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_CSS_URL.'/style.css">', 0);

?></p>

<p><script src="<?php echo G5_JS_URL; ?>/viewimageresize.js"></script>

<div id="sif_inf_wr">

<!-- 상품 정보 시작 { -->

<button type="button" class="inf_btn">상품정보</button>

<section id="sit_inf"  class="inf_con">

    <h2>상품 정보</h2>

    <?php if ($it['it_basic']) { // 상품 기본설명 ?>

    <h3>상품 기본설명</h3>

    <div id="sit_inf_basic">

         <?php echo $it['it_basic']; ?>

    </div>

    <?php } ?></p>

<p>    <?php if ($it['it_explan']) { // 상품 상세설명 ?>

    <h3>상품 상세설명</h3>

    <div id="sit_inf_explan">

        <?php echo conv_content($it['it_explan'], 1); ?>

    </div>

    <?php } ?></p>

<p>

    <?php

    if ($it['it_info_value']) { // 상품 정보 고시

        $info_data = unserialize(stripslashes($it['it_info_value']));

        if(is_array($info_data)) {

            $gubun = $it['it_info_gubun'];

            $info_array = $item_info[$gubun]['article'];

    ?>

    <h3>상품 정보 고시</h3>

    <table id="sit_inf_open">

    <colgroup>

        <col class="grid_4">

        <col>

    </colgroup>

    <tbody>

    <?php

    foreach($info_data as $key=>$val) {

        $ii_title = $info_array[$key][0];

        $ii_value = $val;

    ?>

    <tr>

        <th scope="row"><?php echo $ii_title; ?></th>

        <td><?php echo $ii_value; ?></td>

    </tr>

    <?php } //foreach?>

    </tbody>

    </table>

    <!-- 상품정보고시 end -->

    <?php

        } else {

            if($is_admin) {

                echo '<p>상품 정보 고시 정보가 올바르게 저장되지 않았습니다.
config.php 파일의 G5_ESCAPE_FUNCTION 설정을 addslashes 로
변경하신 후 관리자 > 상품정보 수정에서 상품 정보를 다시 저장해주세요. </p>';

            }

        }

    } //if

    ?></p>

<p></section>

<!-- } 상품 정보 끝 --></p>

<p> </p>

<p><!-- 사용후기 시작 { -->

<button type="button" class="inf_btn">사용후기</button>

<section id="sit_use"  class="inf_con">

    <h2>사용후기</h2>

    <div id="itemuse"><?php include_once(G5_SHOP_PATH.'/itemuse.php'); ?></div>

</section>

<!-- } 사용후기 끝 --></p>

<p><!-- 상품문의 시작 { -->

<button type="button" class="inf_btn">상품문의</button></p>

<p><section id="sit_qa" class="inf_con">

    <h2>상품문의</h2>

    <div id="itemqa"><?php include_once(G5_SHOP_PATH.'/itemqa.php'); ?></div>

</section>

<!-- } 상품문의 끝 --></p>

<p><?php if ($default['de_baesong_content']) { // 배송정보 내용이 있다면 ?>

<!-- 배송정보 시작 { -->

<button type="button" class="inf_btn">배송정보</button></p>

<p><section id="sit_dvr" class="inf_con">

    <h2>배송정보</h2>

    <?php echo conv_content($default['de_baesong_content'], 1); ?>

</section>

<!-- } 배송정보 끝 -->

<?php } ?></p>

<p>

<?php if ($default['de_change_content']) { // 교환/반품 내용이 있다면 ?>

<!-- 교환/반품 시작 { -->

<button type="button" class="inf_btn">교환/반품</button></p>

<p><section id="sit_ex" class="inf_con">

    <h2>교환/반품</h2>

    <?php echo conv_content($default['de_change_content'], 1); ?>

</section>

<!-- } 교환/반품 끝 -->

<?php } ?></p>

<p><?php if ($default['de_rel_list_use']) { ?>

<!-- 관련상품 시작 { -->

<button type="button" class="inf_btn">관련상품</button></p>

<p><section id="sit_rel" class="inf_con">

    <h2>관련상품</h2>

    <div class="sct_wrap">

        <?php

        $rel_skin_file = $skin_dir.'/'.$default['de_rel_list_skin'];

        if(!is_file($rel_skin_file))

            $rel_skin_file = G5_SHOP_SKIN_PATH.'/'.$default['de_rel_list_skin'];</p>

<p>        $sql = " select b.* from {$g5['g5_shop_item_relation_table']} a left join {$g5['g5_shop_item_table']} b on (a.it_id2=b.it_id) where a.it_id = '{$it['it_id']}' and b.it_use='1' ";

        $list = new item_list($rel_skin_file, $default['de_rel_list_mod'], 0, $default['de_rel_img_width'], $default['de_rel_img_height']);

        $list->set_query($sql);

        echo $list->run();

        ?>

    </div>

</section>

<!-- } 관련상품 끝 -->

<?php } ?>

</div>

<script>

$(window).on("load", function() {

    $("#sit_inf_explan").viewimageresize2();

});</p>

<p>

//상품정보 탭

  $(document).ready(function($) {

    $("#sif_inf_wr").find(".inf_btn").click(function(){

        $(this).next().slideToggle('fast');

        $(".inf_con").not($(this).next()).slideUp('fast');

    });

  });</p>

<p></script> </p>

<p>

 

SaveSave

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

답변 1개

채택된 답변
+20 포인트
f
7년 전

저기 보이는 id와 class 값을 찾아보세요.

basic 테마의 해당 파일과 대조도 해 보시고...

 

제작자가 일부러 그렇게 만든 것 같은데... 굳이 되돌릴 필요가 있을까요?

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

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

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

로그인