고도몰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
조회 수: 10
2024.02.15
조회 수: 81
2024.02.13
조회 수: 2
2023.10.26
조회 수: 78
2023.09.21
조회 수: 252
2023.09.14
조회 수: 113
2023.09.12
조회 수: 103
2023.09.07
조회 수: 140
2023.08.08
조회 수: 101
2023.07.28
조회 수: 97
2023.05.17
조회 수: 158
2023.03.02
조회 수: 197
2023.03.02
조회 수: 186
2023.02.14
조회 수: 198
2022.12.20
조회 수: 190
2022.11.18
조회 수: 244
2022.09.29
조회 수: 214
2022.09.21
조회 수: 1
2022.06.28
조회 수: 630
2022.06.27
조회 수: 333
2022.06.27
조회 수: 324
2022.04.29
조회 수: 286
2022.03.24
조회 수: 305
2022.03.24
조회 수: 338
2022.03.22
조회 수: 281
2022.03.21
조회 수: 336
2022.03.02
조회 수: 318
2022.03.02
조회 수: 328
2022.03.01
조회 수: 283
2022.01.10
조회 수: 288
2021.12.24
조회 수: 359
2021.12.24
조회 수: 676
2021.11.25
조회 수: 533
2021.11.24
조회 수: 696
2021.11.15
조회 수: 397
2021.11.01
조회 수: 348
2021.06.22
조회 수: 429
2021.06.11
조회 수: 518
2021.06.03
조회 수: 676
2021.04.29
조회 수: 379