여분필드 출력과 파일이름 질문
본문
1.상품리스트 출력부분인 list.10.php 파일에 여분필드1을 가격 아래에 출력을 시키고 싶어서
if ($this->view_it_1) {
echo stripslashes($row['it_1'])."\n";
}
넣어봤는데 출력이 안돼네요
어떻게 넣어야 출력이 될까요?
2. list.form.skin.php 아래 사용후기에 출력되는 부분인데요
이 부분 파일을 찾아봐도 어디 파일인지 찾을 수가 없네요..파일 이름 아시면 좀 알려주세요
답변 3
/skin/shop/basic/list.10.skin.php 원하는 위치에 아래 내용을 추가합니다.
if ($this->view_it_1) {
/shop/list.php 에 보면 이런 부분이 있습니다. 여기에 $list->set_view('it_1', true); 추가합니다.
...
...
$list->set_view('it_1', true);echo $list->run();
2번은 /shop/item.php 하단쯤에..
<ul class="sanchor">
<li><a href="#sit_inf" <?php if ($anc_id == 'inf') echo 'class="sanchor_on"'; ?>>상품정보</a></li>
<li><a href="#sit_use" <?php if ($anc_id == 'use') echo 'class="sanchor_on"'; ?>>사용후기 <span class="item_use_count"><?php echo $item_use_count; ?></span></a></li>
<li><a href="#sit_qa" <?php if ($anc_id == 'qa') echo 'class="sanchor_on"'; ?>>상품문의 <span class="item_qa_count"><?php echo $item_qa_count; ?></span></a></li>
<?php if ($default['de_baesong_content']) { ?><li><a href="#sit_dvr" <?php if ($anc_id == 'dvr') echo 'class="sanchor_on"'; ?>>배송정보</a></li><?php } ?>
<?php if ($default['de_change_content']) { ?><li><a href="#sit_ex" <?php if ($anc_id == 'ex') echo 'class="sanchor_on"'; ?>>교환정보</a></li><?php } ?>
<li><a href="#sit_rel" <?php if ($anc_id == 'rel') echo 'class="sanchor_on"'; ?>>관련상품 <span class="item_relation_count"><?php echo $item_relation_count; ?></span></a></li>
</ul>
작은별님 감사합니다 ^^