링크
myao.kr (2)
메인페이지의 최신상품과 베스트상품부분에 시중가격과 판매가격이 다르게 적용이 돼 있는상태인데
이게 회원판매가 더 저렴하고 시중가격과 비회원가격이 같은 상태입니다.
그래서 로그인을 햇을경우엔 위쪽과 아래쪽 금액이 다르게 표시가 되는데요..
이렇게가 좋긴한데 로그인 하지 않을상태에선 시중가격과 비회원가격이 나와버리니까
맞는건데 뭔가 오류가 있는거처럼 보이는 상황이 되는거 같아서요.
그래서 부탁드릴것이... 로그인을 하지 않은상태에서도 회원가격이 표시되게 하려면
어떤 코드를 고쳐줘야 하는건지 궁금하고요...
현재 카테고리 리스트쪽에서 위와 같은 상태로 나와야 하는데..... 조금 다른 형태라
시중가 적용도 안된 상태입니다...어떻게 고쳐야 하는지 잘 모르겠어서요...
메인 최신상품과 같은형태로.... 시중가 적용되고 위에서 부탁드린 로그인전에도 회원가
출력되게 이부분도 리스트에 부탁 드리겠습니다.
마지막으로 상세페이지에서 관련상품이 없을경우 관련상품이 없습니다.
부분이 아에 안뜨게 했으면 좋겟는데...글자만 빠지는거면 제가 하겠는데
현재 배경이 깔린상태라...그 테이블을 해당 코드쪽으로 포함시키면 표가 틀어지는거
같아서 한번 봐주시면 좋겠습니다.
너무 문의사항이 많네요...가능하신거만이라도 알려주시면 감사하겠습니다.
이게 회원판매가 더 저렴하고 시중가격과 비회원가격이 같은 상태입니다.
그래서 로그인을 햇을경우엔 위쪽과 아래쪽 금액이 다르게 표시가 되는데요..
이렇게가 좋긴한데 로그인 하지 않을상태에선 시중가격과 비회원가격이 나와버리니까
맞는건데 뭔가 오류가 있는거처럼 보이는 상황이 되는거 같아서요.
그래서 부탁드릴것이... 로그인을 하지 않은상태에서도 회원가격이 표시되게 하려면
어떤 코드를 고쳐줘야 하는건지 궁금하고요...
현재 카테고리 리스트쪽에서 위와 같은 상태로 나와야 하는데..... 조금 다른 형태라
시중가 적용도 안된 상태입니다...어떻게 고쳐야 하는지 잘 모르겠어서요...
메인 최신상품과 같은형태로.... 시중가 적용되고 위에서 부탁드린 로그인전에도 회원가
출력되게 이부분도 리스트에 부탁 드리겠습니다.
마지막으로 상세페이지에서 관련상품이 없을경우 관련상품이 없습니다.
부분이 아에 안뜨게 했으면 좋겟는데...글자만 빠지는거면 제가 하겠는데
현재 배경이 깔린상태라...그 테이블을 해당 코드쪽으로 포함시키면 표가 틀어지는거
같아서 한번 봐주시면 좋겠습니다.
너무 문의사항이 많네요...가능하신거만이라도 알려주시면 감사하겠습니다.
댓글 2개
lib/shop.lib.php 를
function get_amount($it, $member_amount=false)
{
global $member;
if ($it['it_tel_inq']) return '전화문의';
if ($member[mb_level] > 2) // 특별회원
$amount = $it[it_amount3];
if ($member[mb_level] == 2 || $amount == 0) // 회원가격
$amount = $it[it_amount2];
if ($member[mb_level] == 1 || $amount == 0) // 비회원가격
$amount = $it[it_amount];
if ($member_amount) $amount = $it[it_amount2];
return (int)$amount;
}
이렇게 수정해 드렸습니다.
shop/list.skin.10.php 로 예로 들어
get_amount($row)
를
get_amount($row, true)
로 사용하시면 회원가격을 표시하고
get_amount($row)
로 사용하시면 비회원가격을 표시합니다.
다른 페이지에도 동일하게 사용하시면 됩니다.
function get_amount($it, $member_amount=false)
{
global $member;
if ($it['it_tel_inq']) return '전화문의';
if ($member[mb_level] > 2) // 특별회원
$amount = $it[it_amount3];
if ($member[mb_level] == 2 || $amount == 0) // 회원가격
$amount = $it[it_amount2];
if ($member[mb_level] == 1 || $amount == 0) // 비회원가격
$amount = $it[it_amount];
if ($member_amount) $amount = $it[it_amount2];
return (int)$amount;
}
이렇게 수정해 드렸습니다.
shop/list.skin.10.php 로 예로 들어
get_amount($row)
를
get_amount($row, true)
로 사용하시면 회원가격을 표시하고
get_amount($row)
로 사용하시면 비회원가격을 표시합니다.
다른 페이지에도 동일하게 사용하시면 됩니다.
shop/item.php 를 아래와 같이 수정해 보았습니다.
<?
$sql = " select b.*
from $g4[yc4_item_relation_table] a
left join $g4[yc4_item_table] b on (a.it_id2=b.it_id)
where a.it_id = '$it[it_id]'
and b.it_use='1' ";
$result = sql_query($sql);
$num = @mysql_num_rows($result);
if ($num) {
?>
<table width="650" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="650" height="45"><img src="<?=$g4[path]?>/images/with_item_top.gif" width="650" height="45" border="0" /></td>
</tr>
<tr>
<td align="center" valign="top" background="<?=$g4[path]?>/images/with_item.gif">
<!-- 관련상품 -->
<table width=600 cellpadding=0 cellspacing=0>
<tr><td align="center" valign="top"><?
$list_mod = $default[de_rel_list_mod];
$img_width = $default[de_rel_img_width];
$img_height = $default[de_rel_img_height];
$td_width = (int)(100 / $list_mod);
if ($num)
include "$g4[shop_path]/maintype10.inc_mo.php";
else
echo "<span style='font-size:11px; color:#a7a7a7; letter-spacing:-1px; line-height:180%; font-family:돋움;'>이 상품과 관련된 상품이 없습니다.</span>";
?></td>
</tr>
</table>
<!-- 관련상품 끝 --> </td>
</tr>
<tr>
<td height="20" background="<?=$g4[path]?>/images/with_item.gif"><img src="<?=$g4[path]?>/images/with_item_foot.gif" width="650" height="20" border="0" /></td>
</tr>
</table>
<br />
<br />
<br />
<br />
<? } ?>
<?
$sql = " select b.*
from $g4[yc4_item_relation_table] a
left join $g4[yc4_item_table] b on (a.it_id2=b.it_id)
where a.it_id = '$it[it_id]'
and b.it_use='1' ";
$result = sql_query($sql);
$num = @mysql_num_rows($result);
if ($num) {
?>
<table width="650" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="650" height="45"><img src="<?=$g4[path]?>/images/with_item_top.gif" width="650" height="45" border="0" /></td>
</tr>
<tr>
<td align="center" valign="top" background="<?=$g4[path]?>/images/with_item.gif">
<!-- 관련상품 -->
<table width=600 cellpadding=0 cellspacing=0>
<tr><td align="center" valign="top"><?
$list_mod = $default[de_rel_list_mod];
$img_width = $default[de_rel_img_width];
$img_height = $default[de_rel_img_height];
$td_width = (int)(100 / $list_mod);
if ($num)
include "$g4[shop_path]/maintype10.inc_mo.php";
else
echo "<span style='font-size:11px; color:#a7a7a7; letter-spacing:-1px; line-height:180%; font-family:돋움;'>이 상품과 관련된 상품이 없습니다.</span>";
?></td>
</tr>
</table>
<!-- 관련상품 끝 --> </td>
</tr>
<tr>
<td height="20" background="<?=$g4[path]?>/images/with_item.gif"><img src="<?=$g4[path]?>/images/with_item_foot.gif" width="650" height="20" border="0" /></td>
</tr>
</table>
<br />
<br />
<br />
<br />
<? } ?>
게시글 목록
| 번호 | 제목 |
|---|---|
| 56073 | |
| 56067 | |
| 56065 | |
| 56060 | |
| 56058 | |
| 56055 | |
| 56051 | |
| 56048 | |
| 56044 | |
| 56043 | |
| 56042 | |
| 56039 | |
| 56035 | |
| 56032 | |
| 56030 | |
| 56028 | |
| 56025 | |
| 56018 | |
| 56012 | |
| 56010 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기