고도몰5 튜닝 - 주문하시는 분을 수정할 수 없게 처리
회원정보에서 불러오는 주문자 정보를 바꿀 경우, 반품, 교환, 세금계산서 발행시 착오가 생길 수 있다.
그래서 코드 수정을 통해서 주문하시는 분에 불러온 이름을 수정할 수 없게 처리 하는 방법
사용하는스킨폴더/order/order.html 파일
대략 528 라인
기존코드
<tr> <th scope="row"><span class="important">{=__('주문하시는 분')}</span></th> <td><input type="text" name="orderName" value="{=orderName}" data-pattern="{? gGlobal['isFront']}gdMemberNmGlobal{:}gdEngKor{/}" maxlength="20"/></td> </tr>
를 아래와 같이 "readonly" 추가한다.
<tr> <th scope="row"><span class="important">{=__('주문하시는 분')}</span></th> <td><input type="text" name="orderName" value="{=orderName}" data-pattern="{? gGlobal['isFront']}gdMemberNmGlobal{:}gdEngKor{/}" maxlength="20" readonly/></td> </tr>
이렇게 하면 회원정보에서 불러온 주문자 정보를 수정할 수 없게 된다.
* 모바일은 아래와 같이
모바일 스킨폴더/order/order.html
대략 257라인
<tr> <th scope="row" class="required"><label for="ordr_nm">{=__('주문자')}</label></th> <td><input type="text" id="ordr_nm" name="orderName" value="{=orderName}" maxlength="20"></td> </tr>
여기에 아래 코드와 같이 "readonly" 요걸 넣어주면 된다!
<tr> <th scope="row" class="required"><label for="ordr_nm">{=__('주문자')}</label></th> <td><input type="text" id="ordr_nm" name="orderName" value="{=orderName}" maxlength="20" readonly></td> </tr>
이 게시물을
2024.04.22
조회 수: 17
2024.02.15
조회 수: 88
2024.02.13
조회 수: 2
2023.10.26
조회 수: 79
2023.09.21
조회 수: 259
2023.09.14
조회 수: 116
2023.09.12
조회 수: 106
2023.09.07
조회 수: 148
2023.08.08
조회 수: 103
2023.07.28
조회 수: 99
2023.05.17
조회 수: 162
2023.03.02
조회 수: 200
2023.03.02
조회 수: 191
2023.02.14
조회 수: 201
2022.12.20
조회 수: 193
2022.11.18
조회 수: 254
2022.09.29
조회 수: 216
2022.09.21
조회 수: 2
2022.06.28
조회 수: 631
2022.06.27
조회 수: 341
2022.06.27
조회 수: 326
2022.04.29
조회 수: 288
2022.03.24
조회 수: 307
2022.03.24
조회 수: 342
2022.03.22
조회 수: 283
2022.03.21
조회 수: 339
2022.03.02
조회 수: 320
2022.03.02
조회 수: 329
2022.03.01
조회 수: 285
2022.01.10
조회 수: 290
2021.12.24
조회 수: 360
2021.12.24
조회 수: 689
2021.11.25
조회 수: 535
2021.11.24
조회 수: 698
2021.11.15
조회 수: 400
2021.11.01
조회 수: 351
2021.06.22
조회 수: 431
2021.06.11
조회 수: 522
2021.06.03
조회 수: 680
2021.04.29
조회 수: 381