관련상품 텍스트 수정

관련상품 텍스트 수정

QA

관련상품 텍스트 수정

본문

3b5b6102e348c314ad776347dfd92aa3_1447743607_8541.png

 

관련상품 relation.10.skin 에서

금액 다음에 들어오는 원 이 텍스트만 따로 색상 지정 및 폰트 크기 또한 알파벳과 다른 폰트를 조정하고 싶습니다.

 

if ($this->view_it_cust_price || $this->view_it_price) {

 

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

 

        if ($this->view_it_cust_price && $row['it_cust_price']) {

        echo "<strike>".display_price($row['it_cust_price'])."</strike>\n";

        }

 

        if ($this->view_it_price) {

            echo display_price(get_price($row), $row['it_tel_inq'])."\n";

        }

 

        echo "</div>\n";

 

    }

 

이곳에서 수정하는것 같은데 수정하는데 있어서 어려움이 많이 있습니다.

 

it_tel_inq   >>shop.lib.php파일에서  

 

// 금액 표시

function display_price($price, $tel_inq=false)

{

    if ($tel_inq)

        $price = '전화문의';

    else

        $price = number_format($price, 0).'원';

 

    return $price;

 

}

원을 삭제하면 금액 다은에 들어오는 원이 관련상품 뿐만 아니라 상단에 소비자 및 판매가에서도 동일하게 원이 삭제되는것은 확인이 되였는데

이 원만 따로 폰트를 설정하기기가 어렵네요.

 

이 질문에 댓글 쓰기 :

답변 2

if ($this->view_it_cust_price || $this->view_it_price) {

 

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

 

        if ($this->view_it_cust_price && $row['it_cust_price']) {

        echo "<strike>".display_price($row['it_cust_price'])."</strike>\n";

        }

 

        if ($this->view_it_price) {

            echo display_price2(get_price($row), $row['it_tel_inq'])."\n";

        }

 

        echo "</div>\n";

 

    }

 

 

 

 

// 금액 표시

function display_price2($price, $tel_inq=false)

{

    if ($tel_inq)

        $price = '전화문의';

    else

        $price = number_format($price, 0).'<font>원</font>';

 

    return $price;

 

}

 

이런식이요...

display_price2 라고 따로 펑션을 만들어 관련 상품부분만 해당 펑션 태우시면 됩니다. 

답변을 작성하시기 전에 로그인 해주세요.
전체 151
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT