영카트4 가격 .00 두개 0 더 나오는데 지울수 있는방법은 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

영카트4 가격 .00 두개 0 더 나오는데 지울수 있는방법은 정보

영카트4 가격 .00 두개 0 더 나오는데 지울수 있는방법은

본문

영카트4 가격 .00  두개 0 더 나오는데  지울수 있는방법은
없을까요
  • 복사

댓글 전체

상품 가격 출력부분 소스코드에 sprintf("%.0f",) 함수를 적용하시면됩니다.

예제
<?
echo sprintf("%.0f", ($it[it_cust_amount] - get_amount($it)) / $it[it_cust_amount] * 100);
?>
고마워요
문제점 찾아어요
 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두개가 나와요
© SIRSOFT
현재 페이지 제일 처음으로