영카트4 가격 .00 두개 0 더 나오는데 지울수 있는방법은 정보
영카트4 가격 .00 두개 0 더 나오는데 지울수 있는방법은본문
댓글 전체
상품 가격 출력부분 소스코드에 sprintf("%.0f",) 함수를 적용하시면됩니다.
예제
<?
echo sprintf("%.0f", ($it[it_cust_amount] - get_amount($it)) / $it[it_cust_amount] * 100);
?>
예제
<?
echo sprintf("%.0f", ($it[it_cust_amount] - get_amount($it)) / $it[it_cust_amount] * 100);
?>
죄송 하지만 저 초보래서요 어는 파일 인지 아무리 찾아도 못찾겟어요~~
item.php 또는 list.php 그이외에 스킨 파일을 수정 하시면 됩니다.
미안해요 item.php list.php 이 두 파일 안에서도 안되요
홈페이지 주소는 http://www.cnywsj.net/
홈페이지 주소는 http://www.cnywsj.net/
고마워요
문제점 찾아어요
var amount = basic_amount + opt1 + opt2 + opt3 + opt4 + opt5 + opt6;
var point = parseFloat(basic_point);
if (typeof(f.it_amount) != 'undefined')
f.it_amount.value = amount;
if (typeof(f.disp_sell_amount) != 'undefined')
f.disp_sell_amount.value = number_format(String(amount * ct_qty));
if (typeof(f.disp_cust_amount) != 'undefined')
f.disp_cust_amount.value = number_format(String(cust_amount * ct_qty));
if (typeof(f.it_point) != 'undefined') {
f.it_point.value = point;
f.disp_point.value = number_format2(String(point * ct_qty));
여기에 number_format2 추가 하면 00두개가 나와요
문제점 찾아어요
var amount = basic_amount + opt1 + opt2 + opt3 + opt4 + opt5 + opt6;
var point = parseFloat(basic_point);
if (typeof(f.it_amount) != 'undefined')
f.it_amount.value = amount;
if (typeof(f.disp_sell_amount) != 'undefined')
f.disp_sell_amount.value = number_format(String(amount * ct_qty));
if (typeof(f.disp_cust_amount) != 'undefined')
f.disp_cust_amount.value = number_format(String(cust_amount * ct_qty));
if (typeof(f.it_point) != 'undefined') {
f.it_point.value = point;
f.disp_point.value = number_format2(String(point * ct_qty));
여기에 number_format2 추가 하면 00두개가 나와요