Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

상품수정 - 옵션목록생성시 중복된 id의 input을 생성하는 문제 수정 #192

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

39hn-zz
Copy link
Contributor

@39hn-zz 39hn-zz commented Jun 3, 2022

요약

관리자페이지 상품관리 > 상품수정에서 선택옵션 및 추가옵션의 옵션목록생성시, 중복된 id값을 가진 input을 생성하는 문제 수정

문제재현

상품수정(/adm/shop_admin/itemform.php) 상품선택옵션 필드에

옵션1 항목 : 1,2,3
옵션2 항목 : A,B

기입 후 옵션목록생성

스크린샷 2022-06-03 오전 10 08 28

-> opt_price_{x} 의 id값을 가진 input이 각각 두개씩 생성됨
(opt_chk_{x}, opt_stock_qty_{x}, ... 등도 마찬가지)

수정결과

위에서부터 차례대로

opt_price_0_0_0
opt_price_0_1_0
opt_price_1_0_0
opt_price_1_1_0
opt_price_2_0_0
opt_price_2_1_0

의 각각 유니크한 id값을 가진 input이 생성됨

@thisgun
Copy link
Contributor

thisgun commented Dec 18, 2023

안녕하세요. SIR 입니다.

좋은 코드를 남겨주셔서 감사합니다.

앞으로 개발 하는데 참고하겠습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants