회원/비회원 가격표시 채택완료
RedDJ
10년 전
조회 3,394
<b><font color="#FF0000"><s><?php echo display_price($it['it_price']); ?></s></font> <?php echo display_price(get_price($it)); ?></b></p><p> <input type="hidden" id="it_price" value="<?php echo get_price($it); ?>">
이렇게 상세 페이지에 넣었습니다. 회원가와 비회원가를이렇게 했는데요
비회원일시 가 안나오게 할라면 어떻게 하면될까요?
댓글을 작성하려면 로그인이 필요합니다.
답변 3개
채택된 답변
+20 포인트
10년 전
<?php if($is_admin) { echo display_price($it['it_price']); } else { ?>
이렇게 해보세요
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
R
RedDJ
10년 전
댓글을 작성하려면 로그인이 필요합니다.
10년 전
아 제가 실수를 했네요
아래와 같이 해보세요 ㅎ
<?php if($is_member) { echo display_price($it['it_price']); } else { ?>
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
R
RedDJ
10년 전
도움주셔서 정말x10감사합니다.
[code]<? if($is_member){ //회원이면 보이게 ?>
<tr>
<th scope="row">회원등급가격</th>
<td>
<b> <?php echo display_price(get_price($it)); ?></b>
<input type="hidden" id="it_price" value="<?php echo get_price($it); ?>">
</td>
</tr>
<? } ?>[/code]로 해결됐습니다.
[code]<? if($is_member){ //회원이면 보이게 ?>
<tr>
<th scope="row">회원등급가격</th>
<td>
<b> <?php echo display_price(get_price($it)); ?></b>
<input type="hidden" id="it_price" value="<?php echo get_price($it); ?>">
</td>
</tr>
<? } ?>[/code]로 해결됐습니다.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
적어주신 소스말고 추가해야 할것이 더 있나요?