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

리랜더링 질문입니다. 채택완료

배짱이이잉 4년 전 조회 2,348

이와같이 할인쿠폰을 적용했을때 총결제금액은 정상적용되나 전체주문금액이 그대로인부분에 대해 리랜더링을하고자합니다.

</p>

<p> <dt class="sod_bsk_cnt"><span>총 결제금액</span></dt></p>

<p>            <dd class="sod_bsk_cnt"></p>

<p>            <label><input type="text" name="tot_price2" value="<?php echo number_format($tot_price); ?>" class="frm_input w100" readonly style="color:red;font-weight:bold;text-align:right;"> 원</label>
가 총결제금액의 코드이며

 </p>

<p><dt class="sod_bsk_cnt_tot"><span>전체주문금액</span></dt></p>

<p>                                <dd class="sod_bsk_cnt_tot" ><strong ><?php echo number_format($tot_price); ?> 원</strong></dd>
가 전체주문금액의 코드입니다. 분명 같은값을 랜더링하는데 갱신은 위쪽만되네요  readonly  이코드를 넣어야 할거같기도한데.. 다넣어봤는데도안돼네요 도움부탁드료요 ㅠㅠ

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

답변 1개

채택된 답변
+20 포인트
4년 전

readOnly 문제가 아니라 

위의 코드의 name="tot_price2" 를 갱신하는거 같네요

아래 코드고 갱신하려면 아래 코드도 적절한 input readonly 로 만들어주고 name 을 부여해서

tot_price2 갱신할때 같이 하도록 코드를 추가 해줘야 될거 같군요

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

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

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

로그인