From 6e9ebcfe3a92aa25abc650f0e2e920f369fb544a Mon Sep 17 00:00:00 2001 From: "junghoon86.park" Date: Fri, 21 Nov 2025 13:38:15 +0900 Subject: [PATCH] =?UTF-8?q?[=EC=83=81=ED=92=88=20=EC=83=81=EC=84=B8]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 옵션 미선택시 add to cart눌럿을때 please select option 얼럿 뜨도록 변경. --- .../DetailPanel/components/BuyOption.jsx | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/com.twin.app.shoptime/src/views/DetailPanel/components/BuyOption.jsx b/com.twin.app.shoptime/src/views/DetailPanel/components/BuyOption.jsx index 7004b1b1..717e9f11 100644 --- a/com.twin.app.shoptime/src/views/DetailPanel/components/BuyOption.jsx +++ b/com.twin.app.shoptime/src/views/DetailPanel/components/BuyOption.jsx @@ -1087,6 +1087,46 @@ const BuyOption = ({ optionForUse?.optNm || optionForUse?.prodOptCval || ''; if (!isMock) { + if ( + productOptionInfos && + productOptionInfos.length > 1 && + productInfo?.optProdYn === 'Y' + ) { + + if (selectFirstOptionIndex === 0) { + dispatch( + showError( + null, + "PLEASE SELECT OPTION", + false, + null, + null + ) + ); + + return; + } + } + if ( + productOptionInfos[selectedBtnOptIdx]?.prdtOptDtl && + productOptionInfos[selectedBtnOptIdx]?.prdtOptDtl.length > 1 && + productInfo?.optProdYn === 'Y' + ) { + + if (selectSecondOptionIndex === 0) { + dispatch( + showError( + null, + "PLEASE SELECT OPTION", + false, + null, + null + ) + ); + + return; + } + } dispatch( insertMyinfoCart({ mbrNo: userNumber,