할인상품출력 버그 인걸까요?
본문
안녕하세요
아래 화면에서
추천 / 최신 / 인기 상품 등등은 모두 체크를 하거나 푸는 것이 가능한데
할인 상품 출력의 버튼은 체크해제가 되지 않으며, 이미지 폭이나 높이 수정이 안되고 있습니다.
자주 손을 대긴 했는데 원래의 문제가 있는 부분인지 제 코드가 손상되었는지 알 수 있을까요?
혹시 저 부분의 수정이 안된다면 어딜 손봐야 할지 막막하네요
답변 2
configtform.php, configformupdate.php 의 구조가 굉장히 단순한 구조입니다.
//configform.php
<tr>
<th scope="row">할인상품출력</th>
<td>
<label for="de_mobile_type5_list_use">출력</label>
<input type="checkbox" name="de_mobile_type5_list_use" value="1" id="de_mobile_type5_list_use" <?php echo $default['de_mobile_type5_list_use']?"checked":""; ?>>
<label for="de_mobile_type5_list_skin">스킨</label>
<select id="de_mobile_type5_list_skin" name="de_mobile_type5_list_skin">
<?php echo get_list_skin_options("^main.[0-9]+\.skin\.php", G5_MSHOP_SKIN_PATH, $default['de_mobile_type5_list_skin']); ?>
</select>
<label for="de_mobile_type5_list_mod">1줄당 이미지 수</label>
<input type="text" name="de_mobile_type5_list_mod" value="<?php echo $default['de_mobile_type5_list_mod']; ?>" id="de_mobile_type5_list_mod" class="frm_input" size="3">
<label for="de_mobile_type5_list_row">출력할 줄 수</label>
<input type="text" name="de_mobile_type5_list_row" value="<?php echo $default['de_mobile_type5_list_row']; ?>" id="de_mobile_type5_list_row" class="frm_input" size="3">
<label for="de_mobile_type5_img_width">이미지 폭</label>
<input type="text" name="de_mobile_type5_img_width" value="<?php echo $default['de_mobile_type5_img_width']; ?>" id="de_mobile_type5_img_width" class="frm_input" size="3">
<label for="de_mobile_type5_img_height">이미지 높이</label>
<input type="text" name="de_mobile_type5_img_height" value="<?php echo $default['de_mobile_type5_img_height']; ?>" id="de_mobile_type5_img_height" class="frm_input" size="3">
</td>
</tr>
//configformupdate.php
de_mobile_type5_list_use = '{$_POST['de_mobile_type5_list_use']}',
de_mobile_type5_list_skin = '{$_POST['de_mobile_type5_list_skin']}',
de_mobile_type5_list_mod = '{$_POST['de_mobile_type5_list_mod']}',
de_mobile_type5_list_row = '{$_POST['de_mobile_type5_list_row']}',
de_mobile_type5_img_width = '{$_POST['de_mobile_type5_img_width']}',
de_mobile_type5_img_height = '{$_POST['de_mobile_type5_img_height']}',
할인상품출력부분 쿼리입니다.
이 외에 어떠한 프로그래밍이 되어 있지 않습니다.
딱히 문제가 될 것이 없습니다. ㅠㅠ
!-->!-->직접 해보니 영카트 원본은 문제가 없는 것 같습니다.
기존에 사용하고 있는 폴더는 백업해 놓으시고
영카트 원본에 있는 adm/shop_admin 파일을 덮어씌우고 확인해보세요.
답변을 작성하시기 전에 로그인 해주세요.