문의 드립니다. 시중가는 보이는데 판매가가 안보입니다. 채택완료
로그인없이 시중가는 보이는데 판매가가 안보입니다.
로그인 없어도 모두 보이게 하려면 어디를 수정해야 할까요??
좀 조언 부탁드립니다.
감사합니다.
Copy
if ($this->href) {
echo "\n";
}
if ($this->view_it_cust_price || $this->view_it_price) {
echo "\n";
if($member['mb_no']){
if ($this->view_it_price) {
if(substr($row['ca_id'], 0,4) != '3002') {
echo "". display_price($row['it_cust_price'])." ";
}
echo display_price(get_price($row), $row['it_tel_inq'])."\n";
}
}else{
if(substr($row['ca_id'], 0,4) != '3002') {
echo "".display_price($row['it_cust_price'])."";
}
}
echo "\n";
}
if ($this->view_it_icon) {
echo "".item_icon($row)."\n";
}
echo "\n";
}
답변 2개
채택된 답변
+20 포인트
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";
}
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
2년 전
Copy
if ($this->href) {
echo "\n";
}
if ($this->view_it_cust_price || $this->view_it_price) {
echo "\n";
if($member['mb_no']){
if ($this->view_it_price) {
if(substr($row['ca_id'], 0,4) != '3002') {
echo "". display_price($row['it_cust_price'])." ";
}
echo display_price(get_price($row), $row['it_tel_inq'])."\n";
}
}else{
if(substr($row['ca_id'], 0,4) != '3002') {
echo "".display_price($row['it_cust_price'])."";
}
echo display_price(get_price($row), $row['it_tel_inq'])."\n";
}
echo "\n";
}
if ($this->view_it_icon) {
echo "".item_icon($row)."\n";
}
echo "\n";
}
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인