블레스님 개인결제 == 회원로그인시 자신것만 보이게 팁 추가
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년 전 | 4072 | ||
| 340 | 4년 전 | 3379 | ||
| 339 | 4년 전 | 3209 | ||
| 338 | 4년 전 | 3772 | ||
| 337 | 4년 전 | 4130 | ||
| 336 | 4년 전 | 2810 | ||
| 335 |
|
4년 전 | 2699 | |
| 334 | 4년 전 | 2254 | ||
| 333 |
|
4년 전 | 2316 | |
| 332 |
|
4년 전 | 3153 | |
| 331 |
|
4년 전 | 3799 | |
| 330 | 4년 전 | 2209 | ||
| 329 | 4년 전 | 3703 | ||
| 328 | 4년 전 | 2167 | ||
| 327 | 4년 전 | 2730 | ||
| 326 | 4년 전 | 2590 | ||
| 325 | 4년 전 | 5033 | ||
| 324 | 4년 전 | 2198 | ||
| 323 |
파이브스톤즈
|
5년 전 | 3024 | |
| 322 | 5년 전 | 2525 | ||
| 321 | 5년 전 | 2557 | ||
| 320 | 5년 전 | 1889 | ||
| 319 | 5년 전 | 2569 | ||
| 318 | 5년 전 | 4109 | ||
| 317 | 5년 전 | 4109 | ||
| 316 | 5년 전 | 2653 | ||
| 315 | 5년 전 | 3835 | ||
| 314 | 5년 전 | 3647 | ||
| 313 |
|
5년 전 | 1646 | |
| 312 | 5년 전 | 4155 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기