채택완료

문의 드립니다. 시중가는 보이는데 판매가가 안보입니다.

2023-10-26 (목) 17:30:04 2,169

로그인없이 시중가는 보이는데 판매가가 안보입니다.

로그인 없어도 모두 보이게 하려면 어디를 수정해야 할까요?? 

좀 조언 부탁드립니다.

감사합니다.

Copy
if ($this->href) {
        echo "</a></div>\n";
    }
    
    if ($this->view_it_cust_price || $this->view_it_price) {

        echo "<div class=\"sct_cost\">\n";

        if($member['mb_no']){
            if ($this->view_it_price) {
                if(substr($row['ca_id'], 0,4) != '3002') {
                            echo "<strike>". display_price($row['it_cust_price'])."</strike> ";
                }
                echo display_price(get_price($row), $row['it_tel_inq'])."\n";
            }
        }else{
            if(substr($row['ca_id'], 0,4) != '3002') {
                
                echo "<strike>".display_price($row['it_cust_price'])."</strike>";
            }
        }

        echo "</div>\n";

    }

    if ($this->view_it_icon) {
        echo "<div class=\"sct_icon\">".item_icon($row)."</div>\n";
    }

    echo "</li>\n";
}
|

답변 2개

채택된 답변
+20 포인트

회원이 아니면 판매가는 나오지 않게 되어있네요

회원/비회원 구분이 없다면 if ~ else 제거 하고 다음 코드만 넣으세요

            if ($this->view_it_price) {
                if(substr($row['ca_id'], 0,4) != '3002') {
                            echo "<strike>". display_price($row['it_cust_price'])."</strike> ";
                }
                echo display_price(get_price($row), $row['it_tel_inq'])."\n";
            }

Copy
if ($this->href) {
        echo "</a></div>\n";
    }
    
    if ($this->view_it_cust_price || $this->view_it_price) {
        echo "<div class=\"sct_cost\">\n";
        if($member['mb_no']){
            if ($this->view_it_price) {
                if(substr($row['ca_id'], 0,4) != '3002') {
                            echo "<strike>". display_price($row['it_cust_price'])."</strike> ";
                }
                echo display_price(get_price($row), $row['it_tel_inq'])."\n";
            }
        }else{
            if(substr($row['ca_id'], 0,4) != '3002') {
                
                echo "<strike>".display_price($row['it_cust_price'])."</strike>";
            }
            echo display_price(get_price($row), $row['it_tel_inq'])."\n";
        }
        echo "</div>\n";
    }
    if ($this->view_it_icon) {
        echo "<div class=\"sct_icon\">".item_icon($row)."</div>\n";
    }
    echo "</li>\n";
}

답변을 작성하려면 로그인이 필요합니다.