테스트 사이트 - 개발 중인 베타 버전입니다

주문가격 <div id="sit_tot_price"></div> 수정방법 좀 부탁드려요 채택완료

팡팡 3년 전 조회 1,777

기존

<div id="sit_tot_price"></div>

를 아래와 같이 적용하였습니다.

 

<?php if ($cp['cp_price'] > '100') { $discount_price = $it['sit_tot_price'] - $cp['cp_price'];}
else { $dcp = 0 - $cp['cp_price']; $discount_price = $it['sit_tot_price'] * '0.'.$dcp;}
echo number_format($discount_price); ?>원</strong>

 

적용이 되지않고 노출이 안되는데 왜 그러는걸까요?

sit_tot_price 불러오는 sql이 필요한가요?

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트

sit_tot_price 이부분 배열이 있나요? 프린트알로하면 배열 나오는지 확인부터해보세요

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인