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

영카트 여분 필드로 상품 옵션 입력 어떻게 하나요? 채택완료

산타클라스 3년 전 조회 2,174

전부 찾아봤는데 다 정보가 오래되고 각자 말이 달라서 뭐가 뭔지 모르겠습니다. 제가 원하는건 다음과 같은 효과입니다.

 

https://gnustudy.com/bbs/board.php?bo_table=yc_tip&wr_id=22

 

여기 나온 정보도 다 시도해봤습니다.

 

 

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

답변 2개

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

<?php if($it['it_buy_max_qty']) { ?>
<tr>
    <th>최대구매수량</th>
   <td><?php echo number_format($it['it_buy_max_qty']); ?> 개</td>
</tr>
<?php } ?>

여기 밑에 넣어야지

 

<?php } ?> 이부분 안쪽에 넣으면 안 됩니다.

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

답변에 대한 댓글 1개

산타클라스
3년 전
감사합니다!

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

3년 전

말씀하신 내용은 여분 필드를 사용하면 안 되고 필드를 새로 추가해서 개발해야 합니다.

참고하세요.

https://gnustudy.com/bbs/board.php?bo_table=yc_tip&wr_id=145

 

아니면 기존에 개발된 걸 구매해서 사용하는 방법도 있고요.

https://gnustudy.com/bbs/board.php?bo_table=gnu_mall&wr_id=2

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

답변에 대한 댓글 1개

산타클라스
3년 전
확인해봤는데

<tr>
<th scope="row">추가입력1</th>
<td><input type="text" name="ct_memo1" required class="frm_input"></td>
</tr>
<tr>
<th scope="row">추가입력2</th>
<td><input type="text" name="ct_memo2" required class="frm_input"></td>
</tr>


이거 테마에 적용해도 바뀌지 않더라구여 혹시 기본적으로 수정권한이 막혀있나요?

else
$sc_method = '주문시 결제';
}
?>
<tr>
<th><?php echo $ct_send_cost_label; ?></th>
<td><?php echo $sc_method; ?></td>
</tr>
<?php if($it['it_buy_min_qty']) { ?>
<tr>
<th>최소구매수량</th>
<td><?php echo number_format($it['it_buy_min_qty']); ?> 개</td>
</tr>
<?php } ?>
<?php if($it['it_buy_max_qty']) { ?>
<tr>
<th>최대구매수량</th>
<td><?php echo number_format($it['it_buy_max_qty']); ?> 개</td>
</tr>
<tr>
<th scope="row">추가입력1</th>
<td><input type="text" name="ct_memo1" required class="frm_input"></td>
</tr>
<tr>
<th scope="row">추가입력2</th>
<td><input type="text" name="ct_memo2" required class="frm_input"></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<?php
if($option_item) {
?>
<!-- 선택옵션 시작 { -->
<section class="sit_option">
<h3>선택옵션</h3>

<?php // 선택옵션
echo $option_item;
?>
</section>
<!-- } 선택옵션 끝 -->
<?php
}
?>

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

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

로그인