답변 2개 / 댓글 4개
채택된 답변
+20 포인트
전체 쇼핑몰 제품 모두를 바꾸려면..
lib/shop.lib.php 파일에서
display_price 함수를 아래와 같이 수정 하시면 됩니다.
Copy
function display_price($price, $tel_inq=false){ GLOBAL $member; if ($tel_inq) { $price = '전화문의'; } else { if($member[mb_level] >= 3) { $price = number_format($price, 0).'원'; } else { $price = "특정레벨이상만 가능문구."; } } return $price;}
답변에 대한 댓글 4개
그럼 위에 알려주신 소스는 원대래도 돌리시고
사용하시는 list.xx.skin.php 파일을 열어서
[code]
if ($this->view_it_price) {
echo display_price(get_price($row), $row['it_tel_inq'])."\n";
}
[/code]
를 찾아서
[code]
if ($this->view_it_price) {
if($member[mb_leve] >= 3) {
echo display_price(get_price($row), $row['it_tel_inq'])."\n";
} else {
echo "레벨제한\n";
}
}
[/code]
로 바꿔보세요
사용하시는 list.xx.skin.php 파일을 열어서
[code]
if ($this->view_it_price) {
echo display_price(get_price($row), $row['it_tel_inq'])."\n";
}
[/code]
를 찾아서
[code]
if ($this->view_it_price) {
if($member[mb_leve] >= 3) {
echo display_price(get_price($row), $row['it_tel_inq'])."\n";
} else {
echo "레벨제한\n";
}
}
[/code]
로 바꿔보세요
답변을 작성하려면 로그인이 필요합니다.