블레스님 개인결제 == 회원로그인시 자신것만 보이게 팁 추가
https://sir.kr/yc5_tip/1696
블레스님 내용대로 했더니 회원 아이디를 입력해도 비회원에겐 보이더라구요
개인결제 생성시
1. 회원아이디 입력한 건은 그 회원에게만 보일 것
2. 입력하지 않은 건은 모두에게 보일 것
이걸 만족하려면 블레스님 팁에서
shop/personalpay.php 수정은 하지 말고
테마/skin/shop/basic/personalpay.skin.php에서
[code]
<li class="sct_li<?php echo $sct_last; ?>" style="width:<?php echo $img_width; ?>px; text-align:center;">
<div class="sct_img"><a href="<?php echo $href; ?>" class="sct_a"><img src="<?php echo G5_SHOP_SKIN_URL; ?>/img/personal.jpg" alt=""></a></div>
<div class="sct_txt"><a href="<?php echo $href; ?>" class="sct_a"><?php echo get_text($row['pp_name']).'님 개인결제'; ?></a></div>
<div class="sct_cost"><?php echo display_price($row['pp_price']); ?></div>
</li>
[/code]
이것을
[code]
<?php if ($row['pp_mb_id']) {
if ($row['pp_mb_id'] == $member['mb_id']) { ?>
<li class="sct_li<?php echo $sct_last; ?>" style="width:<?php echo $img_width; ?>px; text-align:center;">
<div class="sct_img"><a href="<?php echo $href; ?>" class="sct_a"><img src="<?php echo G5_SHOP_SKIN_URL; ?>/img/personal.jpg" alt=""></a></div>
<div class="sct_txt"><a href="<?php echo $href; ?>" class="sct_a"><?php echo get_text($row['pp_name']).'님 개인결제'; ?></a></div>
<div class="sct_cost"><?php echo display_price($row['pp_price']); ?></div>
</li>
<?php } else { } ?>
<?php } else { ?>
<li class="sct_li<?php echo $sct_last; ?>" style="width:<?php echo $img_width; ?>px; text-align:center;">
<div class="sct_img"><a href="<?php echo $href; ?>" class="sct_a"><img src="<?php echo G5_SHOP_SKIN_URL; ?>/img/personal.jpg" alt=""></a></div>
<div class="sct_txt"><a href="<?php echo $href; ?>" class="sct_a"><?php echo get_text($row['pp_name']).'님 개인결제'; ?></a></div>
<div class="sct_cost"><?php echo display_price($row['pp_price']); ?></div>
</li>
<?php } ?>
[/code]
이렇게 바꾸면 의도대로 됩니다.
허접이라 더 간단하게 될 수 있을 거 같은데 그건 고수님들이 줄여주시기로..
블레스님 내용대로 했더니 회원 아이디를 입력해도 비회원에겐 보이더라구요
개인결제 생성시
1. 회원아이디 입력한 건은 그 회원에게만 보일 것
2. 입력하지 않은 건은 모두에게 보일 것
이걸 만족하려면 블레스님 팁에서
shop/personalpay.php 수정은 하지 말고
테마/skin/shop/basic/personalpay.skin.php에서
[code]
<li class="sct_li<?php echo $sct_last; ?>" style="width:<?php echo $img_width; ?>px; text-align:center;">
<div class="sct_img"><a href="<?php echo $href; ?>" class="sct_a"><img src="<?php echo G5_SHOP_SKIN_URL; ?>/img/personal.jpg" alt=""></a></div>
<div class="sct_txt"><a href="<?php echo $href; ?>" class="sct_a"><?php echo get_text($row['pp_name']).'님 개인결제'; ?></a></div>
<div class="sct_cost"><?php echo display_price($row['pp_price']); ?></div>
</li>
[/code]
이것을
[code]
<?php if ($row['pp_mb_id']) {
if ($row['pp_mb_id'] == $member['mb_id']) { ?>
<li class="sct_li<?php echo $sct_last; ?>" style="width:<?php echo $img_width; ?>px; text-align:center;">
<div class="sct_img"><a href="<?php echo $href; ?>" class="sct_a"><img src="<?php echo G5_SHOP_SKIN_URL; ?>/img/personal.jpg" alt=""></a></div>
<div class="sct_txt"><a href="<?php echo $href; ?>" class="sct_a"><?php echo get_text($row['pp_name']).'님 개인결제'; ?></a></div>
<div class="sct_cost"><?php echo display_price($row['pp_price']); ?></div>
</li>
<?php } else { } ?>
<?php } else { ?>
<li class="sct_li<?php echo $sct_last; ?>" style="width:<?php echo $img_width; ?>px; text-align:center;">
<div class="sct_img"><a href="<?php echo $href; ?>" class="sct_a"><img src="<?php echo G5_SHOP_SKIN_URL; ?>/img/personal.jpg" alt=""></a></div>
<div class="sct_txt"><a href="<?php echo $href; ?>" class="sct_a"><?php echo get_text($row['pp_name']).'님 개인결제'; ?></a></div>
<div class="sct_cost"><?php echo display_price($row['pp_price']); ?></div>
</li>
<?php } ?>
[/code]
이렇게 바꾸면 의도대로 됩니다.
허접이라 더 간단하게 될 수 있을 거 같은데 그건 고수님들이 줄여주시기로..
댓글 5개
DawnDew
5년 전
감사합니다 스크랩해놔야겠습니다
5년 전
감사합니다
5년 전
스크랩했어요 ㅎㅎㅎ
long5472
4년 전
스크랩했습니다~!
hikuki
4년 전
감사합니다
게시판 목록
영카트5 팁자료실
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 341 | 4년 전 | 4069 | ||
| 340 | 4년 전 | 3376 | ||
| 339 | 4년 전 | 3208 | ||
| 338 | 4년 전 | 3771 | ||
| 337 | 4년 전 | 4128 | ||
| 336 | 4년 전 | 2807 | ||
| 335 |
|
4년 전 | 2697 | |
| 334 | 4년 전 | 2252 | ||
| 333 |
|
4년 전 | 2315 | |
| 332 |
|
4년 전 | 3152 | |
| 331 |
|
4년 전 | 3798 | |
| 330 | 4년 전 | 2208 | ||
| 329 | 4년 전 | 3699 | ||
| 328 | 4년 전 | 2166 | ||
| 327 | 4년 전 | 2728 | ||
| 326 | 4년 전 | 2589 | ||
| 325 | 4년 전 | 5031 | ||
| 324 | 4년 전 | 2197 | ||
| 323 |
파이브스톤즈
|
5년 전 | 3022 | |
| 322 | 5년 전 | 2522 | ||
| 321 | 5년 전 | 2553 | ||
| 320 | 5년 전 | 1885 | ||
| 319 | 5년 전 | 2568 | ||
| 318 | 5년 전 | 4108 | ||
| 317 | 5년 전 | 4108 | ||
| 316 | 5년 전 | 2652 | ||
| 315 | 5년 전 | 3834 | ||
| 314 | 5년 전 | 3645 | ||
| 313 |
|
5년 전 | 1645 | |
| 312 | 5년 전 | 4153 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기