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

판매가격 노출문제

· 11년 전 · 58 · 9
안녕하세요.

상품판매가격이 시중가격보다 높을때 해당 시중가격은 노출안되게 할려면 어떻게 하여야 하는지요. 도움바랍니다.

/shop/item.php 에서


 <? if ($it[it_cust_amount]) { // 1.00.03 ?>
                <tr height=25>
                    <td>&nbsp;&nbsp;&nbsp; · 시중가격</td>
                    <td align=center>:</td>
                    <td><input type=text name=disp_cust_amount size=12 style='text-align:right; border:none; border-width:0px; font-weight:bold; width:80px; color:#777777; text-decoration:line-through;' readonly value='<?=number_format($it[it_cust_amount])?>'> 원</td>
                </tr>
                <tr><td colspan=3 height=1 background='<?=$g4[shop_img_path]?>/dot_line.gif'></td></tr>
                <? } ?>


                <tr height=25>
                    <td>&nbsp;&nbsp;&nbsp; · 판매가격</td>
                    <td align=center>:</td>
                    <td><input type=text name=disp_sell_amount size=12 style='text-align:right; border:none; border-width:0px; font-weight:bold; width:80px; font-family:Tahoma;' class=amount readonly> 원
                        <input type=hidden name=it_amount value='0'>
                    </td>
                </tr>
                <tr><td colspan=3 height=1 background='<?=$g4[shop_img_path]?>/dot_line.gif'></td></tr>

이부분인데 
만약 판매가격이 시중가격보다 높을경우 시중가격을 안나오게 할려고 합니다.

도움바랍니다.


댓글 작성

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

로그인하기

댓글 9개

<? if ($it[it_cust_amount]) { // 1.00.03 ?>



<? if ($it[it_cust_amount] <= get_amount($it)) { ?>

와 같이 수정해 보시기 바랍니다.
말씀하신대로 수정해도 적용이 안됩니다..ㅜ
관리자님 답변기다립니다.
<? if ($it[it_cust_amount] > get_amount($it)) { ?>
반대로 되어야 하네요.
처리해 드렸습니다.
여전히 변화가 없습니다. 시중가격이 판매가보다 적은데도 출력이 되고있습니다.

http://www.bhpolo.co.kr/shop/list.php?ca_id=50
list.php 에는 적용해 드리지 않았습니다.
item.php 에만 적용되어 있습니다.
아 네그렇군요..
echo "<tr><td align=center>".it_name_icon($row)."</td></tr>";

if ($row[it_cust_amount] && !$row[it_gallery])
echo "<tr><td align=center><strike>".display_amount($row[it_cust_amount])."</strike></td></tr>";

echo "<tr><td align=center>";

if (!$row[it_gallery])
echo "<span class=amount>".display_amount(get_amount($row), $row[it_tel_inq])."</span>";

echo "</td></tr></table></td>";

여기에는 어떻게 해야하나요?
죄송합니다.
<? if ($it[it_cust_amount] > get_amount($it)) { ?>

<? if ($row[it_cust_amount] > get_amount($row)) { ?>
로 수정해 보시기 바랍니다.

감사합니다.~~ 수고하세요.

게시글 목록

번호 제목
55940
55939
55934
55933
55931
55928
55925
55922
55921
55919
55915
55912
55911
55907
55901
55893
55891
55884
55882
55881