소스코드질문좀 드리겠습니다. 채택완료
소스코드질문좀드리겠습니다
관리자에서요 상품금액 0원으로 기재할시 "준비중" 이라는 문구로 나오게 하는방법이있을까요?
Copy
if ($this->view_it_cust_price || $this->view_it_price) {
echo "판매가\n";
if ($this->view_it_price) {
echo display_price(get_price($row), $row['it_tel_inq'])."\n";
}
if ($this->view_it_cust_price && $row['it_cust_price']) {
echo "".display_price($row['it_cust_price'])."\n";
}
echo "\n";
}
답변 4개
채택된 답변
+20 포인트
LukcyHoo
6년 전
Copy
if ($this->view_it_price) {
echo display_price(get_price($row), $row['it_tel_inq'])."\n";
}
이부분을
if ($this->view_it_price) {
if($row["it_price"]){
echo display_price(get_price($row), $row['it_tel_inq'])."\n";
}else{
echo '준비중';
}
}
이렇게수정하면됩니다.
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
6년 전
if ($this->view_it_price) {
if($row["it_price"] > '0'){
echo display_price(get_price($row), $row['it_tel_inq'])."\n";
}else{
echo '준비중';
}
}
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
SKPLAN
6년 전
금액이 출력되는 display_price() 함수를 수정하시면 됩니다.
display_price() 함수는 /lib/shop.lib.php 파일에 있습니다.
해당 함수에 금액이 0일떄 준비중이 출력되도록 수정하시면 될꺼에요
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인