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

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

QA

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

답변 2

본문

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

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

좀 조언 부탁드립니다.

감사합니다.

 



    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

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

회원/비회원 구분이 없다면 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";
            }

 

 


    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";
}
답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 60,954
© SIRSOFT
현재 페이지 제일 처음으로